Join Martin Guidry for an in-depth discussion in this video Creating a virtual machine with Hyper-V, part of Learning Virtualization.
In this section, I'd like to talk about creating a virtual machine using Microsoft Hyper-V. So here, I have the Hyper-V manager open. On the right hand side, I have an option for new, and one of the options there is virtual machine. This'll take me through a multiple step wizard. The first page is just an introduction, so I'll click Next. It's asking me to specify a name and location. It gave me the default name of New Virtual Machine, that's not very descriptive. I'm going to provide what I hope is a more meaningful name; when I name virtual machines, I usually like to mention what operating system they're running.
So I'll do Windows 8 and then a little short, two or three words, about what is the purpose of this machine. So I'm just going to call it Demo 1. By default, this is going to go into C:Program Data>Microsoft>Windows>Hyper-V. I could change that here if I want to, but for purposes of this demonstration the default location is fine. Next it's going to ask me if I want to be a Generation 1 or a Generation 2. The default is Generation 1, and is appropriate for most situations.
Generation 2 would give you all of the features of Generation 1, plus a few additional features, most of them involving booting from the network. That's not a feature I'm real interested in right now, so I'm going to stick with Generation 1. And I'll click Next. It's asking me how much memory I would like to assign to this machine. It defaulted to 512 megabytes. That seems a little bit low to me. I'm going to bump it up to 2048 megabytes, which is two gigabytes. And I'll click Next.
It's asking me about the network. I'm going to leave it as not connected for now and later on, we'll talk about connecting to a network. Here, it would like me to either create a new virtual hard drive, or connect to an existing virtual hard drive. I don't have any existing, so I'm going to go with the default option of create a new one. It has already suggested a size of 127 gigabytes. That's a good bit bigger than I need, I'm going to drop that down to 50 gigabytes. Click Next, now here's where I have the option to install an operating system.
The default is to install an operating system later, but a virtual machine with no operating system isn't very useful, so I would like to go ahead and install an operating system. I'll choose the radio button for install an operating system from a CD-ROM, but actually, mine is an ISO file, so I'll click the option for that, and I'll browse to my ISO. Once I have that finished, I can click Next. I get a summary of everything I chose, and being I'm happy with it, I'll click Finish.
I now have, in my list of virtual machines, something called Windows 8 Demo 1 that is in the off state. So while that machine is highlighted over to the right, I have the option to start and once I click Start, it changes to running. I'd like to actually connect to that virtual machine now. And again, in the right hand menu, I have the option to connect. And this will bring me into a view of the virtual machine, that is currently installing Windows 8.1. Here, it's asking me what language I would like to install Windows 8.
I'll accept the defaults, and click, Next. I'll click Install now. It's asking me to agree to the license terms. I'll check that, and click Next. I have the option to do an upgrade, or a custom install. This is not an upgrade so I would like to do a custom install. It's asking me what drive I would like to install on. Remember, I created a 50 gigabyte drive. And that drive is available to me here. I'll click Next. Okay, now that Windows has done the bulk of the installation, there's still a few more questions that we need to answer, and we're very close to getting this virtual machine online and running.
It's asking me for a PC name. Obviously I could choose anything here, but I like to give the PC the same name I gave it in Hyper-V. So as far as Hyper-V is concerned, this machine is called Windows 8 Demo 1. I'm going to use the same name here. Microsoft is now prompting me to accept the express settings, which will give me lots of predefined settings in Internet Explorer and Windows Media Player, things like that. I'm going to go ahead and click Use express settings. And here it's asking me for a username and password.
Again, you can use whatever your normal standard is, and now click Finish. Okay, looks like we're ready to go. I now have what appears to be a functional Windows 8 desktop PC. But there is no physical PC; this is just a virtual machine. This is running entirely in the memory of the Hyper-V application, but other than that, it looks like a PC. It runs like a PC. It acts like a PC and therefore, we call it a virtual PC.
- Understanding the advantages and disadvantages of virtualization
- Virtualizing computer desktops
- Designing a private cloud
- Choosing the best virtualization solution for you
- Creating a virtual machine with Hyper-V and VMware Workstation
- Configuring your network for virtualization
- Backing up, restoring, and migrating virtual machines