Search for:

Available article translations:

How to migrate a physical box to a container using custom SSH ports

Article ID: 115608, created on Feb 27, 2013, last review on May 7, 2014

  • Parallels Cloud Server
  • Parallels Virtuozzo Containers for Linux
  • Parallels Server


In order to migrate a physical box to a Linux container using custom SSHD ports follow these instructions (the example is for sshd listening on the port 2200):

  1. Log on to the destination hardware node via SSH.

  2. Copy vzhwcalc binary to the source physical box:

    [root@hwnode ~]# scp -P2200 /usr/local/sbin/vzhwcalc root@myphysicalbox.tld:/root
  3. Log on to the physical box via SSH and generate the configuration file for the destination container:

    [root@myphysicalbox ~]# ./vzhwcalc > myconfig.conf

    NOTE: The output suggests folders for excluding:

    [root@myphysicalbox ~]# ./vzhwcalc > myconfig.conf
    OS distribution detection script (/tmp//usr/local/share/vzp2v/ was not found. The DISTRIBUTION parameter of the CT config must be set manually.
  4. Copy the resulting config to the destination hardware node:

    [root@myphysicalbox ~]# scp myconfig.conf root@hwnode.mydomain.tld:/root
  5. Get back to the destination hardware node shell and launch the migration excluding the directories suggested at step 3:

    [root@hwnode ~]# vzp2v root@myphysicalbox.tld:2200 -c /root/myconfig.conf --exclude=/dev/pts/* --exclude=/dev/shm/* --exclude=/proc/* --exclude=/sys/*

    NOTE: The custom SSH port is mentioned after ":"

Search words:

ssh port

custom ssh port

p2c migration

migration using custom port


ca05eaf5b843fbd53589c90d7228a6df 2897d76d56d2010f4e3a28f864d69223 bf1c3a170005eae151f49ba2720abde9 eb0ea3b827d18de2329b6477e24c1d59 909d99074e442b52ce54cc7b31cf065d

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Parallels Cloud Server
- Parallels Containers for Windows 6.0
- 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