Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Migration from Linux-VServer to OpenVZ

537 bytes added, 09:26, 4 August 2010
Remarks on Lenny as host
=== Updating different configurations ===
Move Get the existing guest OSs to the right place:
# cd /vz
# mkdir private/345
# mv /vservers/v345 /vz/private/345
In Debian Lenny the path is /var/lib/vz/private/345 instead.
In any case it is a good idea to have the guest file system in a dedicated partition or lvm container (shown in the example below) and just mount it there
instead of moving:
# mkdir /var/lib/vz/private/345
# mount /dev/mapper/vg01-lvol5 /var/lib/vz/private/345
Now it is time for creating configuration files for OpenVZ container. Use the basic sample
# cd /etc/sysconfig/vz-scripts
# cp ve-vps.basic.conf-sample 345.conf
In Debian Lenny the configuration is located in /etc/vz/conf/ , in this case type:
# cd /etc/vz/conf
# cp ve-vps.basic.conf-sample 345.conf
Now, let's set some parameters for the new container.
First, we need to tell which distro the container is running:
# echo "OSTEMPLATE=\"fedora-core-4\"" >> 345.conf
# echo "OSTEMPLATE=\"debian\"" >> 345.conf (for Debian Lenny)
Then we set a few more parameters:
Anonymous user