You are not logged in.

#1 2011-03-29 03:00:30

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

[SOLVED]Virtualbox drivers not loaded at startup

I followed the wiki and added vboxdrv to my DAEMONS. The only change is that I start it in the background. However, when I start Virtualbox, and then the guest OS within, it gives me an error.

DAEMONS=(syslog-ng @net-profiles @dbus !sshd !netfs @crond @alsa @acpid @ntpd @vboxdrv)

I have to manually

modprobe vboxdrv

in order to start the guest OS. How can I have the vboxdrv started at boot?

also, is there a way to start the guest OS directly, without having to start the Virtualbox console?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2011-03-29 03:07:34

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED]Virtualbox drivers not loaded at startup

I'm not using it anymore, but I think I put it in the MODULES not the DAEMONS? I'm not positive though.

Offline

#3 2011-03-29 03:11:23

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: [SOLVED]Virtualbox drivers not loaded at startup

Yeah, modprobe would seem to indicate putting it in modules, not daemons.


I laugh, yet the joke is on me

Offline

#4 2011-03-29 03:12:28

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Virtualbox drivers not loaded at startup

I must be blind....the wiki says it must be added to MODULES. I don't what I was reading I guess, and the worst part is that it didn't click me that modprobe is for modules not daemons yikes  .Thanks!

Also any way to start the guest OS without starting the console?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-03-29 03:23:30

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED]Virtualbox drivers not loaded at startup

Clowns kinda scare me.

Offline

#6 2011-03-29 03:28:20

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: [SOLVED]Virtualbox drivers not loaded at startup

@ Inxsible: I don't use Virtualbox, so I wouldn't know how to answer that question

@ stlarch: I apologize for the psychological trauma I've caused.


I laugh, yet the joke is on me

Offline

#7 2011-03-29 09:24:20

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

Re: [SOLVED]Virtualbox drivers not loaded at startup

Hi, you can run a VM directly using "VBoxManage" from the command line. Get that working first so you know the command to use to get it running and then add that command to /etc/inittab.

hint from memory (please read the manual to confirm): VBoxManage startVM "name of vm"

The vm will start as it was last closed, so if you want full screen, close it that way. Also look at VBoxSDL but that does not support multiple monitors.

I actually run my VM as another user on another X session from my main desktop.

I can post my /etc/inittab entries if you want. It will be later on though as I am not at my computer at the moment.

Offline

#8 2011-03-29 13:56:19

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Virtualbox drivers not loaded at startup

thanks for the pointers starfry. I will look into those.

if you can, then let me see your inittab.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#9 2011-03-29 21:47:45

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

Re: [SOLVED]Virtualbox drivers not loaded at startup

Inittab:

# Runlevel 5 starts X environments
x1:5:once:/bin/su work -l -c "/usr/bin/startx -- :11 vt11 > /dev/null 2>&1"
x2:5:once:/bin/su windows -l -c "/usr/bin/startx -- :10 vt10 > /dev/null 2>&1"
x3:5:once:/bin/su windows -l -c "/usr/bin/VBoxManage startvm Ama --type vrdp > /dev/null 2>&1"

The first two start new X sessions, user "work" on vt11 and user "windows" on vt10. The third starts an RDP headless VirtualBox VM as user "windows". When the two X sessions start, they execute ~/.xinitrc (each of ~work/.xinitrc and ~windows/.xinitrc):

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx 

VirtualBox

This starts the VirtualBox GUI so I then switch to vt11 or vt10 and select a VM to run. Note each of ~windows/.VirtualBox and ~work/.VirtualBox are completely separate VB configs owned by the separate accounts.

Note that I don't bother with a window manager because I run the VMs full screen anyway, but you can start one if you want within .xinitrc.

You can change "VirtualBox" in .xinitrc to start a specific VM using VBoxManage startvm "MyVMName"

Hope this helps.

Last edited by starfry (2011-03-29 21:49:33)

Offline

#10 2011-03-30 12:12:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]Virtualbox drivers not loaded at startup

Thanks again starfry.

Marking it solved.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB