THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

John Paul Cook

Mounting a vhd in Windows 7 and Windows Server 2008 R2

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.

Published Saturday, August 29, 2009 2:35 PM by John Paul Cook

Comment Notification

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 RSS


No Comments

Leave a Comment


About John Paul Cook

John Paul Cook is a database and Azure specialist in Houston. He previously worked as a Data Platform Solution Architect in Microsoft's Houston office. Prior to joining Microsoft, he was a SQL Server MVP. He is experienced in 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 currently studying to be a psychiatric nurse practitioner. Contributing author to SQL Server MVP Deep Dives and SQL Server MVP Deep Dives Volume 2. Connect on LinkedIn

This Blog



Privacy Statement