|
|
|
|
|
|
|
|
|
|
Re: OpenVZ and Debian [message #861 is a reply to message #860] |
Mon, 16 January 2006 22:19 |
adebisi
Messages: 18 Registered: January 2006 Location: Italy
|
Junior Member |
|
|
So
if i try to include those functions in a file and then include that file in vz init script without comment anything it looklike works fine but..
After deboostrapped and done some configuration like in kir debian template tutorial i receive the following error:
Quote: |
vzctl start 777
Starting VPS ...
VPS is mounted
Adding IP address(es): 1.1.1.7
arpsend: unknown iface eth : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 1.1.1.7 eth FAILED
RTNETLINK answers: Network is down
vps-net_add ERROR: Unable to add route /sbin/ip route add 1.1.1.7 dev venet0 src 1.1.1.11
VPS start failed
Stopping VPS ...
VPS was stopped
vzquota : (error) Quota off syscall for id 777: Device or resource busy
vzquota setlimit -f failed [3]
VPS is unmounted
|
Ethernet module or anyway ethernet config has some problem and quota looklike have too.
Checking and checking...
Adding IP address(es): 1.1.1.6
Running: /usr/lib/vzctl/scripts/vps-net_add
arpsend: unknown iface eth : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 1.1.1.6 eth FAILED
RTNETLINK answers: Network is down
vps-net_add ERROR: Unable to add route /sbin/ip route add 1.1.1.6 dev venet0 src 1.1.1.11
iface eth ? not eth0 ? help needed :d
[Updated on: Mon, 16 January 2006 22:37] Report message to a moderator
|
|
|
|
|
|
|
Re: OpenVZ and Debian [message #870 is a reply to message #866] |
Tue, 17 January 2006 13:44 |
adebisi
Messages: 18 Registered: January 2006 Location: Italy
|
Junior Member |
|
|
Quote: | vps:~# vzctl start 777
Starting VPS ...
Running: /usr/sbin/vzquota show 777
Running: /usr/sbin/vzquota on 777 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0
Mounting root: /vz/root/777 /vz/private/777
VPS is mounted
Set iptables mask 6079
Running: /usr/sbin/vzquota stat 777 -f
Running: vzquota setlimit 777 -b 1048576 -B 1153434 -i 200000 -I 220000 -e 0 -n 0
Adding IP address(es): 1.1.1.7
Running: /usr/lib/vzctl/scripts/vps-net_add
arpsend: unknown iface eth : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 1.1.1.7 eth FAILED
arpsend: unknown iface eth : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 1.1.1.7 -e 1.1.1.7 eth FAILED
Running VPS script: /etc/sysconfig/vz-scripts/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
VPS start in progress...
vps:~#
|
Vps starts but when i login i am not able to ping or connect to any host.
Quote: |
root@vps:/# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:280 (280.0 b) TX bytes:280 (280.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:882 (882.0 b)
venet0:0 Link encap:UNSPEC HWaddr 00-00-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00
inet addr:1.1.1.7 P-t-P:1.1.1.7 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
root@vps:/# route -N
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
191.255.255.1 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
0.0.0.0 191.255.255.1 0.0.0.0 UG 0 0 0 venet0
|
[Updated on: Tue, 17 January 2006 13:45] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: OpenVZ and Debian [message #1422 is a reply to message #1416] |
Wed, 08 February 2006 08:41 |
phlar
Messages: 2 Registered: February 2006
|
Junior Member |
|
|
kir wrote on Wed, 08 February 2006 08:18 | phlar,
The problem is if I execute the command you give on my Fedora Core 4 box, it will give me 'eth0:' i.e. with comma which should be stripped off. Looks like debian awk and fedora core awk do not agree on the syntax of substr.
|
Yes, i suspect that the debian-awk starts not at the index zero. The first position is 1 not 0. And it is possible to start at positions lower than zero.
openvz:~# echo "test"|awk '{print substr($1,1,4)}'
test
openvz:~# echo "test"|awk '{print substr($1,0,4)}'
tes
openvz:~# echo "test"|awk '{print substr($1,-1,4)}'
te
|
|
|