OpenVZ Forum


Home » General » Support » VE networking question
Re: VE networking question [message #32690 is a reply to message #32689] Sun, 24 August 2008 14:23 Go to previous messageGo to previous message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
piavlo wrote on Sun, 24 August 2008 21:00

I think that you should change $CTID to $VEID
in all your custom scripts. Probably the naming scheme has changed
with vzctl versions newer than 3.0.22 from VE to CT.

This is what i've setup

#!/bin/bash

CONFIGFILE=/etc/vz/conf/$VEID.conf
. $CONFIGFILE
VZHOSTIF=`echo $NETIF |sed 's/^.*host_ifname=\(.*\),.*$/\1/g'`

if [ ! -n "$VZHOSTIF" ]; then
        echo "According to $CONFIGFILE VE$VEID has no veth interface configured."
        exit 1
fi
if [ ! -n "$BRIDGEDEV" ]; then
        echo "According to $CONFIGFILE VE$VEID veth interface is not enslaved to any bridge."
        exit 1
fi

ifconfig veth${VEID}.0 0
brctl addif ${BRIDGEDEV} veth${VEID}.0
exit $?


Hi piavlo,


# vzctl --version
vzctl version 3.0.22

Old version


Tried your script also w/o solution.


[Host]# vzctl start 101
Starting VE ...
VE is mounted
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: satimis-desktop32
File resolv.conf was modified
Configure veth devices: veth101.0 
/usr/sbin/vznetcfg: 20: source: not found
VE start in progress...



Still the same mistake "/usr/sbin/vznetcfg: 20: source: not found"


B.R.
satimis
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What control panel for testing server.
Next Topic: which ve's start on machine boot
Goto Forum:
  


Current Time: Sat Jul 05 00:14:07 GMT 2025

Total time taken to generate the page: 0.01673 seconds