| title | Prepare generalized image from ISO to deploy VMs on Azure Stack Edge Pro GPU |
|---|---|
| description | Describes how to create a generalized Windows VM image starting from an ISO. Use this generalized image to deploy virtual machines on your Azure Stack Edge Pro GPU device. |
| services | databox |
| author | alkohli |
| ms.service | azure-stack-edge |
| ms.topic | how-to |
| ms.date | 06/12/2025 |
| ms.author | alkohli |
[!INCLUDE applies-to-GPU-and-pro-r-and-mini-r-skus]
To deploy VMs on your Azure Stack Edge Pro GPU device, you need to be able to create custom virtual machine (VM) images that you can use to create VMs. This article describes how to prepare a Windows VM image using ISO installation media, and then generalize that image so you can use it to deploy multiple new VMs on your Azure Stack Edge Pro GPU device.
To prepare a generalized image created from a Windows VHD or VHDX, see Prepare a generalized image from a Windows VHD to deploy VMs on Azure Stack Edge Pro GPU.
A Windows VHD or VHDX can be used to create a specialized image or a generalized image. The following table summarizes key differences between the specialized and the generalized images.
[!INCLUDE about-vm-images-for-azure-stack-edge]
The high-level workflow to create a generalized Windows VHD using an ISO is:
- Prepare the source VM using an ISO image:
- Create a new, blank, fixed-size VHD in Hyper-V Manager.
- Use that VHD to create a new virtual machine.
- Mount your ISO image on the DVD drive of the new VM.
- Start the VM, and install the Windows operating system.
- Generalize the VHD using the sysprep utility.
- Copy the generalized image to Azure Blob storage.
Before you can create a generalized Windows VHD by using an ISO image, make sure that:
-
You have an ISO image for the supported Windows version that you want to turn into a generalized VHD. Windows ISO images can be downloaded from the Microsoft Evaluation Center.
-
You have access to a Windows client with Hyper-V Manager installed.
-
You have access to an Azure blob storage account to store your VHD after it's prepared.
When you use an ISO image to install the operating system on your VM image, you start by creating a blank, fixed-size VHD in Hyper-V Manager. You then use that VHD to create a virtual machine. Then you attach the ISO image to the VM.
Your first step is to create a new Generation 1 VHD in Hyper-V Manager, which is the source VHD for a new virtual machine.
To create the VHD, follow these steps:
-
Open Hyper-V Manager on your client system. On the Action menu, select New and then Hard Disk.
-
Under Choose Disk Format, select VHD. Then select Next >.
-
Under Choose Disk Type, select Fixed size. Then select Next >.
-
Under Specify Name and Location, enter a name and location for your new VHD. Then select Next >.
-
Under Configure Disk, select Create a new blank virtual hard disk, and enter the size of disk you would like to create (generally 20 GB or more for Windows Server). Then select Next >.
-
Under Summary, review your selections, and select Finish to create the new VHD. The process takes five or more minutes depending on the size of the VHD created.
Now use the VHD you just created to create a new virtual machine.
To create your new virtual machine, follow these steps:
-
Open Hyper-V Manager on your Windows client.
-
On the Actions pane, select New and then Virtual Machine.
-
In the New Virtual Machine Wizard, specify the name and location of your VM.
-
Under Specify Generation, select Generation 1 or Generation 2. Then select Next >.
-
Under Assign Memory, assign the desired memory to the virtual machine. Then select Next >.
-
Under Configure Networking, enter your network configuration. Then select Next >.
-
Under Connect Virtual Hard Disk, select Use an existing virtual hard disk and browse to the fixed VHD you created in the previous procedure. Then select Next >.
-
Review the summary, and select Finish to create the virtual machine.
After creating the new virtual machine, follow these steps to mount your ISO image on the DVD drive of the virtual machine:
-
In Hyper-V Manager, select the VM you created, and then select Settings.
-
Under BIOS, ensure that CD is at the top of the Startup order list.
-
Under DVD Drive, select Image file, and browse to your ISO image.
-
Select OK to save your VM settings.
To finish building your virtual machine, you need to start the virtual machine and walk through the operating system installation.
[!INCLUDE Connect to Hyper-V VM]
Note
If you installed the Windows Server 2019 Standard operating system on your virtual machine, you must change the BIOS setting to IDE before you generalize the VHD.
Use the sysprep utility to generalize the VHD.
-
If you're generalizing a Windows Server 2019 Standard VM, before you generalize the VHD, make IDE the first BIOS setting for the virtual machine.
-
Inside the VM, open a command prompt.
-
Run the following command to generalize the VHD.
c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown /mode:vmFor details, see Sysprep (system preparation) overview.
-
After the command is complete, the VM will shut down. Do not restart the VM.
Your VHD can now be used to create a generalized image to use on Azure Stack Edge Pro GPU.
[!INCLUDE Upload VHD to Blob storage]














