Page 1 of 1

create vboxnet0 on startup

Posted: 10. Sep 2009, 12:13
by kniffte
Hello,

first off: I'm running VirtualBox 3.0.6-64bit on a Ubuntu Jaunty.

To access my files, I've set up samba to export them to the internal device vboxnet0 only. Now, the device gets created when starting the vm. But I don't want to start the vm everytime, BUT I want samba to be launched on every startup.

Right now, I start the vm, followed by a samba restart (as it couldnt find the vboxnet0 interface when being launched).

Is there a way to up the vboxnet0 interface on startup w/o starting the whole VM?

Thanks a lot.

kniffte

Re: create vboxnet0 on startup

Posted: 10. Sep 2009, 12:28
by Sasquatch
The interface is created, just not brought up for configuration. If you put some configuration in /etc/network/interfaces for the interface, or the following commands in /etc/rc.local, it will be fine without having to run the VM.

Code: Select all

ifconfig vboxnet0 up
/etc/init.d/samba restart
exit 0