Link to home
Start Free TrialLog in
Avatar of camdenboyz
camdenboyz

asked on

Importing Hyper-V VM

I powered down the vm copied the vm to a testing environment.  I now want to import the vm.  I copied the entire directory of the vm (vhds and xml ).  However when i attempt to import the vm i am prompted with an error message that states " Import failed.  Import failed.  unable to find virtual machine import files under location "FDDSFS".  You can import a virtual machine only if you used hyper-v to create and export it.  How do i export it then?  So i have to build a new vm and attach the vhds.  Is there a better way?  I am wanting to do this for DR.
Avatar of Phil_taylor1980
Phil_taylor1980
Flag of United Kingdom of Great Britain and Northern Ireland image

i often cheat with this and just set up a VM but then tell it to use the exisiting disks, the new machine is then created with the same settings. You thne just need to assign a NIC and IP and its off an running.
Avatar of phrontiste
phrontiste

Thats exactly what I do as well, +1 to Phil, as everytime i have used Hyper-v import / export, have faced problems

if you have snapshots, just merge them before you copy over the vhd.

i think in your case, as phil has already mentioned, just create a new vm and use existing disk (vhd).
When you export the VM, the Hyper-V manager creates an .exp file among other things. This file is used during the import. If you want to use the vhd for exporting, then you have to make a VM and attach the vhd to it.
I would rather export the VMs and try import then to copy the vhd. If for some reason, the export fails the vhd can be used as the other experts have said. If you also use snapshots, and want to retain the snapshots, then I would definitely used exports.
If you have multiple Hyper-V hosts in several disparate sites, then I think it would be feasible to look into SCVMM.

Regards,
Shahid
ASKER CERTIFIED SOLUTION
Avatar of Salman_Ahmed
Salman_Ahmed
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial