linux vserver to openvz migration [message #39471] |
Thu, 29 April 2010 09:15 |
mookie
Messages: 1 Registered: April 2010
|
Junior Member |
|
|
Hello,
I try to migrate a linux vserver to openvz.
I use mainly this documentation http://wiki.openvz.org/Migration_from_Linux-VServer_to_OpenV Z
If I want to start the vz:
vztest:/etc/vz/dists# vzctl --verbose start 1001
Starting VE ...
VE is mounted
Adding IP address(es): ***.***.***.***
Running VE script: /etc/vz/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: foo.example.com
Running VE script: /etc/vz/dists/scripts/debian-set_hostname.sh
Unable to start init, probably incorrect template
VE start failed
Stopping VE ...
VE was stopped
VE is unmounted
==> /var/log/vzctl.log <==
2010-04-29T10:52:59+0200 vzctl : VE 1001 : Starting VE ...
2010-04-29T10:52:59+0200 vzctl : VE 1001 : VE is mounted
2010-04-29T10:52:59+0200 vzctl : VE 1001 : Adding IP address(es): ***.***.***.***
2010-04-29T10:53:00+0200 vzctl : VE 1001 : Setting CPU units: 1000
2010-04-29T10:53:00+0200 vzctl : VE 1001 : Configure meminfo: 65536
2010-04-29T10:53:00+0200 vzctl : VE 1001 : Set hostname: foo.example.com
2010-04-29T10:53:00+0200 vzctl : VE 1001 : Unable to start init, probably incorrect template
2010-04-29T10:53:00+0200 vzctl : VE 1001 : VE start failed
2010-04-29T10:53:00+0200 vzctl : VE 1001 : Stopping VE ...
2010-04-29T10:53:01+0200 vzctl : VE 1001 : VE was stopped
2010-04-29T10:53:01+0200 vzctl : VE 1001 : VE is unmounted
==> /var/log/syslog <==
Apr 29 10:52:59 vztest kernel: [55335.382982] CT: 1001: started
Apr 29 10:53:01 vztest kernel: [55336.776344] CT: 1001: stopped
Is there any way to see more detailed error messages?
Or have anyone an idea why it can't start?
[Updated on: Thu, 29 April 2010 09:16] Report message to a moderator
|
|
|
|
Re: linux vserver to openvz migration [message #40498 is a reply to message #39476] |
Wed, 25 August 2010 13:22 |
ertan
Messages: 2 Registered: August 2010
|
Junior Member |
|
|
Hi,
i have "migrated" a Debian-Linux-Vserver under
2.6.18-4-vserver-amd64
vhost1:/etc/vservers# vserver-info
Versions:
Kernel: 2.6.18-4-vserver-amd64
VS-API: 0x00020002
util-vserver: 0.30.212; Dec 9 2006, 20:37:54
Features:
CC: gcc, gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)
CXX: g++, g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)
CPPFLAGS: ''
CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time'
build/host: x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
Use dietlibc: yes
Build C++ programs: yes
Build C99 programs: yes
Available APIs: compat,v11,fscompat,v13,net,v21,oldproc,olduts
ext2fs Source: e2fsprogs
syscall(2) invocation: alternative
vserver(2) syscall#: 236/glibc
Paths:
prefix: /usr
sysconf-Directory: /etc
cfg-Directory: /etc/vservers
initrd-Directory: $(sysconfdir)/init.d
pkgstate-Directory: /var/run/vservers
vserver-Rootdir: /var/lib[QUOTE][/QUOTE]/vservers
The only think what i do is to copy the /var/lib/vservers/VSERVERNAME Directory to the openvz Server under /vz/private/103 with rsync.
Then i set the hostname and ip:
vzctl set 103 --onboot yes --save
vzctl set 103 --ipadd 192.168.0.145 --save
vzctl set 103 --hostname test103.my.org --save
echo "OSTEMPLATE=\"debian\"" >> 103.conf
The openvz has the Kernel:
2.6.18-194.8.1.el5.028stab070.2
and the OS is CentOS5.5
The Container 103 (Debian) Starts
Then i have done
update-rc.d networking defaults
because the network config is not correct.
The network doesnt works. The ip from the config file is not visible and there are no mac adresses.
Quote: |
ifconfig -a
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
BROADCAST POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
Where i can edit the settings for the network. Normaly the config file for the Linux Vserver is in /etc/vservers/VSERVERNAME/interfaces/0
there are three Files with the information dev ip prefix.
This files i have not copyed to the /vz/private/ directory.
A manual setting with ifconfig venet0 192.168.0.145 works but the mac address is still not present and i can not add a route and gateway.
|
|
|
|