User Tools

Site Tools


virtualization:xenserver:xenserver_migration

This is an old revision of the document!


XenServer Migration Issues

VM Live Migration

  • Live migration is a free feature
  • No need for an additional purchase
  • Virtual disk of the VM being migrated has to be on shared storage
  • You must have installed the Xen Tools package in the VM

Storage Live Migration

Migration to a New Pool

See also Set Up SSH Keys

https://techblog.jeppson.org/2016/06/quickly-transfer-vms-xenserver-pools/

:!: In the following commands, it is required to configure SSH keys prior.

Transfer a VM from One Pool to Another

:!: VMs must be shut down before transferring with these commands.

:!: Add sr-uuid= to vm-import to specify the destination SR.

CLI example:

xe vm-export uuid=<vm-uuid> filename= | ssh root@<ip-of-new-server> xe vm-import filename=/dev/stdin

Transfer Two VMs from One Pool to Another

xe vm-export uuid=<vm-uuid> filename= | ssh root@<ip-of-new-server> xe vm-import filename=/dev/stdin && xe vm-export uuid=<vm-uuid> filename= | ssh root@<ip-of-new-server> xe vm-import filename=/dev/stdin

Transfer a Template and a VM from One Pool to Another

CLI example:

xe template-export template-uuid=<template-uuid> filename= | ssh root@<ip-of-new-server> xe vm-import filename=/dev/stdin && xe vm-export uuid=<vm-uuid> filename= | ssh root@<ip-of-new-server> xe vm-import filename=/dev/stdin
virtualization/xenserver/xenserver_migration.1488131010.txt.gz · Last modified: 2017/02/26 10:43 by gcooper