Problem with VE Debian Woody with vzctl version 3.0.23-1dso1~etch0 [message #33963] |
Fri, 21 November 2008 16:23 |
ulver
Messages: 12 Registered: July 2008
|
Junior Member |
|
|
Hello everyone !
I updated (security updates and upgrades) my Debian Etch (Hardware Node) and I noticed that there was a new version of vzctl : 3.0.23-1dso1~etch0 (i had 3.0.22-1dso1 before the update).
With that version, the network didn't work on my old VE Debian Woody (i know this is very old ).
The problem seems to be in the new format of the /etc/network/interfaces inside the VPS :
auto venet0
iface venet0 inet manual
up ifconfig venet0 0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
The Debian Woody doesn't support the "manual" method.
Before the update, venet 0 was configured with "static" method and with the 127.0.0.1 ip address, so it worked.
I found only two solutions to solve the problem :
- Edit the /etc/network/interfaces in the VE and replace the manual method with static, and add the IP 127.0.0.1 or something else (in fact, like the old format). It seems that the file is not deleted when the VE reboot, but it isn't a very smart solution.
- Bridge with veth
I just wanted to know if this problem was known ? And if there is a smarter solution to make the Debian woody work with venet ? (I saw that the file debian-3.0.conf in /etc/vz/dists calls the same script debian-add_ip.sh that debian-3.1 and debian-4.0.conf ; maybe we can have and call a specific script for Debian Woody like debian3.0-add_ip.sh ?)
Thank you ! (and sorry for my english which is very bad...)
[Updated on: Fri, 21 November 2008 16:29] Report message to a moderator
|
|
|
|
Re: Problem with VE Debian Woody with vzctl version 3.0.23-1dso1~etch0 [message #33965 is a reply to message #33963] |
Fri, 21 November 2008 17:09 |
ulver
Messages: 12 Registered: July 2008
|
Junior Member |
|
|
Hello,
Here are the different version :
The new version :
xxxxx:~# vzctl --version
vzctl version 3.0.23-1dso1~etch0
The old version :
yyyyyy:~# vzctl --version
vzctl version 3.0.22-1dso1
I use the following sources to use OpenVZ :
yyyyy:~# grep openvz /etc/apt/sources.list
deb http://download.openvz.org/debian-systs etch openvz
I saw the changes in the script "/etc/vz/dists/scripts/debian-add_ip.sh".
The old script, before the update :
auto ${VENET_DEV}
iface ${VENET_DEV} inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
up route add -net ${FAKEGATEWAY} netmask 255.255.255.255
The new one, after the update :
auto ${VENET_DEV}
iface ${VENET_DEV} inet manual
up ifconfig ${VENET_DEV} 0
up route add -net ${FAKEGATEWAY} netmask 255.255.255.255 dev ${VENET_DEV}
up route add default gw ${FAKEGATEWAY}" >> ${CFGFILE}
The difference is the method : static in the old script, and manual in the new one. "Manual" method is not supported in the Debian Woody.
[Updated on: Fri, 21 November 2008 17:10] Report message to a moderator
|
|
|