• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1831
  • Last Modified:

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.
0
camdenboyz
Asked:
camdenboyz
1 Solution
 
Phil_taylor1980Commented:
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.
0
 
phrontisteCommented:
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).
0
 
msmamjiCommented:
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
0
 
Salman_AhmedCommented:
There are many way to attach VHD file in new location.
1.) Export and Import
2.) Only Create new machine and attached old VHD files

but if you planing for DR.

Scenario is different than normal machine.

tell me your whole current environment and what your plan for DR. Then i can give you correct idea which help you.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now