How to Create a Virtual Machine ~에 윈도우 10 using 하이퍼-V 관리자, 파워셸, and Quick Create.
Create a Virtual Machine with a Hyper-V Manager console
1. Start your 하이퍼-V 관리자 Console and click New;
2. In the drop-down list select Virtual Machine;
3. In the new window press 다음;
4. Enter the name of your VM, in my case 21-109-10-sccm.
메모: At this stage, you may change the folder in which vm config files store. Or use default settings as I.
딸깍 하는 소리 다음;
5. Select the Generation of your VM. (for old 윈도우, Linux better to use Generation 1). I use Generation 2. 딸깍 하는 소리 다음;
6. Enter the memory size for your VM. (You may set Use Dynamic Memory for this machine). 딸깍 하는 소리 다음;
7. Select an early-prepared network connection. In this deployment, I use 외부. 딸깍 하는 소리 다음;
8. Create a new one, use existing VHD(X), or select Attach a virtual hard disk later (to attach later). My VM Generation 2, so it uses VHDX format. 딸깍 하는 소리 다음;
9. Select from where you installed Operating System to VM or select Install an operating system later. I use prepared *.ISO of 윈도우 10 1607 x64 EN, stored in folder D:\ISO. 딸깍 하는 소리 다음;
10. Check summary information and click Finish;
11. Our VM was created!
But don’t hurry run it. You can do more in-depth configuration.
Create a Virtual Machine with Windows PowerShell
If you want to build a large-scale virtual environment with multiple VMs running at the same time, 파워셸 is the tool to choose.
2. Run the following script:
New-VM -Name <이름> -Path <Path> -NewVHDPath <VHDPath> NewVHDSizeBytes <Memory> -Generation <Generation> -MemoryStartupBytes <Memory> -SwitchName <SwitchName>
3. Check in 하이퍼-V Manager to verify whether the VM has been created.
The 파워셸 script can be extended by including additional configuration options. 예를 들어, you can set up the VM memory by including the following cmdlets:
Set-VM -Name <이름> -ProcessorCount <Number of Processors> -DynamicMemory -MemoryMinimumBytes <Memory> -MemoryStartupBytes <Memory> -MemoryMaximumBytes <Memory>
To explore other 파워셸 cmdlets and how they can help in managing a virtual environment, run this command:
Get-Command -Module 하이퍼-V | Out-GridView
You will see a list of all 파워셸 commands, which you can include in your script.
Create a Virtual Machine with Hyper-V Quick Create
하이퍼-V Quick Create was specifically designed to make the process of creating VMs even easier and faster, as it can be completed in just a few clicks.
1. 열려 있는 하이퍼-V Quick Create;
2. Select an OS from the list on the left, or install a guest OS from an ISO image file (.ISO) or a VHD file (.vhd or .vhdx) by clicking Local installation source;
3. 딸깍 하는 소리 Change Installation Source and select the required file. The Secure Boot option can be checked only if the VM will run 윈도우;
4. 딸깍 하는 소리 More options in the lower right corner;
5. Type the name of the VM;
6. Choose the virtual switch;
4. 딸깍 하는 소리 Create Virtual Machine to start the process.