piavlo wrote on Mon, 25 August 2008 16:41 |
I meant that you put the set -x in /usr/sbin/vznetaddbr
|
Also tried. Same result "/usr/sbin/vznetcfg: 20: source: not found"
[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...
[Host]# cat /usr/sbin/vznetaddbr
#!/bin/bash
# /usr/sbin/vznetaddbr
# a script to add virtual network interfaces (veth's) in a CT to a bridge on CT0
set -x
CONFIGFILE=/etc/vz/conf/$VEID.conf
. $CONFIGFILE
VZHOSTIF=`echo $NETIF |sed 's/^.*host_ifname=\(.*\),.*$/\1/g'`
....
Even placing it on top of the file
set -x
#!/bin/bash
# /usr/sbin/vznetaddbr
# a script to add virtual network interfaces (veth's) in a CT to a bridge on CT0
CONFIGFILE=/etc/vz/conf/$VEID.conf
. $CONFIGFILE
VZHOSTIF=`echo $NETIF |sed 's/^.*host_ifname=\(.*\),.*$/\1/g'`
....
There was no change on the output.
satimis