This article describes how to export a XenServer Virtual Machine (VM) to a USB storage device.
Complete the following steps:
Use the fdisk -l command to determine the device file to use for the USB mass storage device. In the following screen shot, the device file is “/dev/sdb1”.
Create a subdirectory called “usb”, using the following command.\:
mkdir /mnt/usb
Mount the device file from step 1 by using the following command:
mount /dev/sdb1 /mnt/usb
Note: The mass storage device should be formatted before it is remounted with the following command:
mkfs –t ext3 /dev/sdb1
Export a VM using the XAPI with the following command:
xe vm-export vm=<Name of VM> filename=<Name of file ending in “.xva”>
To see the file and its size, use the following command:
ls –l
Unmount the USB drive using the following command:
umount /mnt/usb