VirtualBox 6.1 on Fedora 32/31, CentOS/RHEL 8.0/7.7 - Comment Page: 3

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,...

764 comments on “VirtualBox 6.1 on Fedora 32/31, CentOS/RHEL 8.0/7.7 - Comment Page: 3

1 2 3 4 5 25
    1. I have tried almost every solution given here, and I still have this problem

      [[email protected] Apuesto]# sudo /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 source for kernel 2.6.34.7-63.fc13.i686.PAE cannot be found at
      /lib/modules/2.6.34.7-63.fc13.i686.PAE/build or /lib/modules/2.6.34.7-63.fc13.i686.PAE/source.
      [FAILED]
      (Failed, trying without DKMS)
      Recompiling VirtualBox kernel modules [FAILED]
      (Look at /var/log/vbox-install.log to find out what went wrong)
      [[email protected] Apuesto]#

      Then the log from /var/log/vbox-install.log

      Uninstalling modules from DKMS
      removing old DKMS module vboxhost version 3.2.12

      ——————————
      Deleting module version: 3.2.12
      completely from the DKMS tree.
      ——————————
      Done.
      Attempting to install using DKMS

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

      DKMS: add Completed.
      You can use the –kernelsourcedir option to tell DKMS where it’s located.
      Failed to install using DKMS, attempting to install without
      Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

      Any one with suggestions? Am trying to install windows 7 on the virtual box.

      Reply
      • Hi Apuesto,

        Did you specify KERN_DIR environment variable?

        If yes then please post output of following commands:

        
        yum list installed gcc kernel-devel kernel-headers
        
        ## AND ##
        
        uname -a
        
        Reply
    2. The output
      [[email protected] Apuesto]# yum list installed gcc kernel-devel kernel-headers
      Loaded plugins: presto, refresh-packagekit
      Installed Packages
      gcc.i686 4.4.5-2.fc13 @updates
      kernel-devel.i686 2.6.34.7-63.fc13 @updates
      kernel-headers.i686 2.6.34.7-63.fc13 @updates
      [[email protected] Apuesto]# uname -a
      Linux unkown 2.6.34.7-63.fc13.i686.PAE #1 SMP Fri Dec 3 12:28:58 UTC 2010 i686 i686 i386 GNU/Linux

      Reply
      • Looks good.

        Did you specify KERN_DIR environment variable, like:

        
        KERN_DIR=/usr/src/kernels/`uname -r`
        export KERN_DIR
        

        Then you could install/reinstall VirtualBox or run vboxdrv setup:

        
        yum install VirtualBox-3.2
        
        ## OR ##
        
        yum reinstall VirtualBox-3.2
        
        ## OR ##
        
        /etc/init.d/vboxdrv setup
        
        Reply
    3. JR,
      You just gave me the best Christmas gift ever!
      I had struggled with this for a couple of days, got it working on RH4, but had a heck of time with RH6,
      I read your article, tried it again, still failed… then I re-read your article again, slooooowly, and followed your instructions to the letter, and…. finally I have it working.

      Thanks so much for your detailed instructions, they work.

      I am a somewhat newbie to Linux, been around Solaris for a while, but lot’s to learn.
      I am on my way to Windoze independence.

      Thanks again, and have a great Christmas!

      Reply
    4. I finally got it! The parts I was not installing make & automake!

      Reply
    5. Those of you like me and Apuesto who have a PAE kernel…. you need to install the PAE kernel sources

      yum install kernel-PAE-devel.i686

      Chris

      Reply
      • Good point caver! :)

        Added to guide…thanks!

        Reply
      • I tried everything listed and sure enough this was my answer! Thank you everyone!

        Reply
    6. This has got to be the easiest virtualbox installs I’ve ever seen. The first time I did this set, I followed some other idiots instructions and it was a nightmare!

      thanks for posting something truly useful!

      Reply
    7. […] if !1 0 Compartilhe: fedora, linux, máquina virtual, virtualbox, […]

      Reply
    8. […] Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6 – March 22nd ( tags: virtualbox fedora centos linux rhel install howto guide example ) March 23rd, 2011, @ 12:01 am | Tags: links | Category: delicious links | Comments are closed | Trackback this Post | 0 views […]

      Reply
    9. Do you have to uninstall VBox 3.x prior to installing Vbox 4.x?

      Do you need to shutdown the network translation services prior to to an update.

      I am getting collisions with files that 3.x says it needs when installing 4.x so just trying to make sure I have the correct install flow.

      Thanks,
      TomT…

      Reply
      • Hi Thomas,

        I think uninstalling VirtualBox 3.x and reinstall VirtualBox 4.x should be enough to get Virtualbox 4.x up and running. At least for myself, it worked out correctly, but if you have something valuable data related to VirtualBox 3.x installation, then you should take backup of them. For me this method uninstall VBox 3.x and reinstall VBox 4.x had no effect on any virtual machines (I have several virtual machines), but course it’s better to do it as safe as possible.

        Reply
        • JR, Thanks just wish they would add that to the FAQ that uninstalling previous version may be necessary; the VB folks make is sound like this Upgrade should just overright the previous one with issues. For those of us that just run the “Stock” vbox configuration — if there is such a thing — I would expect it to work that way. Not that I was shy from doing what I suggested; just wanted to make sure I didn’t miss something obvious.

          TomT…

          Reply
          • I agree with you that this should definitely be added to FAQ.

            Reply
    10. […] Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6. Рубрика: C других сайтов, Linux, Новости Комментарии […]

      Reply
    11. Hi JR,
      your site always help me a lot.
      I fallow every step when intall vbox in fedora 13/14 but… now in have a problem

      I don’t know if is just me or the virtualbox.repo doesn’t work. Because when in did the “yum update” it return me an error that can not find the url of the repo info.
      thus I erased the repo and download the rpm directly from virtualbox.org and installed it, after that I do the following steps and works perfectly, only that I don’t have virtualbox.repo jejeje

      sorry for my bad english
      ¡un saludo!

      Reply
    12. hi

      when i try to run the vbox i alyays get a message that:———-
      this kernel requires an x86-64, but only detected an i686 cpu
      unable to boot – please use a kernel appropriate for your cpu.
      —————-

      please help me out.

      prash

      Reply
      • Hi prash,

        Which processor do you use 32-bit or 64-bit?

        Reply
    13. got the following error

      Makefile:178: *** Error: KERN_DIR does not point to a directory. Stop

      Reply
      • Hi sanam,

        Could you print your KERN_DIR variable and post here?

        
        echo $KERN_DIR
        
        Reply
    14. Your guide instructions worked and I was able to get VirtualBox running without a problem. Now I’m trying to get my XP guest to print. When I try to get usb2 working, I get a box saying that I need to install Oracle Vm Extension Pack. From what I’ve found, that should have been installed from your guide. Once I get VB working, I guess I need another guide to connect to the printer.

      Reply
      • Hi pottzie,

        Install it with following method:

        1. Download Oracle VM Extension Pack. It found also here.
        2. Open VirtualBox
        3. Select File > Preferences… > Extensions
        4. Click Add Package icon
        5. Select package from your disk
        6. Install it with “installer”

        Then try again, did you get it working? And note it’s free only for personal use…

        Reply
    15. Hi Jr i your website very helpful. However iam stuck in situation like them … I did the following

      1.Downloaded here in this http://www.virtualbox.org/wiki/Linux_DownloadsDownload it and Save it in Downloads.
      2. Went the terminal did the: sudo rpm -Uvh cd/location/virtualbox-idownloaded . Press Enter …if it perfectly goes along just fine then..

      3.First Error: Failed dependencies: libSDL-1.2.so.0 is needed by VirtualBox-4.1-4.1.0_73009_fedora14-1.i686

      So i went to the Terminal and type: sudo yum install libSDL-*
      4. Second 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.
      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]
      (Look at /var/log/vbox-install.log to find out what went wrong)
      and so i put to the terminal: yum install gcc kernel-devel kernel-headers

      By this time i went to my menu and found my Oracle VM. However i encountered an error after installing and now running the xp that i installed.

      it says:

      Pop up:

      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.

      so i installed : Go to terminal and type: sudo yum install dkms
      then i typed: sudo /etc/init.d/vboxdrv setup

      still the same error is coming after i typed this : sudo /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 source for kernel 2.6.35.6-45.fc14.i686 cannot be found at
      /lib/modules/2.6.35.6-45.fc14.i686/build or /lib/modules/2.6.35.6-45.fc14.i686/source.
      [FAILED]
      (Failed, trying without DKMS)
      Recompiling VirtualBox kernel modules [FAILED]
      (Look at /var/log/vbox-install.log to find out what went wrong)

      In the log File :
      You can use the –kernelsourcedir option to tell DKMS where it’s located.
      Failed to install using DKMS, attempting to install without
      Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

      then i did this
      sudo yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel

      then the output was still this :
      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]
      (Look at /var/log/vbox-install.log to find out what went wrong)

      i also did the instruction you wrote there which is:
      ## Set KERN_DIR environment variable with following command ##
      KERN_DIR=/usr/src/kernels/`uname -r`

      ## You could verify what happens after this command with following command ##
      echo $KERN_DIR
      ## Output Shouls look something like following ##
      /usr/src/kernels/2.6.35.9-64.fc14.i686

      ## Then export KERN_DIR environment variable ##
      export KERN_DIR

      this is kinda drivin me nuts: help!

      oh btw i checked the kernels/2.6.35.9-64.fc14.i686
      ls it
      and saw the build and source in red. tried to open it and it was empty.

      Reply
      • Hi Roche,

        Could you post output of following command:

        
        uname -a
        
        Reply
        • Hi jr
          here :
          uname -a
          Linux localhost.localdomain 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux

          rpm -qa|grep kernel-
          *kernel-2.6.35.6-45.fc14.i686
          kernel-devel-2.6.35.13-92.fc14.i686
          abrt-addon-kerneloops-1.1.13-2.fc14.i686
          kernel-headers-2.6.35.13-92.fc14.i686

          Reply
          • Hi again Roche,

            The problem seems to be in the fact that you have a different version of the kernel, than kernel-devel and kernel-headers packages are. So you have to upgrade your kernel and reboot…so simply do following:

            
            yum update kernel kernel-devel kernel-headers
            
            reboot
            

            Check that the all versions match and then try to set KERN_DIR again and run:

            
            /etc/init.d/vboxdrv setup
            

            Btw. I recommend to use VirtualBox yum repos and I updated this guide also to VB 4.1 version… :)

            Reply
            • Thank you very much JR. :)

              Reply
1 2 3 4 5 25

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