vzcpt module is not loaded on the source node

While doing live migration of OpenVZ vps I got below error

[root@node589 ~]# vzmigrate -v --remove-area no  --keep-dst  --online  --ssh="-p xxxxx" xx.xx.xx.xx  9732
Locked CT
Starting live migration of CT 9732 to xx.xx.xx.xx
OpenVZ is running...
Error: vzcpt module is not loaded on the source node
Error: Can't continue live migration
[root@node589 ~]#


This happened because the module vzcpt was not loaded on the source server. So we will have to manually load this module. First of check your kernel version.

# uname -r

The the load the module /lib/modules/KERNEL_VERSION/kernel/kernel/cpt/vzcpt.ko to resolve the problem. In my case the kernel version is 2.6.32-042stab090.4. So to load the module I ran the command

insmod /lib/modules/2.6.32-042stab090.4/kernel/kernel/cpt/vzcpt.ko

After that migration was successful.


Sreejit is the founder of Server Management Plus. He has created a lots of automation scripts for the company using which we are able to resolve issue at an extremely fast rate and save lots of time. He has a very keen interest in new technologies and spend most of his free time online researching about it apart from listening music and watching movies.