That worked almost flawlessly. I am not a linux person so it took me a bit to this to work so i will post the exact steps i used.
Linux Command line - The VM needs to be shutdown.
fdisk -l (look for USB drive) write down /dev/? Example ( /dev/sdb1)
fdisk /dev/? (?=above)
mkfs.ext3 /dev/? (?=above)
mkdir /backup
mount /div/? /backup (?=above)
xe vm-list (get the uuid of the vm you wnat to backup)
xe vm-export uuid=<uuid from above> filename=/backup/VM_File_N
After backup verify file was exported
cd ..
cd backup
ls -l
<Your file should be listed and the file size>
umount /backup (dismounts drive)
Main Topics
Browse All Topics





by: ToxicPigPosted on 2009-09-08 at 14:22:46ID: 25286302
Do it from the command line. Attach your removable storage (note that the format of the filesystem will make a big difference, I suggest ext3). Let's say you mount a USB drive on /mnt as such:
mount /dev/sdc1 /mnt
Then just run these commands:
xe vm-list (get the uuid of the vm you want to backup)
xe vm-shutdown uuid=<uuid from above>
xe vm-export uuid=<uuid from above> filename=/mnt/vm_name.xva
xe vm-start uuid=<uuid from above>
Then unmount your storage for transport:
umount /mnt