2008 R2 Move VM to new partition on same server

I have a 08 r2 server running hyper v. I have all of my vms in drive V for instance. I want to now store them on drive X which is my SAN. How do you move these correctly to the new drive. Thanks!
LVL 7
valmaticAsked:
Who is Participating?
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.

GiladnCommented:
will you still be using drive V  after the move? is not, you can stop all Hyper-V services, copy all drive content (or Hyper V  content) to the same path at drive X and then change the drive letter to V.

In any other case, you can use import/export to move each machine manually:
see here:

http://social.technet.microsoft.com/Forums/windowsserver/en-US/17b5aedd-851c-42fa-8626-bf070701ad68/move-a-hyper-v-virtual-disk-location?forum=winserverhyperv

Hope this helps,

Gilad
0
valmaticAuthor Commented:
Hi
It will be on the same hyper v server that it is already. I just simply want to move where it is stored on the same server.
Thanks.
0
GiladnCommented:
Ok, do you need to move all of drive V content?  will you be using drive V (currently used) after the move?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

valmaticAuthor Commented:
I was going to move like 1 server at a time to test one by one. The way i did with my test VM was shut it down, open the settings, tell it to remove the VHD. Then i flat out deleted the server from hyper v. I moved the VHD to my SAN, and i basically remade a VM in hyper v and pointed it at that VHD. It worked ok except, it lost the IP, i had to re-activate windows. So not sure i want to do that again.
0
David Johnson, CD, MVPOwnerCommented:
Since the largest items are the VHD/vhdx 's what I do is shutdown the vm.. move the vhd now in the settings for the VM just change the location of the vhd/vhdx
0
valmaticAuthor Commented:
Thanks David, but i would like to move the entire directory that has the xmls and all that good stuff as well. In case this server fails i have everything i need sitting on the SAN drive.
0
Rolf HasselbuschIT-ConsultantCommented:
So you are good to go with a simple Ex- and Import because the import didn't mean Hyper-V will import it in the Default Folders for Machines, Disks, Configs.

Export: Exports all files and settings in to one folder named like the VM
Import: Simply attaches this exported folder

So do an Export, move the generated folder to your SAN and do an Import

More Infos about Ex- and Import: http://itproctology.blogspot.de/2008/05/versatility-of-hyper-v-export-import.html
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
valmaticAuthor Commented:
So once i export it, do i "delete" the old one we will call it from the hyper v manager. Then i would go do an import?
0
Rolf HasselbuschIT-ConsultantCommented:
That's true!
0
valmaticAuthor Commented:
thanks ill try it out.
0
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 Legacy OS

From novice to tech pro — start learning today.

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.