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.

Using these commands, VMs are transferred (actually, exported and imported) directly from one 'source pool' member, over a secure SSH connection using the Management network, to a 'destination pool' member.

This process will monopolize Management network bandwidth for a good long while, affecting/affected by all other Management network traffic for the duration of the transfers.

Exporting, then importing will flatten (coalesce) all VHD chains in the process…a wonderful thing.

Transfer a VM from One Pool to Another

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

:!: Add sr-uuid=<desired-sr-uuid> to vm-import to specify the destination SR. Alternately, just set the desired SR as the pool Default SR using XenCenter.

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

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.1488133374.txt.gz · Last modified: 2017/02/26 11:22 by gcooper