How to Create a Macchina virtuale In Finestre 10 utilizzando Hyper-V Manager, PowerShell, e crea rapida.
Create a Virtual Machine with a Hyper-V Manager console
1. Start your Hyper-V Manager Console and click Nuovo;
2. In the drop-down list select Macchina virtuale;
3. In the new window press Prossimo;
4. Enter the name of your VM, nel mio caso 21-109-10-SCCM.
NOTA: At this stage, you may change the folder in which vm config files store. Or use default settings as I.
Clic Prossimo;
5. Seleziona il Generation of your VM. (for old Finestre, Linux better to use Generation 1). Io uso Generation 2. Clic Prossimo;
6. Enter the memory size for your VM. (You may set Use Dynamic Memory for this machine). Clic Prossimo;
7. Select an early-prepared network connection. In this deployment, Io uso External. Clic Prossimo;
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. Clic Prossimo;
9. Select from where you installed Operating System to VM or select Install an operating system later. I use prepared *.iso of Finestre 10 1607 x64 EN, stored in folder D:\Iso. Clic Prossimo;
10. Controlla le informazioni di riepilogo e fai clic su Fine;
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, PowerShell is the tool to choose.
1. Correre Finestre PowerShell (Ammin).
2. Run the following script:
New-VM -Name <Nome> -Path <Path> -NewVHDPath <VHDPath> NewVHDSizeBytes <Memory> -Generation <Generation> -MemoryStartupBytes <Memory> -SwitchName <SwitchName>
3. Check in Hyper-V Manager to verify whether the VM has been created.
IL PowerShell script can be extended by including additional configuration options. Per esempio, you can set up the VM memory by including the following cmdlets:
Set-VM -Name <Nome> -ProcessorCount <Number of Processors> -DynamicMemory -MemoryMinimumBytes <Memory> -MemoryStartupBytes <Memory> -MemoryMaximumBytes <Memory>
To explore other PowerShell cmdlets and how they can help in managing a virtual environment, run this command:
Get-Command -Module hyper-v | Out-GridView
You will see a list of all PowerShell commands, which you can include in your script.
Create a Virtual Machine with Hyper-V Quick Create
Hyper-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. Aprire Hyper-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. Clic Change Installation Source and select the required file. The Secure Boot option can be checked only if the VM will run Finestre;
4. Clic More options in the lower right corner;
5. Type the name of the VM;
6. Choose the virtual switch;
4. Clic Create Macchina virtuale to start the process.