In a previous article we looked at backing up running VMs in XenServer. In this article, we will see how a backed up VM can be restored. Login to the console of the host machine you want the restored VM to be placed on, and issue the following command:

xe vm-import filename="/path/to/backed-up-vm.xva" preserve=true

The path to the backed up VM is typically of the form:

/var/run/sr-mount/090c1a99-c0c6-3b31-598d-273130924b96/backed-up-vm.xva

The option preserve=true makes sure that the VM gets the same MAC address as the backed up VM. Do this only if you know that the original VM is no longer in use.

Restoring backup of VM in XenServer
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *