Community
 
 
 

CloudPlatform 4.x

284 abonnés
 
Avatar
Pankaj Paliwal

Migrate VMs from XenServer 6.2.0 to CCP 4.3.0.2

Avatar

Migrate VMs from XenServer 6.2.0 to CCP 4.3.0.2

We have a current XenServer/XenCenter setup where we have 4 virtual machines.  We now have a CloudPlatform environment setup on different hardware, but also using XenServer 6.2.0 as the hypervisor.  I need to somehow get these VMs over to the CCP environment and I'm finding it hard to figure out the best way to do this.  The docs seem to block me in whatever effort I think I need to do.

 

FIrst of all, I need to do any exporting, etc. from the XenServer CLI.  There's no way I can download hundreds of GB of files and reupload them.  From the CLI, I should be able to transfer them directly from the old environment to a location in the new environment where I can put them where they need to be.

 

So, according to the admin guide for CCP, chapter 13 talks about uploading templates.  In the UI RegisterTemplates dialog, the only format option available for a XenServer hypervisor is a VHD format file.  So, how can I get a VHD file out of my existing VM hard disks?

 

If I do a xe vm-export, it will only create a ".xva" file.  If I do a xe vdi-export, it appears what it will export is considered a "raw vdi" file.  But I'm not sure what the means or what format it is in.  In our current environment, all the VDI's appear to be individual LVM volumes.

 

It's hard for me to believe that with both XenServer and CCP being Citrix products, that it can be so difficult to transfer VMs from one environment to the other.

 

I hope someone can help me figure out what to do.

 


Bruce Hellstrom MEMBERS
4 commentaires
0
 
 

Commentaire officiel

Avatar
Pankaj Paliwal
Avatar

Hi Abhisek,

 

It appears I was able to accomplish this using the xe xdi-export command.  That command is undocumented in the admin guide, but it appears in the command line help.  That command has an optional parameter of "format" which allowed me to specify vhd as the type of output.  I successfully created a CCP instance from one of these exported vdi files, so it appears to have worked.

 

The format for the command is:

xe vdi-export uuid=<vdi uuid> filename=<filename to export to> format=vhd

 

Bruce


Bruce Hellstrom MEMBERS
Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

 
 

Previous 4 commentaires

Avatar
Pankaj Paliwal
Avatar

Migrate VMs from XenServer 6.2.0 to CCP 4.3.0.2

Hello Bruce,

 

You many use "Xen Convert" to get the VHD file from a .xva file.

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hi Abhisek,

 

Thanks, but XenConvert only runs on Windows correct?  As I said, I need to work from the XenServer via SSH.  If I download the export files, convert them and then upload them to the new environment, that would probably take several days due to the size.  Both of the environments are in the same data center, so transferring directly between them should be very fast, but it all has to be done in a linux world.

 

Bruce


Bruce Hellstrom MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Bruce,

 

Thanks for sharing this use-case.

 

In this scenario, try to use xe vdi-copy command and destination as a NFS location. In this way we will get a vhd file on that NFS SR.

 

xe vdi-copy uuid= sr-uuid=
 

where;

 

uuid=(UUID of the VDI)
sr-uuid=(UUID of the NFS SR  to where you want to copy the VDI)

To find the UUID of your VDI issue the following command:

xe vdi-list | less

 

Please us know if this helps.

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES
Actions pour les commentaires Permalien

Top Contributors