PDA

View Full Version : [SOLVED] Two Errors Upon Starting Up A Virtual Machine


morbid_bean
September 6th, 2009, 11:29 AM
I decided to try out loading windows xp in Virtual Machine and have everything setup and when i insert the xp cd and click to start it up i get these two errors.

http://img33.imageshack.us/img33/1719/screenshotdd.th.png (http://img33.imageshack.us/i/screenshotdd.png/)

Perryg
September 6th, 2009, 11:46 AM
Did you add your login name to the vboxusers group?

morbid_bean
September 6th, 2009, 12:29 PM
no...i dont think so...how is this done?

Perryg
September 6th, 2009, 12:36 PM
usermod -aG vboxusers <your username>
Replace <your username> with the name you use to login with.

morbid_bean
September 6th, 2009, 01:36 PM
usermod -aG vboxusers <jimbo>
bash: syntax error near unexpected token `newline':confused:

and i also decided to run it by terminal and i get this, if it helps...

virtualbox ose
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-source package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.

Whiffle
September 6th, 2009, 01:38 PM
run

sudo /etc/init.d/vboxdrv setup

morbid_bean
September 6th, 2009, 02:01 PM
run

sudo /etc/init.d/vboxdrv setup

..... sudo /etc/init.d/vboxdrv setup
[sudo] password for jimbo:
sudo: /etc/init.d/vboxdrv: command not found
#-o

Perryg
September 6th, 2009, 02:25 PM
usermod -aG vboxusers jimbo

You are not supposed to put the <> in the actual code. Try the line above.
Do it in a terminal as sudo

morbid_bean
September 6th, 2009, 02:35 PM
lol sometimes i can be dumb when it comes to stuff like this....anyhow...errors still coming back..

Whiffle
September 6th, 2009, 02:38 PM
..... sudo /etc/init.d/vboxdrv setup
[sudo] password for jimbo:
sudo: /etc/init.d/vboxdrv: command not found
#-o

*scratches head*

Are you sure virtualbox got installed correctly? That should be there and I don't see anything wrong with the command. Hmm.

Perryg
September 6th, 2009, 02:43 PM
If you have installed VBox and these commands do not work then there are only (2) things that might be the cause. The first one is not rebooting the host PC after the install, or it in fact did not install correctly. Did you see any message when you tried to install saying that there were needed packages missing? Like headers?
You need to make sure that you have the linux-headers-generic, and build-essentials installed so you can build external modules.

morbid_bean
September 6th, 2009, 03:00 PM
If you have installed VBox and these commands do not work then there are only (2) things that might be the cause. The first one is not rebooting the host PC after the install, or it in fact did not install correctly. Did you see any message when you tried to install saying that there were needed packages missing? Like headers?
You need to make sure that you have the linux-headers-generic, and build-essentials installed so you can build external modules.

Only thing relating to it saying it needs a package an headers is when I execute it from terminal.

The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-source package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.

and according to synaptic, those are currently installed. is there a way to manually create "/dev/vboxdrv" ?

Perryg
September 6th, 2009, 03:13 PM
Nope you need to install it.

Type
sudo apt-get install linux-headers-$(uname -r)
Then
sudo apt-get install build-essentials
The install VBox again.

morbid_bean
September 6th, 2009, 03:20 PM
Nope you need to install it.

Type
sudo apt-get install linux-headers-$(uname -r)
Then
sudo apt-get install build-essentials
The install VBox again.

jimbo@monster:~$ sudo apt-get install linux-headers-$(jimbo -r)
bash: jimbo: command not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jimbo@monster:~$ sudo apt-get install build-essentials
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package build-essentials


lol theres always something

Perryg
September 6th, 2009, 03:28 PM
Type this one exactly as shown. Do not change or add anything.
sudo apt-get install linux-headers-$(uname -r)

I added an s on the previous command by mistake sorry, line below is correct
sudo apt-get install build-essential

morbid_bean
September 6th, 2009, 03:41 PM
THANK YOU!!! FIXED EVERYTHING! now i have to go to work :( cant wait till i get home to play with this .......thanks alot....sorry for my random stupidity :redface: