PDA

View Full Version : VirtualBox 2.0.4 and Fedora 9



BlacKXHat
27th October 2008, 04:13 PM
hello all ..

First


[Blackxhat@Linux ~]$ rpm -q dkms VirtualBox kernel-devel
dkms-2.0.19.1-1.fc9.noarch
VirtualBox-2.0.4_38406_fedora9-1.i386
kernel-devel-2.6.26.6-79.fc9.i686
[Blackxhat@Linux ~]$ uname -r
2.6.26.6-79.fc9.i686
[Blackxhat@Linux ~]$

Seconde

i added my user to - vboxusers - group
---
look image link :
http://img233.imageshack.us/img233/8239/62245898gm6.png

and with command :


[Blackxhat@Linux ~]$ su -
Password:
[root@Linux ~]# usermod -G vboxusers -a Blackxhat
[root@Linux ~]#

---


su -c '/etc/init.d/vboxdrv setup'
Password:
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[Blackxhat@Linux ~]$

here is problem ...
i wait the Expert ..
thanks for all ..

BlacKXHat
27th October 2008, 04:17 PM
the problem image !

http://img65.imageshack.us/img65/8461/msko0.png

BlacKXHat
27th October 2008, 05:15 PM
I wait ..

tnx for all ..

marko
27th October 2008, 05:25 PM
this is a guess but try actually becoming root with its full environment instead of just using su -c

NOTE dash - after "su":


su -
<root password>
/etc/init.d/vboxdrv setup

Simian Man
27th October 2008, 05:27 PM
Can you post the contents of /var/log/vbox-install.log?

flf21
28th October 2008, 04:17 AM
rm -f /var/log/vbox-install.log
then /etc/init.d/vboxdrv setup

mistergoodbytes
3rd November 2008, 10:34 AM
I upgraded from Fedora 8 to 9 (I don't know if it's related) but I noticed that the kernel devel file installed when the upgrade completed was for a slightly different kernel version. Of course, VirtualBox was complaining that it did not have the kernel devel file required to recompile the kernel. Uninstalling the wrong devel file and installing the correct one turned the trick for installation. Were I you, I'd check the version of the devel file against the actual kernel version. But...

Trying to actually RUN VB in Fedora 9 for the first time I get the following:

[localhost ~]$ VirtualBox

VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: /usr/lib/virtualbox/VirtualBox.so: undefined symbol: _ZN7QRegionpLERK5QRect

Any idea what that is VB users?

mistergoodbytes
3rd November 2008, 11:03 AM
OK, a little research -=suggests=- that the issue is the need to update the kernel beyond 2.6.25-14. Sure enough, the Fedora 9 software update also won't run, suggesting a kernel upgrade first. Problem is: there are no kernel versions listed as available for fc9 beyond what's already running. Is there a repository I need to add?

glennzo
3rd November 2008, 11:53 AM
Hi Mistergoodbytes. I'm running kernel 2.6.26.6-79.fc9.i686 on my Fedora 9 box. Here's my yum repolist

[glenn@johnbonham temp]$ yum repolist
Loaded plugins: refresh-packagekit
repo id repo name status
livna Livna for Fedora Core 9 - i386 - Base enabled : 967
repof9 repof9 9 - i386 - RepoF9 enabled : 9,897
updates Fedora 9 - i386 - Updates enabled : 10
updates-newkey Fedora 9 - i386 - Updates Newkey enabled : 4,612
repolist: 15,486

My repof9 repository is a local repo that I set up. I replaces the Fedora repo that everyone has. Your list should be pretty much the same except that it will show Fedora and not repof9.

I just installed VirtualBox on the Fedora 9 box. Here's the steps I took for a successful install:

sudo yum install qt qt-x11 kernel-devel
sudo yum groupinstall 'Development Tools'
sudo rpm -ivh VirtualBox-2.0.4_38406_fedora9-1.i386.rpm

This will eliminate the need to install dependencies one at a time and when you run the VirtualBox installer it should compile the module successfully. If not, then just run /etc/init.d/vboxdrv setup again.

Edit: Forgot to add that any time there is a kernel update you need to run the /etc/init.d/vboxdrv setup command again.

brebs
3rd November 2008, 01:36 PM
Let your PC do this tedium automatically. Put in /etc/rc.local

/sbin/modprobe vboxdrv
if [ $? != 0 ] ; then
# Compiles & loads vboxdrv module
/etc/init.d/vboxdrv setup
fi

glennzo
3rd November 2008, 02:18 PM
Sometimes it pays off to try helping someone with an issue. You may end up learning something yourself. Your info regarding rc.local, Brebs, is something that I wasn't aware of, although I should have been. I'll add this to my VBox notes and implement it for my Fedora boxes. Thanks.

mistergoodbytes
5th November 2008, 11:19 AM
OK, after a really HUGE upgrade/update of fc9, including kernel, I was able to install and run VB again. Thanks to all for the assist!