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

  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


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


a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f

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