OpenVz to Proxmox LXC
Mount the OpenVz container on the OpenVZ host
1
2
vzctl mount 101
Login to the Proxmox host and create a new LXC container with the same OS as the OpenVz container Login to the LXC container and run the following rsync command
1
2
rsync -vaz --delete root@<OpenVZ Host>:/vz/root/101/ / --exclude '/proc/*' --exclude '/dev/*' --exclude '/sys/*' --exclude '/tmp/*' --exclude .git/
Login to the Proxmox host and run the following command to set IP address
1
2
pct set 110 -net0 name=eth0,bridge=vmbr0,ip=192.168.90.35/24,gw=192.168.90.1
This post is licensed under CC BY 4.0 by the author.