Search for:

  • Article for your preferred language does not exist. Below is international version of the article.
Available article translations:

Preparing containers for migration

  • Parallels Plesk 11.0 for Linux
  • Parallels Plesk 11.5 for Linux
  • Parallels Operations Automation 5.4
  • Parallels Cloud Server 6.0
  • Parallels Virtuozzo Containers for Linux
  • Parallels Server


This article describes steps that will help prevent migration issues. Most migration issues can be prevented by keeping OS templates up-to-date and having valid repositories for all applications and OS EZ templates.


A container does not start after migration. A similar error is observed:

    ~# vzctl start 102
    Starting the Container ...
    Container is mounted
    Setting permissions 20002 dev 0x7d00
    Set up ioprio: 4
    Adding offline management to Container(1): 4643 8443 
    Adding IP addresses:
    Error: Unable to execute bash: No such file or directory
    Container is unmounted
    Failed to start the Container

There are other signs of this issue, such as the inability to show properties of the files in some directory:

    CT-12264-bash-4.2# ls -al /usr/bin/ | grep '\?'
    ls: cannot access /usr/bin/mailq: No such file or directory
    ls: cannot access /usr/bin/hoststat: No such file or directory
    ls: cannot access /usr/bin/praliases: No such file or directory
    ls: cannot access /usr/bin/purgestat: No such file or directory
    ls: cannot access /usr/bin/newaliases: No such file or directory
    ??????????  ? ?    ?              ?            ? hoststat
    ??????????  ? ?    ?              ?            ? mailq
    ??????????  ? ?    ?              ?            ? newaliases
    ??????????  ? ?    ?              ?            ? praliases
    ??????????  ? ?    ?              ?            ? purgestat

Or, the following command for the mounted/started container returns some output (like find: ...: No such file or directory):

    ~# find /vz/root/$CTID -xdev -ls >/dev/null

(Replace "$CTID" with the actual container's ID value.)


Before performing a migration, prepare the source and destination Hardware Nodes, as well as the container that is to be migrated:

  1. Set SCAN_PRIVATE to "yes" to assure that the vzpackages file will list all packages (and their versions) installed in the container by Virtuozzo package management tools based on existing links from the container's private area. Edit /etc/vztt/vztt.conf on both Nodes:

    ~# grep SCAN_PRIVATE /etc/vztt/vztt.conf 
    ~# sed -i 's/#SCAN_PRIVATE/SCAN_PRIVATE/' /etc/vztt/vztt.conf 
    ~# grep SCAN_PRIVATE /etc/vztt/vztt.conf 

    NOTE: This option increases the time, required for migration. It is advised to comment it again before the migration attempt.

  2. Sync packages for the container that is to be migrated:

    ~# vzpkg sync_vzpackages $CTID

    (Replace "$CTID" with the actual container ID value.)

  3. It is also useful to do vzpkg repair for the migrated container if the migration failed before this step. Usually, this command is performed automatically during migration:

    ~# vzpkg repair /vz/private/$CT_ID /etc/sysconfig/vz-scripts/$CTID.conf

    Step 3 may return this error:

        Error: The next package(s) are not available

    If this happens, it means that the listed packages are missing in the template area and that these packages are not available on the configured repositories -- for example, because these packages are from an outdated OS release.

    For example, let's assume that our container is based on the centos-5-x86_64 template:

        ~# vzpkg list 113
        centos-5-x86_64      2012-04-16 15:13:10

    The error is as follows:

        Error: The next package(s) are not available:
        samba-swat.x86_64                        0:3.0.33-3.29.el5_5
        samba-common.x86_64                      0:3.0.33-3.29.el5_5
        glibc-common.x86_64                      2.5-49.el5_5.4
        openldap.x86_64                          2.3.43-12.el5_5.2
        krb5-libs.i386                           1.6.1-36.el5_5.5
        krb5-libs.x86_64                         1.6.1-36.el5_5.5
        nss.x86_64                               3.12.6-2.el5.centos
        glibc.i686                               2.5-49.el5_5.4
        nscd.x86_64                              2.5-49.el5_5.4
        samba.x86_64                             0:3.0.33-3.29.el5_5
        dhclient.x86_64                          12:3.0.5-23.el5_5.1
        device-mapper-multipath.x86_64           0.4.7-34.el5_5.4

    All missing packages above are from the Centos 5.5 release (as seen from the el5_5 part in the package version).

    Add Centos 5.5 repositories (other repositories for CentOS can be added in the same way, replacing "5.5" with the actual release ID):

        ~# echo >> /vz/template/centos/5/x86_64/config/os/default/repositories
        ~# echo >> /vz/template/centos/5/x86_64/config/os/default/repositories

    After that, vzpkg repair should be able to locate the needed packages.

    Some packages do not contain the release ID. For such packages, it is necessary to check all available repositories manually. Examples of such packages are httpd and mod_ssl.

NOTE: The instructions above work for Parallels Cloud Server, Parallels Server Bare Metal 5.0, and Parallels Virtuozzo Containers for Linux 4.6, 4.7 with containers based on EZ OS templates. For previous versions, they work only for PSBM 4.0 (latest release) and PVCfL 4.0 starting from 4.0.0-520. The command vzpkg repair can be used only if it is possible to create new containers based on the given OS template.

Search words:


Failed to start the Container

Unable to execute bash

/usr/sbin/vzctl exited with code 17

app template mismatch

error migrate container.

vzctl exited with code 19

Links broken after migration

Error: Unable to execute bash: No such file or directory

'One or more rpm failed.'

vzarestore "info is not available"

pmigrate template

migration of vps failed

Error: Cannot find a valid baseurl for repo: base

mkdir: cannot create directory `/etc/nginx/conf.d': No such file or directory

vzpkg sync_vzpackages

migrate container

virtuozzo migration

Failed to update Panel. You can send the update log to Parallels support to try fixing the issue.

Failed to convert Container to the ploop layout


: Can not migrate: exec vzmsrc failed : vziterind: module rst is not loaded can't connect to destination node Can't check CPT image version, seems you need to load CPT modules or check versions of packages o




Migration crashes

error: unpacking of archive failed on file /etc/pki/CA: cpio: mkdir

Invalid internal backup information

5853:0001 00:03.0 SCSI storage controller: XenSource, Inc. Xen Platform Device (rev 01)

ERROR: Zend_Controller_Exception

Update EZ templates on VPS

corrupted files after virtuozzo container migration

Cannot migrate containers to new host node

symlinks standard template migration

plesk 500

2897d76d56d2010f4e3a28f864d69223 eb0ea3b827d18de2329b6477e24c1d59 909d99074e442b52ce54cc7b31cf065d ca05eaf5b843fbd53589c90d7228a6df bf1c3a170005eae151f49ba2720abde9 3d9560cc94370f9e1bd9256d230e5ee8 9f8baf78266b4e54525d1c6bf06305a5 56797cefb1efc9130f7c48a7d1db0f0c c81e59b61af9dca603ba03b14aabe968 64cafed7cc15bceb3b240d8c2f92dce3 caea8340e2d186a540518d08602aa065 6466998e13fbb5542838cb31b30870ec 824237ce663843af86f93897fbd8e2f8 1bb40a2897c5fbbe5c9bd20451105ddc 32767b020da91159b5a6d6a3ddea0d2b c65eaff5333f2b87eda32041b8ac987f

Was this article helpful?
Tell us how we may improve it.
Yes No
Desktop Virtualization
- Parallels Desktop 9 for Mac
- Parallels Transporter
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0 Beta
- Parallels Virtuozzo Containers
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Value-added Services for Hosters
- Parallels Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification