Windows 7 Forums Search

Go Back Windows 7 Forums > Seven Forums > Tutorials » Virtual Hard Disk - Create and Attach VHD

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7 - Virtual Hard Disk - Create and Attach VHD


 

Virtual Hard Disk - Create and Attach VHD

How to Create and Attach a Virtual Hard Disk in Windows 7
Published by Brink
11-17-2008
Default Virtual Hard Disk - Create and Attach VHD

How to Create and Attach a Virtual Hard Disk in Windows 7
Information
A Virtual Hard Disk is a created VHD file on your hard drive that acts as a separate hard drive disk in Computer. This will show you how to create and attach (mount), or only attach (mount) an existing, a VHD in Windows 7.
Note
Special thanks to Steven (dmex) for pointing out this new feature in Windows 7.
Tip
You can also use a VHD file for such programs as Virtual PC.
Warning
When you restart the computer, any attached VHD files you have will no longer be attached and appear in Computer. You will have to reattach them to have them back in Computer until the next restart.

EXAMPLE: New Virtual Hard Disk (VHD) in Computer
Virtual Hard Disk - Create and Attach VHD-computer.jpg

Here's How:
1. Open the Control Panel (All Items View).
A) Click on the Administrative Tools icon, and click on Computer Management.

B) Go to step 3.
OR

2. Open the Start Menu.
A) In the Search box, type compmgmt.msc and press Enter.
3. If prompted by UAC, then click on Yes.

4. To Attach an Existing VHD File -
NOTE: This is for a detached VHD file that you had already created in step 5 below, or from an existing VHD file.
A) In the left pane, right click on Disk Management, and click on Attach VHD. (See screenshot below)
NOTE: You can also click on Disk Management, Action on the menu bar, and Attach VHD.
Virtual Hard Disk - Create and Attach VHD-attach-1.jpg
B) Click on the Browse button. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-attach-2.jpg
C) Navigate to the VHD file location and select it, then click on the Open button. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-attach-3.jpg
D) If you want the VHD to be read-only, then check the box, otherwise leave it unchecked. Click on OK. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-attach-4.jpg
E) If the existing VHD file is unallocated, go to step 6. (See screenshot below step 6A)

F) If the existing VHD file is allocated, go to step 8. (See screenshot below step 8)
5. To Create and Attach a New Virtual Hard Disk -
A) In the left pane, right click on Disk Management, and click on Create VHD. (See screenshot below)
NOTE: You can also click on Disk Management, Action on the menu bar, and Create VHD.
Virtual Hard Disk - Create and Attach VHD-create-1.jpg
B) Click on the Browse button. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-create-2.jpg
C) Navigate to the location you would like to store the new VHD file, type in a name for the VHD file, and click on Save. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-create-3.jpg
D) Type in the maximum size you want the Virtual Hard Disk to be, and select the size to be MB, GB, or TB (1024 MB = 1 GB, 1024 GB = 1 TB). (See screenshot below)

E) Select (dot) if you want the new VHD size to be Dynamic or Fixed, and click on OK. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-create-4.jpg

F) Continue to step 6.
6. To Initialize the Virtual Hard Disk -
A) Right click on the new unallocated VHD Disk # and click on Initialize Disk. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-disk_management-1.jpg
B) Select (check) the Disk # from above for the new VHD. Select (dot) if you want the new VHD to have a MBR (Master Boot Record) or GPT (GUID Partition Table) partition, and click on OK. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-initialize.jpg
C) Continue to step 7.
7. To Create a New Simple Volume in the VHD -
A) Right click on the new unallocated VHD and click on New Simple Volume. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-disk_management-2.jpg
B) Click on the Next button. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-new_simple_volume-1.jpg
C) Type in how much of the maximum disk space (step 5D) you want for the size of this VHD partition, and click on Next. (See screenshot below)
NOTE: If you do not use the maximum space, then you will have a second unallocated VHD partition left with the remaining available disk space.
Virtual Hard Disk - Create and Attach VHD-new_simple_volume-2.jpg
D) Select the file system (NTFS or FAT32) you want the VHD partition to be. (See screenshot below)

E) Type in a name for the VHD to be displayed in Computer. (See screenshot below)

F) Check the Perform a quick format box, and click on Next. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-new_simple_volume-3.jpg
G) Click on the Finish button. (See screenshot below)
Virtual Hard Disk - Create and Attach VHD-new_simple_volume-4.jpg
7. The new VHD is now created and attached. (see screenshot below)
Virtual Hard Disk - Create and Attach VHD-disk_management-3.jpg
That's it,
Shawn


.
Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 12,793
Brink has a reputation beyond reputeBrink has a reputation beyond repute
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
11-17-2008   #1
Mr GRiM


Windows 7 Ultimate Vista Ultimate x64
QLD, Cairns
 
 


At first glance when you see Windows 7 it doesn't look allot different from Vista, But when you start to dig a little you start to see all of extra hidden features and this is only a Pre Beta, so it will more than likely have many more features with the final release.

Nice work Shawn.

My System SpecsSystem Spec
11-17-2008   #2
Brink


Windows 7 Ultimate x64 Retail
Texas
 
 


I can't wait to see what other features Windows 7 may have either.

Thank you Mr GRiM.
My System SpecsSystem Spec
04-11-2009   #3
son110


windows 7
 
 


My English is not good

Please help, after 4e ->error

thanks you!
And, why did admin band my Ip 118.71.66.77?
My System SpecsSystem Spec
04-11-2009   #4
Orbital Shark


Windows 7 x86
Milton Keynes, United Kingdom
 
 


Excellent work as always Shawn. I noticed this option a couple of days ago & thought to myself 'I wonder if there's a tutorial on it yet' & 'Wouldn't it be great to write 1?'. Guess you're just 3 steps ahead of every1 LOL
My System SpecsSystem Spec
04-11-2009   #5
son110


windows 7
 
 


Thank you very much, can you help more?
My English is not good

My System SpecsSystem Spec
04-11-2009   #6
Brink


Windows 7 Ultimate x64 Retail
Texas
 
 


Hello Son,

It looks like you mave some group policy setting set preventing you from doing this. Are you part of a domain?

If needed, this can help with translations.
Google Translate
My System SpecsSystem Spec
04-11-2009   #7
Brink


Windows 7 Ultimate x64 Retail
Texas
 
 


Quote   Quote: Originally Posted by Orbital Shark View Post
Excellent work as always Shawn. I noticed this option a couple of days ago & thought to myself 'I wonder if there's a tutorial on it yet' & 'Wouldn't it be great to write 1?'. Guess you're just 3 steps ahead of every1 LOL
LOL, thank you.
My System SpecsSystem Spec
04-11-2009   #8
son110


windows 7
 
 


Thank you! Do you have any software to fix the error?
My System SpecsSystem Spec
04-11-2009   #9
Brink


Windows 7 Ultimate x64 Retail
Texas
 
 


Do you have enough free space on the selected drive to create the VHD on?
My System SpecsSystem Spec
Comment

Tutorial Tools



Similar Threads for: Virtual Hard Disk - Create and Attach VHD
Windows 7 Tutorial Category
Disk Check Tutorials
USB hard drive a bootable Windows 7 install disk News
Create and Mount VHD`s with Windows7 General Discussion
Password - Create for a User Account Tutorials
A Virtual Future Software


All times are GMT -5. The time now is 04:24 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Windows 7 Tutorial powered by GARS 2.1.9 ©2005-2006

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26