View Full Version : How To: Install VirtualBox on Fedora 11 [Tutorial]
SendDerek
10th June 2009, 12:52 AM
This is my humble tutorial on how to get VirtualBox properly up and running on Fedora 11 (including USB support). It's located on my web blog here:
How To: Install VirtualBox on Fedora 11 [Tutorial] (http://www.derekhildreth.com/blog/how-to-install-virtualbox-on-fedora-11-tutorial/)
Enjoy!
SendDerek
10th June 2009, 12:53 AM
Note: I actually haven't ran though this personally. I'm confident that it will work none-the-less. The only part that may or may not work for you is the USB support. Things may have changed a little in that department.
Updated June 9th, 2009
This is a tutorial on how to get VirtualBox up and running on Fedora 11. Also, this tutorial is for the 32-Bit version of VirtualBox, so you’ll have to customize a little more to get the 64-bit version running. Everything in the “code” sections should be copy/pasted/typed into the terminal. Right, let’s get to it:
PreStep.) Open the terminal and get into super user mode:
su -
1.) Get the latest VirtualBox package (as of now, 2.2.4) from the VirtualBox website for Fedora 11 and install it. The following command should download and install the application:
wget http://download.virtualbox.org/virtualbox/2.2.4/VirtualBox-2.2.4_47978_fedora11-1.i586.rpm && rpm -ivh VirtualBox-2.2.4_47978_fedora11-1.i586.rpm
2.) Get the kernel-devel and other needed packages:
yum install make automake autoconf gcc kernel-devel dkms
3.) Run the setup file for VirtualBox:
/etc/init.d/vboxdrv setup
4.) Add yourself to the “vboxusers” group and fix SELinux Permissions:
usermod -G vboxusers -a username
chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so
5.) Run, and enjoy!
VirtualBox
6.) To Get USB Support:
1 - create a new group called “usb”;
2 - locate file usbfs: in my case is /sys/bus/usb/drivers (I suggest to find the file with a usb device inserted;
3 - modify file /etc/fstab inserting a line containing the right path and the number corresponding the “usb” group :
none /sys/bus/usb/drivers usbfs devgid=503,devmode=664 0 0
4 - command mount -a;
5 - start VB and try…;
Source: Fedora Forums (http://forums.fedoraforum.org/showpost.php?p=847612&postcount=4)
7.) To Properly Backup the VirtualBox Machine (.vdi):
Please refer to my other page here:
How To: Properly Backup a VirtualBox Machine (.VDI) (http://sendderek.wordpress.com/2007/11/18/how-to-properly-backup-a-virtualbox-machine-vdi/)
8.) To Get Sound Working:
Highlight your virtual machine and click on the “Settings” button. Click on the “Sound” category, and then check the “Enable Sound” option. In the drop-down box, select “PulseAudio”. You should now have sound.
Hawaiisnowstorm
12th June 2009, 08:57 PM
I tryed following your instructions how ever I get the following messages after down loading VB like you said in Step #1
100%[======================================>] 40,418,619 157K/s in 4m 11s
2009-06-12 15:43:54 (157 KB/s) - `VirtualBox-2.2.4_47978_fedora11-1.i586.rpm?e=1244835922&h=667e103d20b181fd85b98fbeacf679c8' saved [40418619/40418619]
error: open of VirtualBox-2.2.4_47978_fedora11-1.i586.rpm failed: No such file or directory
You have new mail in /var/spool/mail/root
[root@localhost ~]#
I'm new to Fedora, and using Virtual box was one of the reason I wanted to try to use it. any suggestions?
SendDerek
12th June 2009, 09:20 PM
I would maybe suggest just simply double-clicking on the newly downloaded file instead of messing around with the command line. The command is just trying to open it is all. You've already downloaded it, so that's great.
After looking at it a bit more, it almost looks like it saved the file as 'VirtualBox-2.2.4_47978_fedora11-1.i586.rpm?e=1244835922&h=667e103d20b181fd85b98fbeacf679c8' That's strange for it to have all of that garbage after ".rpm". The command you've entered is looking for "VirtualBox-2.2.4_47978_fedora11-1.i586.rpm", not the big nasty one.
NoEffex
12th June 2009, 09:56 PM
I would maybe suggest just simply double-clicking on the newly downloaded file instead of messing around with the command line. The command is just trying to open it is all. You've already downloaded it, so that's great.
After looking at it a bit more, it almost looks like it saved the file as 'VirtualBox-2.2.4_47978_fedora11-1.i586.rpm?e=1244835922&h=667e103d20b181fd85b98fbeacf679c8' That's strange for it to have all of that garbage after ".rpm". The command you've entered is looking for "VirtualBox-2.2.4_47978_fedora11-1.i586.rpm", not the big nasty one.
Sun likes to strap on that extra ending for when people download via wget, it happened to me for both virtualbox and opensolaris.
what you could do is add * to the end of 'VirtualBox-2.2.4_47978_fedora11-1.i586.rpm' and it might work.
Hawaiisnowstorm
12th June 2009, 11:17 PM
Not sure how but I got it to work lol. Combination of this and clicking on the actual install file. The first problem was that I didn't copy the entire Step #1, but after that things went smoothly. Thanks for the help though =)
Astrals
4th July 2009, 07:21 PM
Thank you, this has been a great help.
Virtualbox version 3 now. I got it worked out and working.
Usb support was a bit tricky but now working.
Shared folder now working and set for read only.
Internet connection works perfect.
Thanks you, looks like i might finally be leaving the noob status.
gloomy
6th July 2009, 08:14 AM
Virtualbox version 3 now. I got it worked out and working.
Usb support was a bit tricky but now working.
Hi there,
Running Fedora 11 and VirtualBox 3 now, everything is running fine except for USB.
Tried what was said above but can't connect usb devices to my vm. When I right click on the icone, all the devices stay grayed.
Did you do another change than the one given above ?
Regards
-----
Finally found a post who solved my problem :p
http://rajaseelan.com/2009/07/06/how-to-enable-usb-devices-for-virtualbox-guests-in-fedora-11/
neighborlee
7th July 2009, 02:54 AM
Note: I actually haven't ran though this personally. I'm confident that it will work none-the-less. The only part that may or may not work for you is the USB support. Things may have changed a little in that department.
Updated June 9th, 2009
2 – locate file usbfs: in my case is /sys/bus/usb/drivers (I suggest to find the file with a usb device inserted;
^, I realize you said this was untested etc, but just in case:
I too have greyed out usb items in VB , and wondering if there are any ideas how about this ?
I searched that path you noted in fedora 11 for usbfs, and its not here having done a locate and find / on it.
thx anyone for help on this.
cheers
nl
gloomy
7th July 2009, 05:36 AM
I too have greyed out usb items in VB , and wondering if there are any ideas how about this ?
Hi,
For my experience, what was given as tip in the first post didn't help me at all, even if I got the same path.
mount -a , log out/ log in, reboot, nothing helped me ... until I found this post : http://rajaseelan.com/2009/07/06/how-to-enable-usb-devices-for-virtualbox-guests-in-fedora-11/
After applying the 2 changes they speak about and after reboot, VB3 recognized all my usb stuff :)
Hope it will help you :)
Nachiket
8th July 2009, 05:43 AM
I have got fedora 11,
uname -r
2.6.29.5-191.fc11.i586
I tried installing Virtual box 3.0 , VirtualBox-3.0.0_49315_fedora11-1.i586.rpm
The install gave success
But VirtualBox suggested running setup.
When i ran setup i got following error.
npviewer.bin[2782] general protection ip:12d531c sp:bfa3a050 error:0 in libflashplayer.so[f67000+96d000]
npviewer.bin[3072]: segfault at 13 ip 016871b7 sp bf951854 error 4 in libflashplayer.so[fcf000+96d000]
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
vboxdrv: version magic '2.6.29.4-167.fc11.i586 SMP mod_unload 586 ' should be '2.6.29.5-191.fc11.i586 SMP mod_unload 586 '
Can you help?
Nachiket
8th July 2009, 06:13 AM
I got the issue solved.
Fedora kernel-dev package did not get the latest sources for given version.
yum clean all
did the trick, it updated sources.
Vbox set up went through.
Virtual box up and running now.
:)
tquang
16th July 2009, 03:12 AM
Thank for your thread. I was installed both, however, VMware Workstation bestter than VirtualBox: Linking between Host OS and Guest OS
Ex: Drag and Drop file, clipboard, network sharing, ....
solinem
11th September 2009, 07:38 AM
Thank for your thread. I was installed both, however, VMware Workstation bestter than VirtualBox: Linking between Host OS and Guest OS
Ex: Drag and Drop file, clipboard, network sharing, ....
Yes, it is, and costs more too, there's a Free VirtualBox version, TOO!!!
san
17th September 2009, 09:35 PM
awsome it helped me a lot thank you
fedora (http://www.linux-archive.org/fedora-user/)
SgtDilbert
1st February 2011, 12:08 PM
I don't have a vboxdrv in my init.d directory. I'm running kernel 2.6.30.10-105.2.23.fc11.x86_64 and have virtual box 3.0 installed. and I did run: yum install make automake autoconf gcc kernel-devel dkms. The terminal output said package dkms-2.1.0.1-1.fc11.noarch already installed and latest version. Nothing to do.
Any help is greatly appreciated.
Thanks,
SgtDilbert
1st February 2011, 12:15 PM
attached is a screenshot of the errors that I receive.
Thanks,
SgtDilbert
2nd February 2011, 03:12 AM
Also, when I run the: /etc/sysconfig/modules/VirtualBox-OSE.modules
command in terminal I get:
[root@DellVostro Losos]# /etc/sysconfig/modules/VirtualBox-OSE.modules
FATAL: Module vboxdrv not found.
FATAL: Module vboxnetflt not found.
FATAL: Module vboxnetadp not found.
But, I do have a VirtualBox-OSE.modules
in my /etc/sysconfig/modules/ directory
Unfortunately, I am not sure what to do with this file.
And, I did try another line of code that yielded these results
[root@DellVostro Losos]# yum install akmod-VirtualBox-OSE-PAE
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: ftp.heanet.ie
* rpmfusion-free: mirrors.cat.pdx.edu
* rpmfusion-free-updates: mirrors.cat.pdx.edu
* rpmfusion-nonfree: mirrors.cat.pdx.edu
* rpmfusion-nonfree-updates: mirrors.cat.pdx.edu
* updates: ftp.heanet.ie
Setting up Install Process
No package akmod-VirtualBox-OSE-PAE available.
Nothing to do
[root@DellVostro Losos]#
And, finally, I have tried to install the kmod-VirtualBox-OS-2.6.30.10-105.2.23.fc11.x86_64; but with this installed, and after resetting, the problem was not resolved. I got the same errors as shown in the image.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.