How to Export a Virtual Machine to an External USB Drive

How to Export a Virtual Machine to an External USB Drive

book

Article ID: CTX120520

calendar_today

Updated On:

Description

This article describes how to export a XenServer Virtual Machine (VM) to a USB storage device.


Instructions

Complete the following steps:

  1. 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”. 

    User-added image
  2. Create a subdirectory called “usb”, using the following command.\:
    mkdir /mnt/usb

  3. Mount the device file from step 1 by using the following command:
    mount /dev/sdb1 /mnt/usb

    User-added image

    Note: The mass storage device should be formatted before it is remounted with the following command:
    mkfs –t ext3 /dev/sdb1

  4. Export a VM using the XAPI with the following command:
    xe vm-export vm=<Name of VM> filename=<Name of file ending in “.xva”>

    User-added image
  5. To see the file and its size, use the following command:
    ls –l

    User-added image
  6. Unmount the USB drive using the following command:
    umount /mnt/usb

Issue/Introduction

This article describes how to export a XenServer Virtual Machine (VM) to a USB storage device.

Additional Information

CTX124660 - How to Manually Import Virtual Machines to Other Than the Default Storage Repository