Posted on 2012-09-02
Last Modified: 2012-09-10
Can the hyper-v .vhd file be moved to another drive location without it affecting access to hyper-v?

Currently the .vhd file resides on C: Drive and I wish to move it to another drive location to free up disk space.
Question by:discoveranother
    LVL 95

    Assisted Solution

    by:Lee W, MVP
    Shut down the VM, remove the file from the VM settings, move the file, add the file back into the VM settings.  Should be fine.  In 2012, you can do a storage migration without even shutting down the VM.
    LVL 116

    Assisted Solution

    by:Andrew Hancock (VMware vExpert / EE MVE)
    You could also Export and Re-Import the VM

    see here
    LVL 95

    Expert Comment

    by:Lee W, MVP
    Exporting and importing would take at least as long and has little if any benefit (I'd expect it to be longer)
    LVL 2

    Assisted Solution

    by:Vinod Pawar
    You have 2 options
    1. Shutdown VM and change VHD location from C drive to E drive. ( make sure you have copied filed also take bckup of all vhd. files first.
    hope there are no snapshots

    2. shutdown VM, copy vhd file from c drive to new location. recreate virtual machine and attached copied vhd by selecting custom option

    Author Comment

    All sound decent options. There are no snapshots. I assume shutting down VM and copying to new drive and adding the file back in will retain all previous settings, then I can delete from C Drive ?
    LVL 95

    Accepted Solution

    A VHD is the Virtual hard disk.  It is by far the largest file (when you don't have snapshots).  The other files are definitions of what hardware you have assigned to the machine (Which VHDs, RAM, CPU, NICs, etc).  

    If you want to move all the "support" files for the VM, then I'd say use the Import/Export option. BUT, your original question was about moving the VHD.  If you JUST move the VHD as I explained, then nothing else changes but the location of the VHD.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now