- Open Hyper-V Manager.
- From the navigation pane of Hyper-V Manager, select the computer running Hyper-V.
- From the Actions pane, click New and then click Virtual Machine.
- The New Virtual Machine wizard opens. Click Next.
- On the Specify Name and Location page, type an appropriate name.
- On the Assign Memory page, specify enough memory to start the guest operating system.
- On the Configure Networking page, connect the virtual machine to the switch you created when you installed Hyper-V.
- On the Connect Virtual Hard Disk and Installation Options pages, choose the option that is appropriate for how you plan to install the guest operating system:
- If you will install the guest operating system from a DVD or an image file (an .ISO file), choose Create a virtual hard disk. Click Next, and then click the option that describes the type of media you will use. For example, to use an .iso file, click Install an operating system from a boot CD/DVD and then specify the path to the .iso file.
- If the guest operating system is already installed in a virtual hard disk, choose Use an existing virtual hard disk and click Next. Then, choose Install an operating system later.
- If you will install the guest operating system from a DVD or an image file (an .ISO file), choose Create a virtual hard disk. Click Next, and then click the option that describes the type of media you will use. For example, to use an .iso file, click Install an operating system from a boot CD/DVD and then specify the path to the .iso file.
- On the Summary page, verify your selections and then click Finish.
The following Windows PowerShell cmdlet or cmdlets perform the same function as the preceding procedure. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.
Run the following command to create a virtual machine named web server with 1 GB of startup memory and use an existing virtual hard disk in which a guest operating system has already been installed.
New-VM –Name “web server” –MemoryStartupBytes 1GB –VHDPath d:\vhd\BaseImage.vhdx






0 comments:
Post a Comment