OpenVZ Forum - RDF feed
type: channel
items: *SOLVED* VPS has no IP after reboot and /etc/rc.d/vz start...
items: Re: VPS has no IP after reboot and /etc/rc.d/vz start...
items: Re: *SOLVED* VPS has no IP after reboot and /etc/rc.d/vz start...

*SOLVED* VPS has no IP after reboot and /etc/rc.d/vz start...
type: item
description: Hi! I've created my own template from a Debin Sarge 3.1 install. Now if I do a /etc/rc.d/vz start after reboot my VPS has no IP. vzctl enter ID and then ifconfig outputs nothing if i do then a vzctl set ID --ipdel all --save vzctl set ID --ipadd IP --save everything works fine. I can also do a /etc/rc.d/vz stop and then a start again... then it works without any problem. Only directly after reboot of the host system it does not work. Any idea? Stefan
creator: disaster
date: 2006-08-21T20:33:43-00:00

Re: VPS has no IP after reboot and /etc/rc.d/vz start...
type: item
description: Am I right, that this happens only on VEs, where ONBOOT="yes"? You can explore the behaviour of /etc/vz/dists/scripts/debian-add_ip.sh. I mean add some `echo`s, etc., to undestand why this happens. This script is executed by vzctl while starting VE and is responsable for adding IP addresses inside VE with debian template. HTH, vass.
creator: Vasily Tarasov
date: 2006-08-22T05:52:35-00:00

Re: VPS has no IP after reboot and /etc/rc.d/vz start...
type: item
description: Hi! Correct - it only happens, when onboot is yes. If i set onboot = no. And do a vzctl start ID after vz start. Everything works fine. So it must be a bug in /etc/rc.d/vz, is it? Stefan
creator: disaster
date: 2006-08-22T07:31:18-00:00

Re: VPS has no IP after reboot and /etc/rc.d/vz start...
type: item
description: Yeap, looks like something is wrong there or near it... I haven't checked it carefully yet. If it's possible for you, please, can you fill a bug in bugzilla with description of situation and link to your post in forum. And vzctl version of course! Thanks!
creator: Vasily Tarasov
date: 2006-08-22T07:37:57-00:00

Re: *SOLVED* VPS has no IP after reboot and /etc/rc.d/vz start...
type: item
description: Ok i solved the problem - while debugging add_ip script for debian. The problem was, that we start /etc/rc.d/vz not via the normal init. We start it through a special script and perhaps some path parameters were not set correctly at this moment. I've now added the script to the normal bootup process => rc.d/rcx.d/S20vz etc... now it works perfectly. So sorry - my fault.
creator: disaster
date: 2006-08-22T07:47:45-00:00