How to move a Hyper-V virtual machine without Exporting it

Posted on 2012-09-08
Last Modified: 2012-09-10
I need to change the folder for a VM

I read is possible to create a new symbolic link to the virtual machine's XML configuration file.

you have step by step how work with hyper-v Windows 2008 R2
Question by:OWSalex
    LVL 20

    Expert Comment

    by:Svet Paperov
    Yay, there are some blogs out there that describe how to move, attach virtual machine without using export/import features. However, those methods are not supported by Microsoft and I would advise against using them.

    Depending on the purpose, you could do one of the following:
    If you need to move the VHD files only, you actually don’t need to export/import the VM: just copy the VHD files on the new location and attach them to the virtual machine(s) via the Hyper-V Manager
    If you need to move the config XML files as well as the VHD files, you have to use the export/import feature of Hyper-V Manager. Now, if the size of the VHD files are a problem (in case you have multiple VHD files attached to a single VM), you could use some tricks: after stopping the VM, disconnect the additional VHD files except the boot one (connected to IDE1) and move them independently; then export and import the VM with its only VHD file and attach the additional files to the same virtual controller where they were before exporting the VM

    Author Comment

    Thank You,
    My problems is to move VMs from one physical machine to another machine, I use symantec backup exec to do this, when I finish I have the VMs in a new physical machine, my VMs are still activated, but symantec change the physical path.

    path for the xml file

    original physical machine
    V:\Hyper-v\WORKSTATIONS\Vi016\Virtual Machines

    new physical machine
    R:\Microsoft Hyper-V\Vi016\V\Hyper-v\WORKSTATIONS\Vi016\Virtual Machines

    symantec add "Microsoft Hyper-V\Vi016\V\"
    "Microsoft Hyper-V"
    "Vi016" (machine name)
    "V" (Drive)

    I want just change the path for the xml file

    for vhd no problem I can move with the Hyper-V Manager
    LVL 20

    Accepted Solution

    I am not familiar with Symantec Backup Exec. May be there are options, you could select.

    Hyper-V Manager Import has 4 restore options: it either moves (using the existing ID) or copies (creating a new ID) the VM and it can duplicate or not the files.

    I often moves virtual machines between servers (we don’t have a cluster) and I always use Move + Duplicate: in that case, Hyper-V copies the files in the default folders as they are specified in the Hyper-V Manager.

    If someone needs to keep the files in the original folder, where the were restored, he can use Move without duplicate: in that case Hyper-V just links the VM and replace the exported XML by the config XML but all files stay in the exported folder.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do email signature updates give you a headache?

    Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

    First I will try to share a design of a Veeam Backup Infrastructure without Direct NFS Access backup.  ( Note: Direct NFS Access backup …
    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 …
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

    779 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

    15 Experts available now in Live!

    Get 1:1 Help Now