VirtualBox 6.1.28 / 6.1.29 on Fedora 35/34/33, CentOS/RHEL 8/7 - Comment Page: 1

Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software. Check video guide howto install VirtualBox 6.1.28/6.1.29 on Fedora 35/34/33 using .run installer: Check video guide howto install VirtualBox 6.1.28 on Fedora 34/33 using Oracle's own dnf repo: Watch More Videos and Subscribe to if-not-true-then-false.com Youtube Channel VirtualBox supports a large number of guest operating...

810 comments on “VirtualBox 6.1.28 / 6.1.29 on Fedora 35/34/33, CentOS/RHEL 8/7 - Comment Page: 1

1 2 3 27
    1. […] Go here to read the rest:  Howto Install VirtualBox (with yum) on Fedora 12, CentOS 5.4, Red … […]

      Reply
    2. Thanks. I was looking for something like this and it was very helpful, since I’m fairly new with using Fedora distros.

      Reply
      • Hi

        I was fighting with “kernel loading” problem for several hours ..

        [[email protected] /]# /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
        Error! Your kernel headers for kernel 2.6.32-71.el6.x86_64 cannot be found at
        /lib/modules/2.6.32-71.el6.x86_64/build or /lib/modules/2.6.32-71.el6.x86_64/source.
        [FAILED]
        (Failed, trying without DKMS)
        Recompiling VirtualBox kernel modules [FAILED]
        (Look at /var/log/vbox-install.log to find out what went wrong)

        and what is not surprise for, try to guess what helped me ?

        REBOOT ..

        [[email protected] /]# shutdown -r 0

        Broadcast message from [email protected]
        (/dev/pts/0) at 11:03 …

        The system is going down for reboot NOW!
        [[email protected] /]#
        login as: root
        Access denied
        [email protected]’s password:
        Last login: Tue Dec 6 10:31:33 2011
        [[email protected] ~]#
        [[email protected] ~]#
        [[email protected] ~]#
        [[email protected] ~]# /etc/init.d/vboxdrv setup
        Stopping VirtualBox kernel modules [ OK ]
        Uninstalling old VirtualBox DKMS kernel modules
        Error! There are no instances of module: vboxhost
        4.1.6 located in the DKMS tree.
        [ OK ]
        Trying to register the VirtualBox kernel modules using DKMS[ OK ]
        Starting VirtualBox kernel modules [ OK ]
        [[email protected] ~]#

        Reply
        • Hi bartekjamajka,

          This is very normal situation, if you are not running latest kernel and then your kernel-headers and kernel-devel packages not match your running kernel.

          I decide to make more clear this guides step 3, when you should reboot… :)

          Reply
        • Hello,

          I had a problem installing VIrtualbox on fedora 16. I followed your guide end got to the KERN_DIR part. But when i rebooted the system got stuck on:
          Started SYSV late init script for live image…

          What should i do?..

          Reply
          • Did you do any other changes on your system?

            If this is VirtualBox related problem then you could try to change another virtual console with ALT+F2, (ALT+F3, ATL+F4), login and then disable VirtualBox related stuffs from autostarting services, with following commands (as root):

            
            chkconfig vboxdrv off
            
            chkconfig vboxballoonctrl-service off
            
            chkconfig vboxweb-service off
            

            Then reboot your system:

            
            reboot
            

            If it still fail, then a very high probability it have nothing to do with VirtualBox installation…

            If you want later turn vbox services back to on boot, then run following commands:

            
            chkconfig vboxdrv on
            
            chkconfig vboxballoonctrl-service on
            
            chkconfig vboxweb-service on
            
            Reply
            • Thanks for your suggestions. What i did is ‘yum history undo’ and it brought it back to where i started…So i’ll be doing it again carefully. It seems there was a problem with Xorg.

              Now the other thing is that yum can’t get VirtualBox-4.1 from the repo. I have to download the package directly from

              https://www.virtualbox.org/wiki/Linux_Downloads

              so i suppose i have to install it with
              tar -ivh VirtualBox-4.1*.rpm

              This is what i first did.

              It seems to me i read somewhere that VirtualBox had a problem with Xorg since Fedora 16. is this true?

              Reply
              • Please post output of following commands:

                
                yum repolist
                
                yum list VirtualBox-4.1
                
                rpm -qa VirtualBox\*
                
                Reply
                • ok.

                  What are the tags to use when i post output?

                  Reply
                  • You can use following tags, if you want bash output:

                    
                    
                    Some content here...
                    < /pre>
                    

                    Ending pre tag without space... :)

                    Reply
                    • Well when i tried ‘yum install VirtualBox-4.1’, i got that:

                      
                      
                      [[email protected] yum.repos.d]# yum install VirtualBox-4.1
                      Modules complémentaires chargés : langpacks, presto, refresh-packagekit
                      virtualbox                                               |  951 B     00:00     
                      virtualbox/primary                                       | 2.0 kB     00:00     
                      virtualbox                                                                  2/2
                      Configuration du processus d'installation
                      Résolution des dépendances
                      --> Lancement de la transaction de test
                      ---> Le paquet VirtualBox-4.1.x86_64 0:4.1.8_75467_fedora16-1 sera installé
                      --> Résolution des dépendances terminée
                      
                      Dépendances résolues
                      
                      ================================================================================
                       Paquet             Architecture
                                                     Version                     Dépôt          Taille 
                      ================================================================================
                      Installation de:
                       VirtualBox-4.1     x86_64     4.1.8_75467_fedora16-1      virtualbox      57 M
                      
                      Résumé de la transaction
                      ================================================================================
                      Installation      1 Package
                      
                      Taille totale des téléchargements : 57 M
                      Taille d'installation : 114 M
                      Est-ce correct [o/N] : o
                      Téléchargement des paquets :
                      http://download.virtualbox.org/virtualbox/rpm/fedora/16/x86_64/VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64.rpm: [Errno 12] Timeout on http://download.virtualbox.org/virtualbox/rpm/fedora/16/x86_64/VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64.rpm: (28, '')
                      Essai d'un autre miroir.
                      
                      
                      Erreur durant le téléchargement des paquets :
                        VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64: failure: VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64.rpm from virtualbox: [Errno 256] No more mirrors to try.
                      

                      I tried again though and it seems to work…
                      Sorry for the bothering

                      I’ll go through the configuration now

                      Reply
      • thank you, thank you, thank you, !!!

        Reply
    3. […] 10 on Fedora 13Install Sun Java (JDK, JRE) on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install VirtualBox (with yum) on Fedora 13Install PostgreSQL 8.4 Database Server on Fedora 13Install NetBeans 6.9 on Fedora 13Install tint2 […]

      Reply
    4. ??? Add VirtualBox User to vboxusers Group
      :(( …. but not by using wheel group … this is intended for giving admin stuff to normal users …

      Instead:
      /etc/group:
      vboxusers:x:501:remke

      ->>> usermod -aG vboxusers remke

      Reply
      • Hi remke,

        Thanks for correction. It was typo on command…now this guide is updated… :)

        Reply
    5. […] on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install Adobe (Acrobat PDF) Reader on Fedora 13Install VirtualBox (with yum) on Fedora 13Install PostgreSQL 8.4 Database Server on Fedora 13Install NetBeans 6.9 on Fedora 13Install tint2 […]

      Reply
    6. […] 6. Reboot guest systemrebootThen VirtualBox Guest Additions install is ready.Check also:Install VirtualBox (with yum) on Fedora, CentOS, Red Hat (RHEL)                    Related posts:Install […]

      Reply
    7. Hi,
      Can anyone help,
      i cannot install VirtualBox-3.2 on CentOS 5.4 i386 .
      i’ve updated the system,
      installed:
      kernel-devel; kernel-PAE-devel; kernel-xen;kernel-xen-devel;
      nothing worked, always the same problem: Recompiling VirtualBox kernel module [FAILED]
      (Look at /var/log/vbox-install.log to find out what went wrong)

      Wat can i try next?

      Reply
      • Hi danijelpg,

        Could you post /var/log/vbox-install.log file content here?

        Reply
    8. Hi
      i am trying to install VBox-3.2.6 on CentOS 5.4 i386
      i have not installed KVM
      i have installed “Development Tools” (gcc, make, automake…)
      but i cannot install DKMS using: “yum install dkms”, anyone ones why???
      and second, more important: when i try to install VBox i get then massage:
      recompiling vbox kernel module FAILED

      output from “rpm -qa kernel\* | sort” says then i have kernel-xen
      and when i remove it because of installing kernel-PAE-devel, after attemp to reboot, system cannot reboot.
      my questions are:
      – how to install DKMS
      – how to switch from kernel-xen to kernel-devel or kernel-PAE-devel

      any PLEASE help!

      Reply
      • What happen when you try to install DKMS? Please post all error messages?

        Reply
    9. […] 5.5Install Sun/Oracle Java (JDK, JRE) 6 on CentOS 5.5Install Adobe AIR 1.5 and 2 on CentOS 5.5Install VirtualBox (with yum) on CentOS 5.5                    Related posts:Install Adobe […]

      Reply
    10. Worked like a charm for my Fedora 13 x86_64 with KDE.

      Thanks a lot.

      Reply
    11. RHEL6 does not work yet as the repo tries a directory that does not exist. However using the fedora13 version on RHEL6 works so you will need to use that repo instead (with some manual editing of the .repo file). Maybe you could add that to the oterwise great guide!

      Reply
      • Hi Christian,

        Thanks! Good point, I added this to guide.

        Reply
    12. Can anyone to help me to install Sun virtual box in fedora 13

      Reply
      • Hi Charith,

        Did you read this blog post about Installing Sun VirtualBox 3.2.8 on Fedora 13 and did you try installing Sun VirtualBox according to the instructions?

        Reply
    13. I have dkms installed and I have done everything as above but get the old message

      Failed to open a session for the virtual machine win.
      The virtual machine ‘win’ has terminated unexpectedly during startup with exit code 1.

      When starting from command line “Virtualbox” I get

      [[email protected] yum.repos.d]# VirtualBox
      WARNING: The vboxdrv kernel module is not loaded. Either there is no module
      available for the current kernel (2.6.33.3-85.fc13.i686) or it failed to
      load. Please recompile the kernel module and install it by

      sudo /etc/init.d/vboxdrv setup

      You will not be able to start VMs until this problem is fixed.
      WARNING: The compilation of the vboxdrv.ko kernel module failed during the
      installation for some reason. Starting a VM will not be possible.
      Please consult the User Manual for build instructions.
      Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme.
      Qt WARNING: Qt: Session management error: None of the authentication protocols specified are supported

      Any suggestions?

      Reply
      • Hi Sarah,

        Do you have Gnome installed?

        This problem occurs because the system tries to detect the GTK+ theme, but it does not exist.

        You can try to fix this in the following way
        Start qtconfig-qt4 program:

        
        qtconfig-qt4
        

        And change another theme than GTK/GTK+ (QGtkStyle).

        Reply
        • Thanks this is very helpful, the only thing is that I’m also getting the same error.

          —————————————————————————————————-
          No precompiled module for this kernel found — trying to build one. Messages
          emitted during module compilation will be logged to /var/log/vbox-install.log.

          Compilation of the kernel module FAILED! VirtualBox will not start until this
          problem is fixed. Please consult /var/log/vbox-install.log to find out why the
          kernel module does not compile. Most probably the kernel sources are not found.
          Install them and execute

          /etc/init.d/vboxdrv setup

          as root.
          —————————————————————————————————-

          I have tried everything as explained there with out errors, I’m running Fedora 13 x64, this same problem is happening to me running ClearOS 5.2 and 5.1 (which is based on CentOS 5.5, I think), the exact same message, would you please give some advice ??

          Thanks a lot again.

          Reply
          • Hi Joe,

            Are you getting the same qt4 errors or are you getting this “No precompiled module for this kernel found” error?

            Please post what you get when you run following command (as root):

            
            /etc/init.d/vboxdrv setup
            
            Reply
    14. What to do with this?

      # VirtualBox
      WARNING: The vboxdrv kernel module is not loaded. Either there is no module
      available for the current kernel (2.6.31.5-127.fc12.i686.PAE) or it failed to
      load. Please recompile the kernel module and install it by

      sudo /etc/init.d/vboxdrv setup

      You will not be able to start VMs until this problem is fixed.

      Reply
      • Hi richard,

        Try run following command (as root):

        
        /etc/init.d/vboxdrv setup
        
        Reply
    15. Hi!

      When a VM I get this error in a window:
      Error In suplibOsInit (window title)

      Kernel driver not installed (rc=-1908)

      The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

      ‘/etc/init.d/vboxdrv setup’

      as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

      Then I run /etc/init.d/vboxdrv setup

      WARNING: All config files need .conf: /etc/modprobe.d/blacklist-vmc, it will be ignored in a future release.
      Stopping VirtualBox kernel modules [ OK ]
      Uninstalling old VirtualBox DKMS kernel modules [ OK ]
      Removing old VirtualBox netadp kernel module [ OK ]
      Removing old VirtualBox netflt kernel module [ OK ]
      Removing old VirtualBox kernel module [ OK ]
      Trying to register the VirtualBox kernel modules using DKMS
      Error! Bad return status for module build on kernel: 2.6.32.21-168.fc12.i686 (i686)
      Consult the make.log in the build directory
      /var/lib/dkms/vboxhost/3.2.10/build/ for more information.
      [FALLÓ]
      (Failed, trying without DKMS)
      Recompiling VirtualBox kernel modules [FALLÓ]
      (Look at /var/log/vbox-install.log to find out what went wrong)

      I have them GTK+

      Thanks!!!!

      Reply
      • ups!! I have Fedora 12

        Reply
        • Hi antonio,

          Could you post messages from /var/log/vbox-install.log file. After running following command (as root):

          
           /etc/init.d/vboxdrv setup
          
          Reply
          • Hi JR,
            Thank. Here vbox-install.log:

            Uninstalling modules from DKMS
            removing old DKMS module vboxhost version 3.2.10

            ------------------------------
            Deleting module version: 3.2.10
            completely from the DKMS tree.
            ------------------------------
            Done.
            Attempting to install using DKMS

            Creating symlink /var/lib/dkms/vboxhost/3.2.10/source ->
            /usr/src/vboxhost-3.2.10

            DKMS: add Completed.

            Kernel preparation unnecessary for this kernel. Skipping...

            Building module:
            cleaning build area....
            make KERNELRELEASE=2.6.32.21-168.fc12.i686 -C /lib/modules/2.6.32.21-168.fc12.i686/build M=/var/lib/dkms/vboxhost/3.2.10/build....(bad exit status: 2)
            0
            0
            Failed to install using DKMS, attempting to install without
            make KBUILD_VERBOSE=1 -C /lib/modules/2.6.32.21-168.fc12.i686/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
            /usr/src/kernels/2.6.32.21-168.fc12.i686/scripts/gcc-version.sh: line 25: gcc: no se encontró la orden
            /usr/src/kernels/2.6.32.21-168.fc12.i686/scripts/gcc-version.sh: line 26: gcc: no se encontró la orden
            /usr/src/kernels/2.6.32.21-168.fc12.i686/arch/x86/Makefile:81: stack protector enabled but no compiler support
            make[1]: gcc: No se encontró el programa
            test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
            echo; \
            echo " ERROR: Kernel configuration is invalid."; \
            echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
            echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
            echo; \
            /bin/false)
            mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
            make -f scripts/Makefile.build obj=/tmp/vbox.0
            gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem -Iinclude -I/usr/src/kernels/2.6.32.21-168.fc12.i686/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -msoft-float -mregparm=3 -freg-struct-return -march=i686 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -I/lib/modules/2.6.32.21-168.fc12.i686/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -D"DEBUG_HASH=27" -D"DEBUG_HASH2=27" -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
            /bin/sh: gcc: no se encontró la orden
            make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
            make[1]: *** [_module_/tmp/vbox.0] Error 2
            make: *** [vboxdrv] Error 2

            Reply
            • I do not understand Spanish well, but it seems that gcc does not exist. So try following (as root):

              
              yum install gcc
              

              Then run following again:

              
              /etc/init.d/vboxdrv setup
              

              Does it work then? Or do you receive more errors?

              Reply
              • JR,

                Sorry, I did not realize it was in Spanish.

                Installing gcc, Virtualbox works correctly!!!!

                Thanks!!!!

                Reply
                • No problem, with Spanish :) I would have asked more specifically if I had not got it translated myself :)

                  Nice to hear that you got it working correctly!

                  You’re welcome!

                  Reply
                  • Thanks for this information – I had the same error in virtualbox using Fedora 16 and installing gcc fixed the problem!

                    Reply
                  • Hi,

                    Your post was really helpfull, I installed GCC on Centos and the VM is working fine now

                    Reply
1 2 3 27

Leave a Reply to Brian Mulford 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