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.
LVL 1
camdenboyzAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Virtual Server

From novice to tech pro — start learning today.