Hyper-V How To Create A Virtual Hard Disk
Hyper-V How To Create A Virtual Hard Disk
altaro.com/hyper-v/hyper-v-create-virtual-hard-disk/
May 10,
2016
1. In Hyper-V Manager’s center pane, right-click a virtual machine and click Settings.
2. In the left pane of the VM’s Settings dialog, click
to select the controller that you wish to connect
the new disk to. Remember that you cannot
make changing to the disk configuration of an
IDE controller while the virtual machine is on, Access VM Settings
but this is not a restriction for the SCSI controller.
The following two screen shots show the IDE screen and the SCSI screen,
respectively. On either, click the Add button (for an IDE controller, make sure that
Hard Drive is highlighted).
1/8
Add VHD on IDE
2/8
3. Whichever you chose, the following screen will appear:
Disk Connection
Notice that the connection information for Controller is the controller that you
selected in step 2 and the Location is the next available on that controller. You can
freely switch either here, with the limitation that you can’t add to an IDE controller
while the VM is on and you can’t use a location that already has a disk attached.
When ready, click the New button.
4. This will open the New Virtual Hard Disk Wizard. Jump down to the New Virtual
Hard Disk Wizard section below to finish up.
3/8
Whichever method you chose above, you’ll now be looking at the New Virtual Hard
Disk Wizard. Follow the steps below to actually create the virtual hard disk.
1. The first screen that appears is informational unless it was previously suppressed
via the Do not show this page again checkbox. When ready, click Next.
2. If you aren’t adding the disk to a Generation 2 virtual machine, the first active
screen is the Choose Disk Format page. This allows you to choose between the
earlier VHD format or the newer VHDX format. Unless you need to use the disk on
a pre-2012 version of Hyper-V or share it with a third party hypervisor that can’t
understand VHDX, you’ll likely want to choose VHDX. Make your choice and click
Next.
4/8
3. The next screen is Choose Disk Type. Your options are between fixed size,
dynamically expanding, and differencing.
4. Next, you’ll be asked to provide the name and location for your new virtual hard
disk.
5/8
5. If you are creating a new differencing disk, the next screen will ask you to select the
parent virtual hard disk.
6/8
6. If you chose either a fixed size or a dynamically expanding disk, you’ll be brought to
the Configure Disk screen.
1. Create a new blank virtual hard disk does exactly that. You’ll need to
supply the size for the disk that you wish to create.
2. You can also choose to copy an existing physical disk’s contents to the file
that you specified in step 4.
3. The final option is like the second except that the source is an existing VHD
file.
7. The final screen is a summary. Review the settings, click Back if you need to correct
anything.
PowerShell
7/8
VHD creation is a fairly easy-to-understand process but there are a few things to be
mindful of.
If you create a disk using a virtual machine’s Settings page, the wizard will
automatically pre-populate with the new disk file when it is finished creating.
If you create a new disk from a physical disk or another virtual disk, the new VHD is
built up from scratch. If it’s dynamically expanding, any empty blocks in the source
will not be duplicated in the new disk. This means that it will likely be smaller than
the original.
The new disk that you create does not need to be in the same location or on the
same storage as any of a virtual machine’s other files.
A new differencing disk’s parent cannot be actively in use by any virtual machine,
although it can be a parent of other differencing disks.
For Linux virtual machines, it is recommended that you specify -BlockSize 1MB for
dynamically-expanding virtual hard disks. You can only provide this option with
PowerShell’s New-VHD. None of the GUI tools allows for a block size override. Due
to the way that common Linux file systems work, this switch will result in more
efficient space utilization.
Did you know Microsoft does not back up Office 365 data? Most people assume their
emails, contacts and calendar events are saved somewhere but they're not. Secure your
Office 365 data today using Altaro Office 365 Backup - the reliable and cost-effective
mailbox backup, recovery and backup storage solution for companies and MSPs.
Eric Siron
I have worked in the information technology field since 1998. I
have designed, deployed, and maintained server, desktop,
network, and storage systems. I provided all levels of support
for businesses ranging from single-user through enterprises
with thousands of seats. Along the way, I have achieved a
number of Microsoft certifications and was a Microsoft Certified
Trainer for four years. In 2010, I deployed a Hyper-V Server 2008
R2 system and began writing about my experiences. Since then,
I have been writing regular blogs and contributing what I can to the Hyper-V community
through forum participation and free scripts.
8/8