Most of us are dependent on virtual machines for all kinds of reasons with demos and testing near the top of the list for many of us. Our dependency on virtual machines makes us need better tools for managing them. Windows 7 and Windows Server 2008 R2 can mount a vhd and make it accessible as if it is a mounted drive. The contents of the vhd can be modified without booting up a virtual machine. Under More Actions under Disk Management, is a new option called Attach VHD. It gives you the option to mount a vhd as either read only or modifiable. Curiously, detaching the vhd must be done from a different menu in a different location. The Detach VHD option is found in a menu obtained by right-clicking the square box for the disk in the graphical menu of disk partitions.
Disk Management Showing Attach VHD feature. Detach VHD is from a second screen capture that was superimposed on the first.
Being able to modify the contents of a vhd containing a virtual OS is of particular importance when migrating a virtual machine from Hyper-V to Virtual PC. Although this is a completely unsupported operation, it is something people need to do from time to time. My next post explains how to do this.
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
About John Paul Cook
John Paul Cook is a Technology Solutions Professional for Microsoft's data platform and works out of Microsoft's Houston office. Prior to joining Microsoft, he was a Microsoft SQL Server MVP. He is experienced in Microsoft SQL Server and Oracle database application design, development, and implementation. He has spoken at many conferences including Microsoft TechEd and the SQL PASS Summit. He has worked in oil and gas, financial, manufacturing, and healthcare industries. John is also a Registered Nurse who graduated from Vanderbilt University with a Master of Science in Nursing Informatics and is an active member of the Sigma Theta Tau nursing honor society. He volunteers as a nurse at clinics that treat low income patients. Contributing author to SQL Server MVP Deep Dives
and SQL Server MVP Deep Dives Volume 2
. Opinions expressed in John's blog are strictly his own and do not represent Microsoft in any way.