sexta-feira, 8 de junho de 2012 05:20
I have a Hyper-V server with six drives configured in three RAID-1 arrays (NOS, Data and Database). The hyper-v host is installed on the NOS drive along with the VHD file for the Guest OS. On the Data drive is a VHD for the Guest’s user data. There’s nothing currently on the Database drive.
I had a failure of one of the drives that make up the Data RAID-1. The physical Data drive is a little small so I pulled the Database drives out of the system and inserted two new 1T drives and created a new RAID-1 as a "New Data" drive. I copied the Guest data VHD file to the new drive, but, the virtual machine data root (\Virtual Machines\) with the XML configuration file is on the original Data drive…
Question 1 – is my assumption correct that if I remove the original Data drive that contains the XML configuration file and then try to start my Guest, I'll have problems?
Question 2 – if my assumption in question #1 is correct, is there a simple way to move the XML file to the New Data drive (copying it's simple, but I don't see a way to redirect Hyper-V to the new location)?
I know I can do an “Export” to the New Data drive (fortunately it’s large enough to hold everything) and then import the system, but, I’ll have to go back in and change the mapping for the Guest OS location (putting it back to its original location on the NOS drive)…
Thanks and advance for any help I can get!
Todas as Respostas
sexta-feira, 8 de junho de 2012 06:06
You can perform an export/import of the configuration files only, as Ben Armstrong described on his blog here:
You could also create a new virtual machine at the desired location, and simply attach the existing vhd files to it.
sexta-feira, 8 de junho de 2012 08:53
The XML file contains the VM configuration, like all the material components that you have assigned to the VM (CPU/RAM/DISK/...). If you start the vm without the XML file, you will hav some trouble, you're correct
to move all the VM's files (vhd and xml), you can use the export/import option, it will changes the path of the VM.
another solution is to copy/paste the vhd file only, but you will loose the material configuration, as I explain on the top of my answer.
The last solution is to use this procedure (in french sorry)
If you need it in english, tell me, and I will translate it.
Raynald CHAFFAUX Consultant Virtualisation Nelite North Africa