OpenVZ Forum


Home » General » Support » vz initialization.
vz initialization. [message #1287] Sun, 05 February 2006 22:22 Go to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
Don't understand why, but at normal startup the function setup_net() in vz doesn't setup dev venet0 (still at trustix distr. Smile )

#service vz start
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: net.ipv4.conf.venet0.send_redirects = 0
[ OK ]

#ifconfig | grep venet0
#

But, if I change this:
        __echo "Bringing up interface $VZDEV: " \
        ip link set $VZDEV up
        if [ $? -eq 0 ] ; then
                print_success
        else
                print_failure
        fi

to that:
        __echo "Bringing up interface $VZDEV: " \
        echo ''
        ip link set $VZDEV up
        if [ $? -eq 0 ] ; then
                print_success
        else
                print_failure
        fi

or just:
        __echo "Bringing up interface $VZDEV: " 
        ip link set $VZDEV up
        if [ $? -eq 0 ] ; then
                print_success
        else
                print_failure
        fi

Then all ok.

#ifconfig | grep venet0
venet0 Link encap:UNSPEC HWaddr 00-00-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00



Re: vz initialization. [message #1288 is a reply to message #1287] Mon, 06 February 2006 05:38 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

This is clearly a mistake, slash shouldn't be there.

I have filed bug #99, you can add yourself to Cc for this bug to track its progress.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vz initialization. [message #1316 is a reply to message #1287] Mon, 06 February 2006 19:45 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
Thanks. I think there is no need to tracking it. I just wished to know is this a mistake, or something special (I have problem at startup in past, but have no time to find out) Smile.
Re: vz initialization. [message #1317 is a reply to message #1316] Mon, 06 February 2006 19:53 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

The problem went unnoticed because in most of the modern distros such stuff is handled by hotplug infrastructure, so as soon as vznetdev module is loaded hotplug is noticing that and runs standard startup script for this interface.

Looks like the above is not true in your case that is why you catched it.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vz initialization. [message #1319 is a reply to message #1287] Mon, 06 February 2006 20:22 Go to previous messageGo to next message
Valmont is currently offline  Valmont
Messages: 225
Registered: September 2005
Senior Member
It's no so bad, if some issues can be found on non standart configurations Smile.

Another question. Then I try to track problem, I found this:
(/etc/init.d/vz)

MODULES_OTHER="vzcompat"
NET_MODULES="vznetdev vznet"

I have no such modules, as vznet or vzcompat, and there is no such stuff at kernel sources.

What it is for?


//I hope, my english not very heavy to read... Smile If yes, I can post it in other forum (International).
Re: vz initialization. [message #1321 is a reply to message #1319] Mon, 06 February 2006 20:46 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

It's not a problem, those modules are used in other kernels, they are not needed in OpenVZ kernel.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: DHCP Server in VPS?
Next Topic: second level quota
Goto Forum:
  


Current Time: Mon Jul 22 12:22:59 GMT 2024

Total time taken to generate the page: 0.02428 seconds