Search

Language:  
Search for:

Available article translations:

Prepare containers for migration

Article ID: 113129 
Created On: Jan 11, 2012
Last Review: Jul 12, 2012
Views:
Was this article helpful?
No Yes
APPLIES TO:
  • Parallels Virtuozzo Containers for Linux

Information

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.

Symptoms

Container does not start after migration. The similar error is observed:
[root@mypvc ~]# 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: 10.20.30.40
Error: Unable to execute bash: No such file or directory
Container is unmounted
Failed to start the Container

Resolution

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 include all packages installed in the container. Edit /etc/vztt/vztt.conf on both Nodes:
[root@pvclin47 ~]# grep SCAN_PRIVATE /etc/vztt/vztt.conf
SCAN_PRIVATE="yes"
[root@pvclin47 ~]#


2. Sync packages for the container that is to be migrated:
~# vzpkg sync_vzpackages $CTID

Replace $CTID with the actual container ID value.

3. Also it is useful to do "vzpkg repair" for already migrated container if 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

NOTE: This works only for PSBM and PVCfL 4.x (4.0.0-520 and later) with containers based on EZ OS templates. Run this command only if it is possible to create new containers based on the OS template.



64d8d09669cff87d685a09b84f40c490 2897d76d56d2010f4e3a28f864d69223 eb0ea3b827d18de2329b6477e24c1d59 909d99074e442b52ce54cc7b31cf065d

Was this article helpful?
No Yes
 
 
 
 
 
 
For Home
For Hosters
For SaaS
For IaaS
 
Desktop Virtualization
- Parallels Desktop 8 for Mac
- Parallels Transporter
- Parallels Mobile
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Virtuozzo Containers
Automation
- 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
- Parallels Domain/SSL Reseller Program
- Value-added Services for Hosters
- Parallels Partner Storefront