VirtualBox autoload

Hello folks,
Please help me to resolve following task: I install VirtualBox on
OpenSuse11. It’s work ok. But after each restart/shutdown computer I
need enter:
1)/etc/init.d/vboxdrv setup

  • otherwise it couldn’t start

2)# Brctl addbr br0

Ifconfig eth0 0.0.0.0 PROMISC

Brctl addif br0 eth0

Dhclient br0

VBoxAddIF vbox0 username br0

  • for network support.

Is that possible to put it somethere for automatic reload each time?
I’m new in Linux so i need detail answer.:\


ordos_lider

ordos_lider’s Profile: http://forums.opensuse.org/member.php?userid=16053
View this thread: http://forums.opensuse.org/showthread.php?t=400827

You actually don’t need vboxdrv setup, it’s vboxdrv start you need. You
can make this happen by enabling the vboxdrv service to start at boot
from YaST, or by

Code:

chkconfig --set vboxdrv on

from the CLI. Just like any other service.

The bridge setup you have do to by editing in /etc/sysconfig/network.
Most likely by creating an ifcfg-br0. Sorry I can’t help you there as I
don’t run a bridged VM on my machine. I believe there is a worked
example for SUSE in the PDF documentation for VirtualBox.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=400827

ken_yap;1902399 Wrote:
> You actually don’t need vboxdrv setup, it’s vboxdrv start you need. You
> can make this happen by enabling the vboxdrv service to start at boot
> from YaST, or by
>
> >
Code:

> > chkconfig --set vboxdrv on

> >
>
> from the CLI. Just like any other service.
>
> The bridge setup you have do to by editing in /etc/sysconfig/network.
> Most likely by creating an ifcfg-br0. Sorry I can’t help you there as
> I don’t run a bridged VM on my machine. I believe there is a worked
> example for SUSE in the PDF documentation for VirtualBox.

Thanks for so simple solution for 1! You are the great man! :slight_smile:
About 2- I’m already try that scince posting but only particular
succsessful. I made config file for a bridge and it recieved ip address
from DHCP server. But Guest OS coudn’t recieve. Seemes that ‘vbox’
interface didn’t get ip. :frowning:


ordos_lider

ordos_lider’s Profile: http://forums.opensuse.org/member.php?userid=16053
View this thread: http://forums.opensuse.org/showthread.php?t=400827

The last problem that I need to resolve is that virtual interface which
I create by VBoxAddIF - work only before reset, after reset it’s not
working.
How can I fix it?
I can’t understand why it’s gone because it must be permanent? :-0


ordos_lider

ordos_lider’s Profile: http://forums.opensuse.org/member.php?userid=16053
View this thread: http://forums.opensuse.org/showthread.php?t=400827