![]() |
Slackware network scripts inside OpenVZ container
I'm trying to run Slackware inside OpenVZ container with bridged network. The network itself works, but only if I set it manually, which means I have to start VM and then enable networking inside VM every (re)start. Apparently Slackware rc.inet1 script(s) arent't executed, which is strange because Debian init scripts works without a glitch.
Anyone encountered this issue? |
Simplest things first. Did you check that /etc/rc.d/rc.inet1 be executable?
|
Yes, rc.inet1 is executable and it is actually executed during boot.
After hour or so fiddling with init scripts I figured out that problem is somewhere else. There are two network interfaces (besides loopback) - venet0 (NAT) and eth0 (bind to bridge) - and rc.inet1 recognize first network interface (venet0) as eth0, therefore assign IP address to this interface. I'm curious why because of the comment in /etc/rc.d/rc.inet1.conf Code:
# If IFNAME[interface] is unset or empty, it is assumed you're configuring eth<interface>.Code:
. /etc/rc.d/rc.inet1.confCode:
# /etc/rc.d/rc.inet1.conf |
| All times are GMT -5. The time now is 09:26 AM. |