Hyper-V 관리자 및 Windows PowerShell을 사용하여 가상 머신을 만드는 방법과 Hyper-V 관리자에서 가상 머신을 만들 때 가질 수 있는 옵션에 대해 알아보세요.
가상 머신 만들기
Open Hyper-V Manager.
In the left pane, under Hyper-V Manager, select your server.
From the Actions pane, select New, and then select Virtual Machine.
새 Virtual Machine 마법사에서 다음을 선택합니다.
각 페이지에서 가상 머신에 대한 적절한 선택 항목을 확인합니다. 자세한 내용은 Hyper-V 관리자의 새 가상 머신 옵션 및 기본값을 참조하세요.
After verifying your choices in the Summary page, select Finish.
In Hyper-V Manager, right-click the virtual machine and select Connect....
In the Virtual Machine Connection window, select Action>Start.
On the Windows desktop, select the Start button and type Windows PowerShell.
Right-click on Windows PowerShell and select Run as administrator.
Get the name of the virtual switch that you want the virtual machine to use by using the Get-VMSwitch cmdlet:
Get-VMSwitch * | Format-Table Name
Use the New-VM cmdlet to create the virtual machine. 다음 예제를 참조하세요.
Note
If you move this virtual machine to a Hyper-V host that runs Windows Server 2012 R2, use the -Version parameter with New-VM to set the virtual machine configuration version to 5. Windows Server 2016에 대한 기본 가상 머신 구성 버전은 Windows Server 2012 R2 또는 이전 버전에서 지원 되지 않습니다. 가상 머신을 만든 후에 가상 머신 구성 버전을 변경할 수 없습니다. 자세한 내용은 지원 되는 가상 머신 구성 버전을 참조하세요.
기존 가상 하드 디스크 -기존 가상 하드 디스크를 사용하여 가상 머신을 만들려면 다음 명령을 사용할 수 있는,
-Name is the name that you provide for the virtual machine that you're creating.
-MemoryStartupBytes is the amount of memory that is available to the virtual machine at start up.
-BootDevice is the device that the virtual machine boots to when it starts like the network adapter (NetworkAdapter) or virtual hard disk (VHD).
-VHDPath is the path to the virtual machine disk that you want to use.
-Path is the path to store the virtual machine configuration files.
-Generation is the virtual machine generation. VHD 및 VHDX에 대 한 2 세대에 1 세대를 사용 합니다. 참조 Hyper-v에 1 또는 2세대 가상 머신을 만들어야 합니다.
-Switch is the name of the virtual switch that you want the virtual machine to use to connect to other virtual machines or the network. 참조 Hyper-v 가상 컴퓨터에 대 한 가상 스위치를 만드는합니다.
New-VM -Name <Name> -MemoryStartupBytes <Memory> -BootDevice <BootDevice> -VHDPath <VHDPath> -Path <Path> -Generation <Generation> -Switch <SwitchName>
For example:
New-VM -Name TestVM -MemoryStartupBytes 4GB -BootDevice VHD -VHDPath .\VMs\Test.vhdx -Path .\VMData -Generation 2 -Switch ExternalSwitch
이렇게 하면 메모리가 4GB인 TestVM이라는 2세대 가상 머신이 만들어집니다. 현재 디렉터리에 VMs\Test.vhdx 폴더에서 부팅하고 ExternalSwitch 라는 가상 스위치를 사용합니다. 가상 머신 구성 파일은 VMData 폴더에 저장됩니다.
새 가상 하드 디스크 - 새 가상 하드 디스크를 사용하여 가상 머신을 만들려면 이전 예제의 -VHDPath 매개 변수를 -NewVHDPath 바꾸고 -NewVHDSizeBytes 매개 변수를 추가합니다. For example,
New-VM -Name TestVM -MemoryStartupBytes 4GB -BootDevice VHD -NewVHDPath .\VMs\Test.vhdx -Path .\VMData -NewVHDSizeBytes 20GB -Generation 2 -Switch ExternalSwitch
운영 체제 이미지를 부팅하는 새 가상 하드 디스크 -운영 체제 이미지를 부팅의 PowerShell 예제를 참조하는 새 가상 디스크를 사용하여 가상 머신을 만들려면 Windows에서 hyper-V 가상 머신 연습 만들기를 참조하세요.
Start the virtual machine by using the Start-VM cmdlet. 다음 cmdlet을 실행하고 여기서 Name은 만든 가상 머신의 이름 키를 누릅니다:
Start-VM -Name <Name>
For example:
Start-VM -Name TestVM
가상 머신 연결 (VMConnect) 사용하여 가상 머신에 연결합니다:
VMConnect.exe <ServerName> <VMName>
For example:
VMConnect.exe localhost "TestVM"
Hyper-v 관리자의 새 가상 머신 마법사에서 옵션
다음 표에서 각각에 대해 Hyper-v 관리자 및 기본값에는 가상 머신을 만들 때 선택할 수 있는 옵션을 나열합니다.
Page |
Windows Server 2016, Windows 10 이상 버전의 기본값 |
Other options |
이름과 위치를 지정 |
새 가상 머신 이름:입니다. Location: C:\ProgramData\Microsoft\Windows\Hyper-V\. |
또한 고유한 이름을 입력 하고 가상 머신에 대한 다른 위치를 선택합니다. 가상 머신 구성 파일이 저장되는 위치입니다. |
Specify Generation |
Generation 1 |
또한 2세대 가상 머신을 만들 수 있습니다. 자세한 내용은 Hyper-V에 1세대 또는 2세대 가상 머신을 만들어야 하나요?를 참조하세요. |
Assign Memory |
시작 메모리: 1024MB Dynamic memory: not selected |
시작 메모리는 32MB에서 5902MB까지 설정할 수 있습니다. 또한 동적 메모리를 사용할 수 있습니다. 자세한 내용은 참조 Hyper-v 동적 메모리 개요합니다. |
Configure Networking |
Not connected |
기존 가상 스위치의 목록에서 사용하여 가상 머신에 대한 네트워크 연결을 선택할 수 있습니다. 참조 Hyper-v 가상 컴퓨터에 대 한 가상 스위치를 만드는합니다. |
가상 하드 디스크 연결 |
가상 하드 디스크 만들기 Name: <vmname>.vhdx
Location: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\
Size: 127 GB |
기존 가상 하드 디스크를 사용 하거나 기다렸다가 나중에 가상 하드 디스크를 연결 할 수도 있습니다. |
Installation Options |
운영 체제를 나중에 설치 |
이러한 옵션의.iso 파일, 부팅 가능한 플로피 디스크 또는 네트워크 설치 서비스와 같은 배포 WDS (Windows 서비스)에서 설치할 수 있도록 가상 머신의 부팅 순서를 변경합니다. |
Summary |
선택한 옵션이 올바른지 확인할 수 있도록 표시합니다. - Name - Generation - Memory - Network 하드 디스크 -운영 체제 |
Tip: You can copy the summary from the page and paste it into e-mail or somewhere else to help you keep track of your virtual machines. |
Related content