VirtualBox 5.2 on Fedora 28/27, CentOS/RHEL 7.5/6.10 - Comment Page: 23

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. VirtualBox supports a large number of guest operating systems: [inttf_post_ad1] Windows 3.x Windows NT 4.0 Windows 2000 Windows XP Windows Server 2003 Windows Server 2008 Windows Vista Windows 7 Windows 8 Windows 8.1 Windows 10 DOS Linux (Kernel 2.4, 2.6, 3.0, 3.2, 3.4, 3.10, 3.16, 3.18, 4.1, 4.4, 4.7, 4.8, 4.9, 4.10, 4.11, 4.12, 4.13, 4.14, 4.15,...

717 comments on “VirtualBox 5.2 on Fedora 28/27, CentOS/RHEL 7.5/6.10 - Comment Page: 23

1 21 22 23
    1. After Installation without reported error, I encountered this when opening VirtualBox

      VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
      VirtualBox: dlopen(“/usr/lib64/virtualbox/VBoxRT.so”,) failed:
      VirtualBox: Tip! It may help to reinstall VirtualBox.

      I took a look /var/log/vbox-install.log
      ERROR: Kernel configuration is invalid.”; \
      echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
      echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \

      then I do as mentioned above, but get
      scripts/selinux/genheaders/genheaders.c:19:10: fatal error: classmap.h: No such file or directory
      compilation terminated.

      How could I solve this? please help

      Reply
        • Nvidia works. VirtualBox still the same error
          When I run
          sudo /usr/lib/virtualbox/vboxdrv.sh setup
          It showed
          vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

          There are several errors in /var/log/vbox-install.log:
          1. echo >&2 ” ERROR: Kernel configuration is invalid.”; \
          echo >&2 ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
          echo >&2 ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \

          2. – SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:74
          – SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:81

          3. /tmp/vbox.0/linux/VBoxPci-linux.c:92:40: error: implicit declaration of function 「pci_get_bus_and_slot」; did you mean 「pci_get_domain_bus_and_slot」? [-Werror=implicit-function-declaration]

          Reply
          • Did you tried this with kernel 4.16 (no debug) or with kernel 4.17? Kernel 4.16 works, but I haven’t tested 4.17 at all.

            Reply
            • Ya I tried both on 4.16.7 & 4.17.0.rc3
              Exactly the same error as mentioned

              I want to use virtualbox for kubernetes local version. I tried other virtualization option like kvm2. They all failed with unknown error.

              Reply
              • Hey! I ask this question on VirtualBox Forum
                One expert say:
                “Since Fedora 28 is brand new, you need the latest 5.2.x test build, not the 5.2.10 release. Download the generic Linux package. Read the “Installing Linux test builds” instructions.”

                I did as said. It really works!
                VirtualBox test build version: 5.2.11 r122401 (2018-04-27T08:51:51Z)
                Maybe you can edit into your post content
                Thanks again for so many helps!

                Reply
                • BTW
                  I think the problem may be python
                  I alternate default python script from 2.7 to 3.6
                  and Vbox normally may need 2.7 to bind on kernel
                  but test-build works fine
                  maybe they test a python3 script for future installation

                  Reply
                  • Ah… sorry. I’m too optimistic.
                    Test-build can install VirtualBox itself
                    However, It reported error as mentioned above when setup a virtual machine…

                    Reply
                    • Interesting, I can build kernel modules, run VirtualBox 5.2.10, boot virtual machines with kernel 4.16.6 on F28 without problems.

                      [[email protected] ~]# /usr/lib/virtualbox/vboxdrv.sh setup
                      vboxdrv.sh: Stopping VirtualBox services.
                      vboxdrv.sh: Building VirtualBox kernel modules.
                      vboxdrv.sh: Starting VirtualBox services.
                      [[email protected] ~]# uname -a
                      Linux localhost.localdomain 4.16.6-302.fc28.x86_64 #1 SMP Wed May 2 00:07:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
                      [[email protected] ~]# dnf list installed VirtualBox-5.2
                      Installed Packages
                      VirtualBox-5.2.x86_64            5.2.10_122088_fedora26-1            @virtualbox
                      [[email protected] ~]# 
                      Reply
    2. Is there a problem with VirtualBox and Fedora 28? The link to the program disappeared and the repository no longer works (failed to synchronize cache…), so I cannot re-install.

      Reply
      • Hi billh,

        Not actually problem, but Fedora 28 (build/link) is still missing, so you can manually edit repo file from:

        [virtualbox]
        name=Fedora $releasever - $basearch - VirtualBox
        baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
        enabled=1
        gpgcheck=1
        repo_gpgcheck=1
        gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

        To:

        [virtualbox]
        name=Fedora 27 - $basearch - VirtualBox
        baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/27/$basearch
        enabled=1
        gpgcheck=1
        repo_gpgcheck=1
        gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

        Then it works normally.

        Reply
    3. I manged to get VirtualBox to reinstall on Fedora 28, but now I get this annoying error:

      Qt FATAL: This application failed to start because it could not find or load the Qt platform plugin “xcb”
      in “”.

      Available platform plugins are: xcb.

      Reinstalling the application may fix this problem.
      Aborted

      VirtualBox is definitely installed:

      sudo dnf list installed VirtualBox-5.2
      Installed Packages
      VirtualBox-5.2.x86_64 5.2.12_122591_fedora26-1 @virtualbox

      Reply
    4. This is a great guide! But for some reason, I am unable to install dkms. I am prompted for whether I want to install dkms, I hit “y”, but then it cannot connect to a mirror.

      I have a RHEL running on an old machine w/ a EPEL repo, and I had no problem installing dkms with yum.

      Does this seem like a CentOS issue, or a VirtualBox issue?

      Thanks!!!!

      Reply
      • Hi Chris,

        It’s CentOS issue if you can’t install dkms, try following command:

        yum clean all

        And then try to install it again.

        Reply
    5. So here’s a total oddity: I’m not new to Fedora, nor am I new to VirtualBox.. but I haven’t a clue on this one. I’ve got VB installed quite nicely. No errors, no permissions issues no warnings, etc.. Whenever I load up a LiveBoot CD/DVD image for some reason, it tries to start loading (BIOS gets the disk started) and thennn…. hangs. Leave it going over night, still where I left it. Anyone got any ideas on why VB would start running (apparently) and then.. just.. not?

      Note: same ISOs work just fine on FC25/VB-5.1

      *perplexed*

      Reply
      • Hi Jaime,

        What version of VirtualBox you are now running? Did you tested several isos or just one?

        Reply
    6. How can I install VirtualBox in a server without internet? But I have a server with internet connected to this “no internet server”. What are the steps I can do. I am a newbie in this field.

      Reply
    7. Hi,

      I am using Fedora 28. I follow the steps above and I got the error when I run “#dnf install VirtualBox-5.2” as per following:

      ———————–
      “Failed to synchronize cache for repo ‘virtualbbox”, disabling.”
      ———————–

      The virtualbox.repo contents are :

      ================================
      virtualbox]
      name=Fedora $releasever – $basearch – VirtualBox
      baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
      enabled=1
      gpgcheck=1
      repo_gpgcheck=1
      gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
      ================================

      Any idea?

      Thanks!

      Reply
    8. Hi! Thanks for this post! I’ve been following your instructions to install VirtualBox for several years now, and it always helped me a lot.
      But now I’m kind of lost. I’ve installed it following every step, using LXDE Fedora 28, but it crushes when I try to use it. It seems that it’s related to permissions, because if I run it from the terminal using sudo VirtualBox, then it starts. Do you know how do I fix this?

      Reply
      • Hi Consuelo,

        Did you added your user on vboxusers group?

        Could you post output of following command (as normal user):

        groups
        Reply
        • Hi JR,

          Thanks for your reply! Yes, I added my user (cheluna) on vboxusers group.
          Here is the output:
          “groups
          cheluna wheel vboxusers”

          I removed the 5.2 version and installed the 5.1, but it didn’t make any difference. I can only open it with sudo permission. If I don’t, it gives this error:

          Receptor RC:
          NS_BASE_STREAM_WOULD_BLOCK (0x80470007).

          Does it ring any bells?

          Reply
          • Hi Consuelo,

            Could you post output of following commands (as normal user):

            ls -lad ~/.config/VirtualBox/
            
            ls -la ~/.config/VirtualBox/
            
            Reply
            • Sure.

              ls -lad ~/.config/VirtualBox/
              drwx——. 2 root root 4096 ago 18 01:40 /home/cheluna/.config/VirtualBox/
              [[email protected] ~]$ ls -la ~/.config/VirtualBox/
              ls: no se puede abrir el directorio ‘/home/cheluna/.config/VirtualBox/’: Permission denied

              Reply
              • Thanks, looks like that you have wrong permissions on your .config/VirtualBox directory. Try following (as root user):

                chown -R cheluna:cheluna /home/cheluna/.config/VirtualBox

                Then try to start VirtualBox as normal user.

                If it still fail, then try following as root user:

                mv /home/cheluna/.config/VirtualBox /home/cheluna/.config/VirtualBox-old

                And start VirtualBox.

                Reply
                • Thanks JR,

                  It does help and lets me start VirtualBox!

                  However… I have already created a Virtual Machine (starting VirtualBox as root user), and now I cannot access it. Also, I cannot see the VirtualBox VMs folder (it’s not hidden), unless I use root permission. So I cannot open it from the application, and it does not recognize it. This is so weird. It never happened to me before. I don’t understand why it happened, because I installed other applications the same way and they work perfectly.

                  Thanks for your time and patience. <3

                  Reply
    9. At the end I decided to delete the virtual machine I have created and buid a new one. Now everything seems fine. Thanks again!

      Reply
      • I meant, using your previous fix. I’m starting it without root permissions, but I preferred to build a new virtual machine. Thanks!

        Reply
    10. dnf install VirtualBox-5.2
      Last metadata expiration check: 1:40:38 ago on Tue 11 Sep 2018 12:57:01 AM EDT.
      No match for argument: VirtualBox-5.2
      Error: Unable to find a match
      [[email protected] ~]# VirtualBo

      i can’t install virtualbox using this comment

      Reply
      • Hi salman faris,

        Could you post output of following command:

        dnf repolist
        Reply
    11. Doesn’t work on 64-bit:
      /usr/lib/virtualbox/vboxdrv.sh setup

      virtualbox is in lib64 but it doesn’t have vboxdrv.sh

      Reply
      • Hi netdragon,

        Do you get some error when running /usr/lib/virtualbox/vboxdrv.sh setup?

        Just tested on 64-bit system and it works as expected:

        /usr/lib/virtualbox/vboxdrv.sh setup
        vboxdrv.sh: Stopping VirtualBox services.
        vboxdrv.sh: Starting VirtualBox services.
        vboxdrv.sh: Building VirtualBox kernel modules.
        

        I don’t have virtualbox in lib64 at all.

        ls -d /usr/lib/virtualbox
        /usr/lib/virtualbox
        
        ls -d /usr/lib64/virtualbox
        ls: cannot access '/usr/lib64/virtualbox': No such file or directory
        

        Could you post output of following command:

        dnf list installed |grep -i virtualbox
        Reply
    12. On Fedora 28 I had to install
      elfutils-libelf-devel

      Reply
      • Hi Hans,

        It should be installed on step 4. when you install all dependencies? Just tested this on clean installed Fedora 28 and it’s installed on step 4.

        Reply
    13. Please also mention that you need to disable secure boot in bios for the `/usr/lib/virtualbox/vboxdrv.sh setup` to run completely.

      Reply
1 21 22 23

Leave a 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