Updated: 22 October 2026 · Applies to: SolusVM (historical reference; Virtualizor is this project's current VPS platform)

SolusVM is no longer this project's VPS platform. VPS hosting here now runs on Virtualizor, which handles OpenVZ-to-Xen style migrations differently. This article is kept as historical reference for anyone still operating an older SolusVM-based node; it is not a procedure used on current infrastructure.

1. Prepare the destination Xen VM

Create a Xen VM with specs matching the original OpenVZ VM. Confirm it can boot and you can SSH into it before going further.

2. Shut down both VMs

3. Back up the destination Xen VM

SSH into the destination Xen node (for example, dest-node) and identify the VM ID from SolusVM:

cd /home/xen/VMID
grep disk VMID.cfg

You should see lines like:

ramdisk = '/boot/solus-initrd.img'
disk = ['phy:/dev/VolGroup00/VMID_img,sda1,w', 'phy:/dev/VolGroup00/VMID_swap,sda2,w']

Mount that disk image:

mount /dev/VolGroup00/VMID_img ./mnt
df -h

Confirm it is mounted, then back up the original Xen VM's data before overwriting it:

cd /home/xen/VMID
cp -ai mnt mnt.orig

4. Transfer the source VM to the destination

SSH into the source OpenVZ node (for example, source-node) and identify the VM ID (VZID) from SolusVM. Create an exclusion list for the rsync transfer:

vim /root/exclude.txt

Use the CentOS list (Appendix 1) or the Ubuntu/Debian list (Appendix 2) below, depending on the guest OS. Then perform the transfer, using the destination Xen node's private IP address:

rsync --exclude-from="/root/exclude.txt" --delete --numeric-ids -avpogtStlHz -e "ssh -p 22222" /vz/private/VZID/ 203.0.113.20:/home/xen/VMID/mnt/

5. Unmount the destination and boot the new VM

On the destination Xen node:

umount /home/xen/VMID/mnt

Boot the VM through SolusVM and confirm everything works correctly.

6. Back up and remove the old OpenVZ VM

On the source OpenVZ node:

cd /vz/private
cp -ai VZID VZID.backup

Then remove the source VM through SolusVM.

Troubleshooting

If the new Xen VM fails to boot cleanly, watch its console for a kernel module that failed to load:

xm console VMID

A missing-module error looks like:

modprobe: FATAL: Could not load /lib/modules/KERNEL_VERSIONxen/modules.dep: No such file or directory

If so, copy the matching kernel modules from the node into the VM:

rsync -av /lib/modules/KERNEL_VERSION /home/xen/VMID/mnt/lib/modules/

then unmount the storage, boot the VM again, and confirm the error is gone.

Appendix 1: /root/exclude.txt for a CentOS VM

/boot
/proc
/sys
/tmp
/dev
/var/lock
/etc/fstab
/etc/mtab
/etc/resolv.conf
/etc/conf.d/net
/etc/network/interfaces
/etc/networks
/etc/sysconfig/network*
/etc/sysconfig/hwconf
/etc/sysconfig/ip6tables-config
/etc/sysconfig/kernel
/etc/hostname
/etc/HOSTNAME
/etc/hosts
/etc/modprobe*
/etc/modules
/net
/lib/modules
/etc/rc.conf
/usr/share/nova-agent*
/usr/sbin/nova-agent*
/etc/init.d/nova-agent*
/etc/ips
/etc/ipaddrpool
/etc/ips.dnsmaster
/etc/sysconfig/network-scripts/ifcfg-eth0

Appendix 2: /root/exclude.txt for an Ubuntu/Debian VM

/etc/fstab
/etc/securetty/boot
/etc/inittab
/etc/network
/proc
/lib/modules
/sys
/etc/resolv.conf
/etc/hosts

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Was this answer helpful?

Still stuck? Open a ticket