2017年10月21日星期六

Creating a Virtual Machine on Hyper-v

From the Tools menu of the Server Manager window, select Hyper-V Manager.
























In the left pane of the Hyper-V Manager console, select a Hyper-V server. Right-click this Hyper-v Server, Select New\Virtual Machine.(Or in the Actions pane, choose New\Virtual Machine.)



















Click Next


























In the Name text box, type a name for the virtual machine. Hyper-V also uses this name to create the VM files and folders. Then click Next.



























Specify the type of virtual machine you want to create. ( Generation 1 or Generation 2. ) Then click Next.


























In the Startup Memory text box, type the size of memory you want assign the virtual machine to use, and click Next.



























From the Connection drop-down list, select a virtual switch, and click Next.
Select the Create A Virtual Hard Disk option, and type the Virtual Hard Disk's Name,Location and size. Then click Next



























Select the Install An Operating System Later option,then click Next



























Click Finish.




























Creating a VM in Windows PowerShell
To create a new virtual machine with Windows PowerShell, you can use the New-VM cmdlet
New-VM –Name "Server_4" –Generation 2 –MemoryStartupBytes 2GB –NewVHDSizeBytes 127GB -NewVHDPath "C:\Hyper-v\Virtual Hard Disk\Server_4.vhdx"
Name:Name of Virtual Machine
Generation:Virtual Machine type (Generation 1 or Generation 2)
MemoryStartupBytes:Size of Startup Memory
NewVHDSizeBytes:Size Virtual Hard Disk
NewVHDPath:Path of Virtual Hard Disk(Include name of Virtual Hard Disk)

没有评论:

发表评论