Don't understand why, but at normal startup the function setup_net() in vz doesn't setup dev venet0 (still at trustix distr.
)
#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