VirtualBox Guest Additions on Fedora 34/33, CentOS/RHEL 8/7/6/5 - Comment Page: 2

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 34/33/32/31/30, CentOS 8.2/7.8/6.10/5.11, Red Hat (RHEL) 8.2/7.8/6.10/5.11. VirtualBox Guest Additions is special software that can be installed inside Linux virtual machines to improve performance and make integration much more seamless. Among the features provided by these VirtualBox Guest Additions are mouse pointer integration and arbitrary screen solutions (e.g. by resizing the guest window). Check video version of guide: Watch More Videos and Subscribe to if-not-true-then-false.com Youtube Channel Note: Fedora 34/33/32/31/30...

352 comments on “VirtualBox Guest Additions on Fedora 34/33, CentOS/RHEL 8/7/6/5 - Comment Page: 2

1 2 3 4 15
    1. You legend, ive been looking for hours to guest additions to play ball, this worked like a charm

      Reply
      • Thanks! This helped resolve the OpenGL [failed] problem.

        Reply
    2. Hi, Telnet,

      I’m using VB 4.1.8 and Fedora 16 as my guest system,

      I was following below steps trying to install Guest Addition on my guest system, but failed as described below.

      1. Configured the RPMfusion repos for my guest system:

      yum --nogpgcheck install http://rpm.livna.org/livna-release.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

      2. Successfully to “yum update kernel” successfully, until this command report “Nothing marked for update”.

      3. Reboot guest system.

      4. Tried to run “yum install gcc kernel-devel kernel-headers”, however, this step ended in “Nothing to update” too. But my guest system is empty at folder /usr/src/kernels.

      5. Then I ignored the result in step 4 and proceeded with installing Guest Additions by invoking command: sh ./VBoxLinuxAdditions.run
      Everything runs fine except it fails to build the main Guest Additions module

      Building the main Guest Additions module [FAILED]
      (Look at /var/log/vboxadd-install.log to find out what went wrong)

      And here is the content in the vboxadd-install.log

      /tmp/vbox.0/Makefile.include.header:94: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

      So I think the main problem with my environment is why the /usr/src/kernels folder is empty. Is that right? To solve my problem, do you think I should re-install the guest OS?

      Reply
      • Hi Winnie,

        Could you post output of following commands:

        
        rpm -qa gcc kernel\* |sort
        
        ls -la /usr/src/kernels
        
        Reply
    3. I am running Fedora 16 64 bit. I have this output when I run /etc/init.d/vboxdrv setup:
      Stopping VirtualBox kernel modules [ OK ]
      Uninstalling old VirtualBox DKMS kernel modules [ OK ]
      Trying to register the VirtualBox kernel modules using DKMS[FAILED]
      (Failed, trying without DKMS)
      Recompiling VirtualBox kernel modules [FAILED]

      Now, folllowing some of the directions from the discussion with Victor, I did run
      KERN_DIR=/usr/src/kernels/`uname -r`

      export KERN_DIR

      I wanted to link the directory, but discovered I have nothing in /usr/src/kernels, it is an empty directory.
      Running # rpm -qa gcc kernel\* |sort ,

      gave me this:

      gcc-4.6.2-1.fc16.x86_64
      kernel-3.2.1-3.fc16.x86_64
      kernel-3.2.5-3.fc16.x86_64
      kernel-3.2.6-3.fc16.x86_64
      kernel-headers-3.2.6-3.fc16.x86_64

      # ls -la /usr/src/kernels gave me:

      total 8
      drwxr-xr-x. 2 root root 4096 Jul 29 2011 .
      drwxr-xr-x. 4 root root 4096 Feb 15 19:29 ..

      I understand that I need to run a symbolic link, but the thing is that I don’t know where to point it to? Can you help me on this? Thanks.

      Reply
      • Hi RW,

        Are you installing VirtualBox guest additions on Fedora 16 64-bit guest or installing VirtualBox on Fedora 16 64-bit host?

        Reply
      • I think I was having a similar problem and I solved it by upgrading from Virtual Box 4.1.1 to Virtual Box 4.2.6.

        Reply
    4. Hello JR,
      Thank you a lot for this excellent tutorial!
      Helped me installing VirtualBox Guest Additions on Fedora 14 – works fine now.
      Great work!
      Cheers!

      Reply
    5. Hi JR,
      Thanks, your solution worked at the first go..!! super :)

      Reply
    6. Great stuff. Though i faced the error described above
      Building the VirtualBox Guest Additions kernel modules
      The make utility was not found. If the following module compilation fails then
      this could be the reason and you should try installing it.

      Building the main Guest Additions module [FAILED]
      (Look at /var/log/vboxadd-install.log to find out what went wrong)

      I installed make – yum install make

      and then re ran ./VBoxLinuxAdditions.run
      Worked like a charm!!!

      my guest os is Centos 6.2 – 2.6.32-220.13.1.el6.i686

      Thanks a heap JR – Not being able to use mouse was driving me crazy!

      Reply
    7. /usr/src/vboxguest-4.1.12/vboxguest/build_in_tmp: line 55: make: command not found

      Anyone else getting this error on centos 6.2?

      Thanks!

      Reply
      • Hi Spence,

        You probably dont the “make” utility

        Try installing it – yum install make

        and then try installing the guest additions

        Reply
    8. @RR
      Indeed,the ‘make’ was the missing piece of puzzle.
      Thank you man!

      Deniz

      Reply
    9. Good to hear…. sometimes we ignore the most obvious!

      Reply
    10. Thank you very much my friend!

      Just had to install theses packages to make it work :

      yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-uek-headers-2.6.32-300.11.1.el5uek.x86_64

      Great tuto!

      Reply
    11. thanks mate. it works for fedora with kernel 3.4.0-1.fc17.x86_64

      Reply
    12. I followed your method precisely, but get
      Building the shared folder support module [ Failed ]

      Virtualbox 4.1.4
      Host : Windows 7 64-bit Home

      /var/log/vboxadd-install.log
      ERROR : Kernel configuration is invalid

      About to give up, and stick with Slackware and Ubuntu.

      Reply
      • Install dkms, that help me with that, it was driving me crazy.
        sudo yum install dkms

        Reply
1 2 3 4 15

Leave a Reply to Rob Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close