create vboxnet0 on startup

Discussions related to using VirtualBox on Linux hosts.
Post Reply
kniffte
Posts: 2
Joined: 10. Sep 2009, 12:08
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP

create vboxnet0 on startup

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: create vboxnet0 on startup

Post 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
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply