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:
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.