Virtuozzo to OpenVZ Migration


To migrate from Virtuozzo VPS to OpenVZ you must “rsync†root area to private area to avoid incompatibilty of OpenVZ and Virtuozzo Cache Templates. Now, follow this example:

Operations we must execute on Virtuozzo System:

Create your VPS with id 98500 using debian etch template (for example)


# vzctl create 98500 –pkgset debian-etch
Creating VPS private area (debian-etch)
VPS is mounted
Postcreate action done
VPS is unmounted
VPS private area was created
Delete port redirection
Adding port redirection to VPS(1): 4643 8443

Start your VPS

# vzctl start 98500
Starting VPS …
VPS is mounted
Setup slm memory limit
Adding port redirection to VPS(1): 4643 8443
VPS start in progress…

Now on Virtuozzo we have to stop and mount VPS

# vzctl stop 98500
Stopping VPS …
VPS was stopped
VPS is unmounted

# vzctl mount 98500
VPS is mounted

Well… Now we have to make a migration of files with Rsync to OpenVZ Node IP

# rsync -a -e ssh /vz/root/98500 root@OpenVZ_node_IP:/vz/private/
# rsync -a -e ssh /etc/sysconfig/vz-scripts/98500.conf root@OpenVZ_node_IP:/etc/sysconfig/vz-scripts/

On OpenVZ System we must:

Starting and entering on your OpenVZ node to see if migration works correctly

# vzctl start 98700
Starting VPS …
Initializing quota …
VPS is mounted
Setting CPU units: 1000
VPS start in progress…

# vzctl enter 98700
entered into VPS 98700


Comments

Please login to comment