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.