|Article Summary:||This article provides information on how to convert to a fixed virtual hard disk from a dynamically expanding virtual disk in Microsoft Hyper-V.|
The fixed virtual hard disk created in this manner will take up the maximum space of the dynamically expanding virtual hard disk.
For detailed instructions on how to convert to a fixed virtual disk, refer to the MSDN Forum entry from Ben Armstrong's Virtualization Blog: Converting to a fixed virtual hard disk–the easy way. The instructions are provided below:
Shutdown the virtual machine (do not put it into a saved state).
Open the virtual machine settings and select the virtual hard disks one at a time.
Click the Edit button on the settings page to open the Edit Virtual Hard Disk Wizard with the selected Virtual hard disk.
Choose the Convert option.
Next, enter a file name for the new fixed virtual hard disk.
Wait for the virtual hard disk to be converted (this will take a while).
Change the virtual machine settings to point to the new, fixed, virtual hard disk.
Boot the virtual machine.
Once you have confirmed that everything is working properly, delete the old dynamic virtual hard disks.
Using Disk Management:
To keep your fixed size virtual hard disk as small as possible, perform the following steps.
Note: This process is intended for Windows Server 2008 R2 virtual machines.
For detailed instructions on how to convert to a fixed virtual disk, refer to the MSDN Forum entry from Ben Armstrong's Virtualization Blog: Converting to a fixed virtual hard disk–the hard way. The instructions are provided below:
Login to the virtual machine using an administrative account.
Open Server Manager and select the Disk Management node under the Storage node.
Right-click on the partition that you want to shrink and select Shrink.
Select how much you want to shrink the partition by.
Example: Shrink a 250GB partition to 70GB
Once you have shrunk the partition(s) open Windows Server Backup inside the virtual machine (if you have not installed this – you can do so by choosing to Add Features from Server Manager – don’t worry, this does not take up much space and does not require a reboot to install)
In Windows Server Backup select Backup Once…
This will open the Backup Once Wizard. There is only one choice on the first page. On the second page choose Full server.
Then select to store the backup on a Remote shared folder and provide a file share to use for storing the back.
Complete the wizard and wait for the backup to complete.
While the backup is going you can actually jump to the next step. Creating a new fixed virtual hard disk
Open the New Virtual Hard Disk Wizard.
Choose to create a new fixed size virtual hard disk that is the right size for your smaller partitions.
Once the backup is complete, and the fixed virtual hard disk is created, shutdown the virtual machine.
Open the virtual machine settings and replace the dynamic virtual hard disks with the new fixed size virtual hard disks.
Boot the virtual machine using a Windows Server 2008 R2 installation DVD.
After choosing your language, choose Repair your computer (instead of clicking on Install now).
Then select Restore your computer using a system image that you created earlier and click Next.
Click Cancel on the warning that comes up, and then click Next followed by Advanced…
Select Search for a system image on the network, followed by clicking Yes.
When prompted – enter the network path that you used to create the backup and click OK.
Select your backup from the table and click Next.
Select the disks you want to restore and click Next, Next, Finish and Yes.
The virtual machine will reboot automatically once the backup is restored.
Once this is all complete, and once you have confirmed that the virtual machine is working properly, you can delete the dynamically expanding disk and the backup.
Article ID: SLN132078
Last Date Modified: 10/20/2014 10:12 AM
Thank you for your feedback.