Article ID: 118688, created on Nov 17, 2013, last review on Feb 11, 2015

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


Container migration from PVC 4.x or PSBM 4.x/5.x to Parallels Cloud Server 6.0 fails with the following error message:

Actual result that you got : Connection to destination node ( is successfully established
Moving/copying CT#101 -> CT#101, [], [] ...
vzctl_conf_get_param(QUOTAUGIDLIMIT) return 500000
The Container's file system will be converted to ext4.
Error: Can't determine disk usage - template doesn't support migration
Unable to calculate the required image size. The default value 10485760 will be used.
Check target CT name: test
ssh exited with code 2
Can't move/copy CT#101 -> CT#101, [], [] : ssh exited with code 2

Using vzctcalc utility manually gives the same message:

[root@src ~]# vzctcalc 101 --disk
Error: Can't determine disk usage - template doesn't support migration


The issue is recognized as a product bug with internal ID PCLIN-32188.

The container uses an old (or custom) OS template, for which there's no ct2vm script defined. Example:

[root@src ~]# vzpkg list -O 101
debian-4.0-x86_64                  2010-04-07 09:51:04

[root@src ~]# ls /vz/template/debian/4.0/x86_64/config/os/default/ct2vm
ls: cannot access /vz/template/debian/4.0/x86_64/config/os/default/ct2vm: No such file or directory


Note!: Workaround below only allows to kickstart the migration process when ct2vm does not exist, and it doesn't guarantee that resulting VM would work properly. High chances VM won't have bootloader installed and you'll have to boot from a LiveCD to install it manually.

  1. Locate the suitable script in the following directory:

    • For RHEL-based systems: /usr/share/libvznbdmig/scripts/rhel-templates
    • For SUSE-based systems: /usr/share/libvznbdmig/scripts/suse-templates
    • For Debian-based systems: /usr/share/libvznbdmig/scripts/ubuntu-templates
  2. Copy the script to the OS template configuration directory. Example:

    # cp -af /usr/share/libvznbdmig/scripts/ubuntu-templates /vz/template/debian/4.0/x86_64/config/os/default/ct2vm
  3. Correct the script to reflect the actual OS template name. Example:

    --- ct2vm.orig  2013-11-12 15:19:15.249450187 +0400
    +++ ct2vm       2013-11-12 15:21:00.782449909 +0400
    @@ -9,7 +9,10 @@
     . $DATADIR/ct2vmlib
    -getmigscript $SCRIPT_NAME >/dev/null 2>&1
    +#getmigscript $SCRIPT_NAME >/dev/null 2>&1
     if [ $TMPLARCH = x86 ]; then

Search Words

Error: Can't determine disk usage



template doesn't support migration

ssh exited with code 2

a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF