Ubuntu – Unable to get Webmin or Vboxdrv to auto start on boot

bootinit.dUbuntuvirtualbox

Ever since installing Ubuntu 10.04 I've had issues getting things to auto-start.

I have installed webmin and VirtualBox but every time I reboot I have to manually run:

sudo /etc/init.d/webmin start
sudo /etc/init.d/vboxdrv start

I have run:

sudo update-rc.d -f webmin remove

and then

hodge@hodge-fs:~$ sudo update-rc.d webmin defaults
update-rc.d: warning: webmin start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (2 3 5)
 Adding system startup for /etc/init.d/webmin ...
   /etc/rc0.d/K20webmin -> ../init.d/webmin
   /etc/rc1.d/K20webmin -> ../init.d/webmin
   /etc/rc6.d/K20webmin -> ../init.d/webmin
   /etc/rc2.d/S20webmin -> ../init.d/webmin
   /etc/rc3.d/S20webmin -> ../init.d/webmin
   /etc/rc4.d/S20webmin -> ../init.d/webmin
   /etc/rc5.d/S20webmin -> ../init.d/webmin

But it they still refuse to start on boot. Any ideas?

Best Answer

In /etc/init/rc-sysinit.conf change

start on filesystem and net-device-up IFACE=lo

to

start on filesystem and net-device-up IFACE=eth0

This will fix your 'runlevel' from coming up as unknown. I can't explain it, but I've been wrestling with the same issue. I found the workaround here: http://ubuntuforums.org/showpost.php?p=9213567&postcount=7

As a result your init scripts will work again. For me it was affecting virtualbox-ose, mysql, and cups.