I''m attempting to convert a CentOs 5.6 x64 machine from Xen (Open Source) to Citrix XenServer and I am having some trouble towards the final stages. I need to take the .XVA created by XVA.PY and use XenConvert to manipulate this into another file format (OVF). Here''s the process I use: 1. Poweroff the VM 2. Create a new disk in 3 times the size of the primary 3. Sign in to root and verify the new disk shows up via fdisk -l 4. Mount the new disk to a temporary location via mount /dev/sda3 /backup 5. create a disk image of the primary drive and write it to the mounted location /backup dd if=/dev/sda1 of=/backup/backup.img 6. navigate to /backup and download the xva.py utility wget http://www.xen.org/files/xva/xva.py 7. modify xva.py so you can execute it chmod 777 xva.py 8. temp. mount the .img file created in step 5. mkdir /mnt/tmp mount -o loop backup.img /mnt/tmp 9. Edit the /mnt/tmp/boot/grub/grub.conf (menu.lst) file to reference /dev/xvda, i.e. root=/dev/xvda instead of root=/dev/sda1. 10. Edit /mnt/tmp/etc/fstab to reference /dev/xvda instead of /dev/sda1 (this also had a 2GB swap disk, removed this) 11. unmount the temporary volume via umount /mnt/tmp 12. generate the XVA file ./xva.py -n centos --is-pv --disk backup.img --filename=backupcent.xva I try to take this .XVA file and import it directly in to XenCenter and it says "This file could not be imported" I try to convert the .XVA into an OVF and it says "failed to decode tar header record" The only thing I can think of is I had 3 disks attached to this VM, 5 GB Primary (sda1) 4GB Swap disk (sda2) and a 25 GB disk (sda3) Maybe my /mnt/tmp/etc/fstab file needs to be modified to take into consideration these 3 disks? Initially, I deleted the other two from this file and only retained the primary sda1 and renamed it to xvda. Do I need to keep them and rename them to xvdb and xvdc? -- View this message in context: http://xen.1045712.n5.nabble.com/XVA-PY-Trouble-tp5709721.html Sent from the Xen - User mailing list archive at Nabble.com.
Hmm, If you do a "file backupcent.xva" does it recognize that file as a tarfile? To be fair, that utility was created back in the XenServer 5.5 days, the XVA format may have changed since then. David On 25 June 2012 15:28, Vintacular <itvince@gmail.com> wrote:> I''m attempting to convert a CentOs 5.6 x64 machine from Xen (Open Source) > to > Citrix XenServer and I am having some trouble towards the final stages. I > need to take the .XVA created by XVA.PY and use XenConvert to manipulate > this into another file format (OVF). > > Here''s the process I use: > > 1. Poweroff the VM > > 2. Create a new disk in 3 times the size of the primary > > 3. Sign in to root and verify the new disk shows up via fdisk -l > > 4. Mount the new disk to a temporary location via mount /dev/sda3 /backup > > 5. create a disk image of the primary drive and write it to the mounted > location /backup > dd if=/dev/sda1 of=/backup/backup.img > > 6. navigate to /backup and download the xva.py utility > wget http://www.xen.org/files/xva/xva.py > > 7. modify xva.py so you can execute it chmod 777 xva.py > > 8. temp. mount the .img file created in step 5. > mkdir /mnt/tmp > mount -o loop backup.img /mnt/tmp > > 9. Edit the /mnt/tmp/boot/grub/grub.conf (menu.lst) file > to reference /dev/xvda, i.e. root=/dev/xvda instead of root=/dev/sda1. > > 10. Edit /mnt/tmp/etc/fstab to reference /dev/xvda instead of /dev/sda1 > (this also had a 2GB swap disk, removed this) > > 11. unmount the temporary volume via umount /mnt/tmp > > 12. generate the XVA file > ./xva.py -n centos --is-pv --disk backup.img --filename=backupcent.xva > > I try to take this .XVA file and import it directly in to XenCenter and it > says "This file could not be imported" I try to convert the .XVA into an > OVF > and it says "failed to decode tar header record" > > The only thing I can think of is I had 3 disks attached to this VM, 5 GB > Primary (sda1) 4GB Swap disk (sda2) and a 25 GB disk (sda3) > > Maybe my /mnt/tmp/etc/fstab file needs to be modified to take into > consideration these 3 disks? Initially, I deleted the other two from this > file and only retained the primary sda1 and renamed it to xvda. Do I need > to > keep them and rename them to xvdb and xvdc? > > -- > View this message in context: > http://xen.1045712.n5.nabble.com/XVA-PY-Trouble-tp5709721.html > Sent from the Xen - User mailing list archive at Nabble.com. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Yes it sure does it says: backup.xva tar archive Here are the logs of XenConvert Monday, June 25, 2012 11:16:24 AM XenConvert 2.3.1.2654 Copyright (c) 2001-2011 Citrix Systems, Inc. Microsoft Windows Server 2003 R2 SP 2 Suite=0x00000110 Processor Architecture: x86 Number of processors: 2 XVA to OVF started at Monday, June 25, 2012 11:16:24 AM Reading the XVA configuration... Converting virtual disks... Failed to decode as octal string. Failed to decode tar header record. XVA to OVF stopped at Monday, June 25, 2012 11:16:26 AM XVA to OVF lasted 1.4 seconds -- View this message in context: http://xen.1045712.n5.nabble.com/XVA-PY-Trouble-tp5709721p5709725.html Sent from the Xen - User mailing list archive at Nabble.com.
Can you import it using xe vm-import You can also give a XenServer IP address and username/password to xva.py and it will stream directly. David On 25 June 2012 16:16, Vintacular <itvince@gmail.com> wrote:> Yes it sure does it says: > > backup.xva tar archive > > Here are the logs of XenConvert > > Monday, June 25, 2012 11:16:24 AM > XenConvert 2.3.1.2654 Copyright (c) 2001-2011 Citrix Systems, Inc. > Microsoft Windows Server 2003 R2 SP 2 > Suite=0x00000110 > Processor Architecture: x86 > Number of processors: 2 > XVA to OVF started at Monday, June 25, 2012 11:16:24 AM > Reading the XVA configuration... > Converting virtual disks... > Failed to decode as octal string. > Failed to decode tar header record. > XVA to OVF stopped at Monday, June 25, 2012 11:16:26 AM > XVA to OVF lasted 1.4 seconds > > -- > View this message in context: > http://xen.1045712.n5.nabble.com/XVA-PY-Trouble-tp5709721p5709725.html > Sent from the Xen - User mailing list archive at Nabble.com. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
No luck unfortunately. I''ve put a lot of time in to this, i''ve done a lot of research, I''m surprised I cannot find a way to convert a CentOS system from Xen Open source to Citrix XenServer, surely I cannot be the only one attempting to do this. -- View this message in context: http://xen.1045712.n5.nabble.com/XVA-PY-Trouble-tp5709721p5709733.html Sent from the Xen - User mailing list archive at Nabble.com.