LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sun virtual box problems (https://www.linuxquestions.org/questions/linux-newbie-8/sun-virtual-box-problems-728650/)

anika.ella 05-26-2009 02:16 PM

sun virtual box problems
 
I have fedora 10 on an AMD X64 desktop. I installed sunvirtualbox on it, in the intention to install windows . After define the virtual hdd in the virtual box, when i give start, I receive error asying that the source for the kernel cannot be find and the virtualbox cannot be configured. Practically, the virtualbox kernel module refuse to load.
I use virtualbox version 222 r46594.
Any ideas ? Help !

colucix 05-26-2009 05:53 PM

Install the kernel sources. Package names are kernel-devel and kernel-headers.
Code:

# yum install kernel-devel kernel-headers
Be sure the installed version matches the currently installed kernel.

anika.ella 05-27-2009 01:09 AM

When I give the command
yum install kernel-devel kernel-headers

I receive the error
rpmdb open failed

saavik 05-27-2009 01:38 AM

for yum you will need an internet-connection.

Do you have one ?

Maybe try

ping linux.com

colucix 05-27-2009 02:47 AM

Quote:

Originally Posted by anika.ella (Post 3553963)
When I give the command
yum install kernel-devel kernel-headers

I receive the error
rpmdb open failed

Have you tried from Applications --> Add/Remove Software? Did you get the same error? If yes you can try to rebuild the rpm database using
Code:

rpm --rebuilddb

anika.ella 05-27-2009 03:32 AM

I installed virtualbox, then when I tried to uninstall with the add-remove i received the same error thet I mentioned. I will try what you sugessted and I will tell you what happend.

anika.ella 05-27-2009 06:14 AM

I give the following commands with the following effects:

rpm --rebuilddb
and it works.

yum install kernel-devel kernel-headers
and it works

yum groupinstall 'Development Tools'
and it works

rpm -ivh VirtualBox-2.2.2_46594_fedora9-1.x86_64.rpm
and it works

/etc/init.d/vboxdrv setup
and i obtained the following:

/etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [FAILED]
(Cannot create device /dev/vboxdrv with major 10 and minor 59)

Now what ?????

colucix 05-27-2009 07:44 AM

What kernel is the system running? Can you post the exact output of uname -a?

anika.ella 05-27-2009 08:27 AM

Linux localhost.localdomain 2.6.27.24-170.2.68.fc10.x86_64 #1 SMP Wed May 20 22:47:23 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

colucix 05-27-2009 08:38 AM

Ok, thanks. No problem with the kernel version. Does the character device /dev/vboxdrv already exist? If yes try to remove it
Code:

rm /dev/vboxdrv
then run "/etc/init.d/vboxdrv setup" again.

anika.ella 05-28-2009 05:12 AM

Finally I just start the VB from the menu and it seem to work ! It recognise the DVD, it tried to install XP, but from some reason, the installation was cancelled. I will try to set different the virtual unit that was created with VB.
Thank you all !


All times are GMT -5. The time now is 07:55 PM.