FedoraForum.org - Fedora Support Forums and Community
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 15 of 83
  1. #1
    Join Date
    Nov 2007
    Posts
    198

    Cool How To: Install VirtualBox on Fedora 10

    This is my humble tutorial on how to get VirtualBox properly up and running on Fedora 10 (including USB support). It's located on my web blog here:

    How To: Install VirtualBox on Fedora 10 [Tutorial]


    Enjoy!
    Last edited by SendDerek; 28th November 2008 at 08:07 AM.

  2. #2
    Join Date
    Nov 2007
    Posts
    198

    Cool Direct Content:

    Updated November 25th, 2008

    This is a tutorial on how to get VirtualBox up and running on Fedora 10. 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:
    Code:
    su -
    1.) Get the latest VirtualBox package (as of now, 2.0.6) from the VirtualBox website for Fedora 9 and install it (generally, after a few months, the Fedora 10 link will be available).
    Code:
    wget http://download.virtualbox.org/virtualbox/2.0.6/VirtualBox-2.0.6_39765_fedora9-1.i386.rpm && rpm -ivh VirtualBox-2.0.6_39765_fedora9-1.i386.rpm
    2.) Get the kernel-devel package:
    Code:
    yum install make automake autoconf gcc kernel-devel dkms
    3.) Run the setup file for VirtualBox:
    Code:
    /etc/init.d/vboxdrv setup
    4.) Add yourself to the “vboxusers” group and fix SELinux Permissions:
    Code:
    usermod -G vboxusers -a username
    chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so
    5.) Run, and enjoy!
    Code:
    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

    7.) To Properly Backup the VirtualBox Machine (.vdi):

    Please refer to my other page here:

    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.
    Last edited by SendDerek; 28th October 2009 at 04:02 PM. Reason: Added another step for SELinux

  3. #3
    leigh123linux Guest
    It would be better to use dkms !



    Code:
    su
    yum install make automake autoconf gcc kernel-devel dkms

  4. #4
    Join Date
    Nov 2007
    Posts
    198
    Quote Originally Posted by leigh123@linux
    It would be better to use dkms !



    Code:
    su
    yum install make automake autoconf gcc kernel-devel dkms

    Thanks!

    I'll update the tutorial with that instead.

    To be honest, I wasn't sure what that was, so I looked it up. Here's the link for anybody else interested in learning about DKMS:
    http://linux.dell.com/projects.shtml

  5. #5
    Join Date
    Nov 2007
    Posts
    198
    Thanks to DangerMouse for pointing out a potential issue with SELinux denials. I have added this step to the tutorial.

  6. #6
    Join Date
    Jul 2006
    Location
    Montana
    Posts
    732

    Cool

    Works fine in x86_64

    You need also install the qt libs

    Code:
    yum install qt qt-x11
    If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p

  7. #7
    Join Date
    Nov 2007
    Posts
    20

    Danke

    This is a very useful guide. Thanks SendDerek...just installed it on my machine.
    Operating System(s):
    Slackware 12.1
    Fedora 10

  8. #8
    Join Date
    Jul 2007
    Posts
    6
    Quote Originally Posted by bodhi.zazen
    Works fine in x86_64

    You need also install the qt libs

    Code:
    yum install qt qt-x11
    Thank you, I needed this information.

  9. #9
    Join Date
    Apr 2008
    Location
    www.metasdata.com
    Posts
    414
    Thanks, I'm not sure if it was some of the updates I installed or your tutorial, but it took care of my SELinux problem when starting Virtualbox.

  10. #10
    Join Date
    Nov 2008
    Posts
    2
    Hi guys i'm kind of a noob and i tried everything referred in here in order to install virtualbox on Fedora 10.
    But when i type:

    wget http://download.virtualbox.org/virtu...ra9-1.i386.rpm && rpm -ivh VirtualBox-2.0.6_39765_fedora9-1.i386.rpm

    i get this:

    error: open of VirtualBox-2.0.6_39765_fedora9-1.i386.rpm failed: No such file or directory



    So when i continue the steps, there is no /etc/init.d/vboxdrv ...

  11. #11
    Join Date
    Jul 2007
    Posts
    6
    Quote Originally Posted by londo
    Hi guys i'm kind of a noob...
    Hello londo,

    Go to the following web page and download the Fedora 9 i386 file: http://www.virtualbox.org/wiki/Linux_Downloads

  12. #12
    Join Date
    Nov 2007
    Posts
    198

    Wink

    Well, that particular command will download the virtualbox installer and then (&&) installs that rpm package. You're getting that error because it's not downloading it in the first place.

    Maybe you should bypass that and visit the virtualbox website directly. Download the latest version of virtualbox, open with the package manager to install it, and then you should be good to go on with the rest of the tutorial. Let me know if you have problems after that.

  13. #13
    Join Date
    Jun 2004
    Location
    Laurel, MD USA
    Posts
    7,173
    Another problem is that VirtualBox's web site inserts a bunch of gibberish in the filename
    because of some kind of redirection or java script they're using.

    That wget command in post #2 will get something like this as the filename on your local disk:
    VirtualBox-2.0.6_39765_fedora9-1.i386.rpm?e=1228006573&h=27396f90923454969ab1f531 159cf6d5
    You can do this to force the name back to what it should be:
    wget -c http://download.virtualbox.org/virtu...ra9-1.i386.rpm -o VirtualBox-2.0.6_39765_fedora9-1.i386.rpm
    Then do your yum localinstall as usual

  14. #14
    Join Date
    Nov 2008
    Posts
    2
    Hello again... thanks a lot for the time you all spended in order to help me! All the information you gave me were quite helpful and I finally managed to install Virtualbox on my machine!
    Last night I even started thinking of going back to Fedora 9 because many things have gone wrong but now I think you should start preparing for my next questions (just joking)!

  15. #15
    Join Date
    Jun 2004
    Location
    Laurel, MD USA
    Posts
    7,173
    One gotcha with VirtualBox is that VirtualBox depends on using its "vboxdrv" module
    but Fedora also has a module called kvm that will load if you have a cpu that supports
    hardware virtualization. To use vboxdrv, you have to unload the 'kvm' and kvm_intel or kvm_amd
    modules (using _amd or _intel depends on if you have a Intel or AMD cpu).

    vboxdrv and the kvm modules can't be loaded at the same time at least not when running
    something that has to use hardware virtualization (windows is an example).

    PS. KVM is a different virtual system, that is built into the kernel, you can try
    that by running "virt-manager" as root

Page 1 of 6 1 2 3 ... LastLast

Similar Threads

  1. How To: Install VirtualBox on Fedora 11 [Tutorial]
    By SendDerek in forum Guides & Solutions (Not For Questions)
    Replies: 17
    Last Post: 2nd February 2011, 04:12 AM
  2. Install VirtualBox in Fedora 11
    By ahouston in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 12th October 2009, 06:35 AM
  3. How To: Install VirtualBox on Fedora 8
    By SendDerek in forum Guides & Solutions (Not For Questions)
    Replies: 189
    Last Post: 24th October 2008, 10:32 PM
  4. Can't install WinXP in VirtualBox, help!
    By GrayFox in forum Using Fedora
    Replies: 2
    Last Post: 23rd July 2008, 01:54 AM
  5. help......................VirtualBox-install....
    By hangweijin in forum Using Fedora
    Replies: 3
    Last Post: 22nd September 2007, 08:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •