*SOLVED* VPS has no IP after reboot and /etc/rc.d/vz start...
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
Re: VPS has no IP after reboot and /etc/rc.d/vz start...
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.
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
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!
Re: *SOLVED* VPS has no IP after reboot and /etc/rc.d/vz start...
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.