Search for:

Available article translations:

How to migrate OpenVZ container to PSBM or PCS

Article ID: 116255, created on Jun 11, 2013, last review on May 8, 2014

  • Virtuozzo 6.0


In order to migrate an OpenVZ container to PSBM or PCS, you need to take the following actions:

  1. Migrate the container folder to the destination:

    # rsync -avz /vz/private/111 root@ --numeric-ids
  2. Copy the file /etc/vz/conf/111.conf from the source node to the same location on the destination.

  3. Move the container data folder to the correct place:

    # mv /vz/tmp/111 /vz/private/
  4. Convert the configuration parameters inside /etc/vz/conf/111.conf:

    PHYSPAGES="0:262144" ->  PHYSPAGES="262144"
    SWAPPAGES="0:2621440" -> SWAPPAGES="2621440"
    DISKSPACE="2G:2.2G" -> DISKSPACE="2000000"
  5. Run ovzconvert without options

    # ovzconvert

    it will convert your container automatically.

  6. Start the container.

2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef c62e8726973f80975db0531f1ed5c6a2

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification