Install VirtualBox 4.1.8 on Fedora 16/15, CentOS/Red Hat (RHEL) 6.2/5.7
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:
- Windows 3.x
- Windows NT 4.0
- Windows 2000
- Windows XP
- Windows Server 2003
- Windows Vista
- Windows 7
- DOS
- Linux (2.4, 2.6, 3.0, 3.1)
- Solaris
- OpenSolaris
- OpenBSD
This guide shows howto install VirtualBox 4.1 (currently 4.1.8) on Fedora 16/15/14/13/12, CentOS 6.2/6.1/6/5.7, Red Hat (RHEL) 6.2/6.1/6/5.7. This howto uses Virtual Box yum repositories.
1. Change to root User
su - ## OR ## sudo -i
2. Install Fedora or RHEL Repo Files
cd /etc/yum.repos.d/ ## Fedora 16/15/14/13/12 users wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo ## CentOS 6.1/6/5.7 and Red Hat (RHEL) 6.1/6/5.7 users wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
3. Update latest packages and check your kernel version
Update packages
yum update
Check that that you are running latest installed kernel version
Output of following commands version numbers should match:
rpm -qa kernel |sort |tail -n 1 uname -r
Note: If you got kernel update or run older kernel than newest installed then reboot:
reboot
4. Install following dependency packages
CentOS 5 and Red Hat (RHEL) 5 needs EPEL repository, install it with following command:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms ## PAE kernel users install ## yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms
5. Install VirtualBox Latest Version 4.1 (currently 4.1.8)
yum install VirtualBox-4.1
Note:
This command create automatically vboxusers group and VirtualBox user must be member of that group.
This command also build needed kernel modules.
Rebuild kernel modules with following command:
/etc/init.d/vboxdrv setup ## OR ## service vboxdrv setup
6. Add VirtualBox User(s) to vboxusers Group
Replace user_name with your own user name or some another real user name.
usermod -a -G vboxusers user_name
7. Start VirtualBox
Use launcher from menu or simply run:
VirtualBox
Troubleshooting
If you have problems with KERN_DIR parameter or your kernel directory is not automatically detected then set KERN_DIR environment variable manually, using following method:
## Current running kernel on Fedora ## KERN_DIR=/usr/src/kernels/`uname -r` ## Current running kernel on CentOS and Red Hat (RHEL) ## KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m` ## Fedora example ## KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686 ## CentOS and Red Hat (RHEL) example ## KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64 ## Export KERN_DIR ## export KERN_DIR
Check also:
Install VirtualBox Guest Additions on Fedora, CentOS, Red Hat (RHEL)
Related posts:
- Install VirtualBox Guest Additions on Fedora 16/15, CentOS/RHEL 6/5.7
- Install Sun/Oracle Java JDK/JRE 7u2 on Fedora 16/15, CentOS/RHEL 6.2/5.7
- Install OpenOffice 3.3.0/3.4.0 on Fedora 16/15, CentOS/RHEL 6.2/5.7
- Install MySQL 5.5.20 on Fedora 16/15, CentOS/Red Hat (RHEL) 6.2/5.7
- Install Sun/Oracle Java JDK/JRE 6u30 on Fedora 16/15, CentOS/RHEL 6.2/5.7
167 Comments
Leave a Comment
Trackbacks/Pingbacks
- Howto Install VirtualBox (with yum) on Fedora 12, CentOS 5.4, Red … | Just linux! - [...] Go here to read the rest: Howto Install VirtualBox (with yum) on Fedora 12, CentOS 5.4, Red … [...]
- Upgrade to Fedora 13 from Fedora 12 with Preupgrade | if not true then false - [...] 10 on Fedora 13Install Sun Java (JDK, JRE) on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install ...
- Fedora NetInstall (Net Install) with gPXE and BFO (boot.fedoraproject.org) | if not true then false - [...] on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install Adobe (Acrobat PDF) Reader on Fedora 13Install VirtualBox ...
- Install VirtualBox Guest Additions on Fedora 13, CentOS 5.5, Red Hat (RHEL) 6 | If Not True Then False - [...] 6. Reboot guest systemrebootThen VirtualBox Guest Additions install is ready.Check also:Install VirtualBox (with yum) on Fedora, CentOS, Red Hat ...
- CentOS 5.5 Netinstall – Network Installation | If Not True Then False - [...] 5.5Install Sun/Oracle Java (JDK, JRE) 6 on CentOS 5.5Install Adobe AIR 1.5 and 2 on CentOS 5.5Install VirtualBox (with ...
- Como instalar o VirtualBox no Fedora « tiagopassos.com - [...] if !1 0 Compartilhe: fedora, linux, máquina virtual, virtualbox, [...]
- Delicious Bookmarks for March 22nd through March 23rd « Lâmôlabs - [...] Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6 – March 22nd ( tags: virtualbox fedora centos ...
- Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6 « Записки Миханика. - [...] Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6. Рубрика: C других сайтов, Linux, Новости ...
- How To Install VirtualBox In Fedora | JF Agno Freelance Web Consultant and Web Developer in Davao Philippines - [...] Thats it simple right here is the original source click here [...]
Thanks for the guide!
FYI,
I know you don’t talk about installing the extension packs here but I thought it would be relevant to post my issue/solution. I had an issue installing the extension pack on F16x86. Turns out that there is an issue with bash (see: http://fedoraforum.org/forum/showthread.php?t=272450). So when installing the extension pack, VirtualBox gives some cryptic error about no shell something or other.
The solution is to run:
yum reinstall bash
Then try reinstalling the extension pack.
I had the same issue (F16 x86_64) and can confirm that this worked for me.. :)
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.6
——————————
Deleting module version: 4.1.6
completely from the DKMS tree.
——————————
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/4.1.6/source ->
/usr/src/vboxhost-4.1.6
DKMS: add Completed.
Failed to install using DKMS, attempting to install without
Makefile:181: *** Error: KERN_DIR does not point to a directory. Stop.
Hi acc,
Did you check this guide troubleshooting section?
Worked great thanks
i’ve follow all tutorial mr.JR …
btw here
uname -r
3.1.0-7.fc16.x86_64
[root@Dagga bob]# KERN_DIR=/usr/src/kernels/3.1.0-7.fc16.x86_64
[root@Dagga bob]# service vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.1.0-7.fc16.x86_64 cannot be found at
/lib/modules/3.1.0-7.fc16.x86_64/build or /lib/modules/3.1.0-7.fc16.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)
[root@Dagga bob]# uname -r
3.1.0-7.fc16.x86_64
[root@acc]# export KERN_DIRN
[root@acc]#KERN_DIR=/usr/src/kernels/3.1.0-7.fc16.x86_64
[root@acc]# service vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.1.0-7.fc16.x86_64 cannot be found at
/lib/modules/3.1.0-7.fc16.x86_64/build or /lib/modules/3.1.0-7.fc16.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)
Hi acc,
First make sure that you have latest packages and needed dependencies on your system:
Then install and setup VirtualBox:
Do you get still some errors?
Great …. Ty for helping me Mr.JR …
You are welcome, nice to hear that you get it working! :)
Works great, thanks!
I’m constantly getting the same error again and again. I’m using Fedora 15 and have followed this tutorial 3 times and read all comments yet still not joy.
Running /etc/init.d/vboxdrv setup give me an output off
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules/etc/init.d/vboxdrv: line 304: /var/log/vbox-install.log: Permission denied
[ 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/etc/init.d/vboxdrv: line 327: /var/log/vbox-install.log: Permission denied
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules/etc/init.d/vboxdrv: line 331: /var/log/vbox-install.log: Permission denied
[FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
My vbox-install.log has over 250 lines, didn’t fancy pasting it here. Anyway I can get it to you to sort this annoying problem?
Hi Speedy,
Are you running /etc/init.d/vboxdrv setup as root or as normal user? You shouldn’t get any Permission denied errors when you run it as root.
thank you
Same problem, followed the instructions several times, using root, everything is up-to-date. vbox-install.log is also with over 200 lines:
[root@victor yum.repos.d]# /etc/init.d/vboxdrv setup
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 DKMSError! Bad return status for module build on kernel: 2.6.41.1-1.fc15.i686.PAE (i686)
Consult /var/lib/dkms/vboxhost/4.1.6/build/make.log for more information.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
Hi Victor,
Please post output of following command:
And you can paste whole /var/lib/dkms/vboxhost/4.1.6/build/make.log and /var/log/vbox-install.log here (I can shorten/remove those later, if needed). :)
output:
gcc-4.6.1-9.fc15.i686
dkms-2.2.0.2-1.fc15.noarch
/var/lib/dkms/vboxhost/4.1.6/build/make.log:
DKMS make.log for vboxhost-4.1.6 for kernel 2.6.41.1-1.fc15.i686.PAE (i686)
Thu Dec 1 11:18:05 EET 2011
make: Entering directory `/usr/src/kernels/2.6.41.1-1.fc15.i686.PAE’
LD /var/lib/dkms/vboxhost/4.1.6/build/built-in.o
LD /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/alloc-r0drv.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
/var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockKernel’:
/var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:910:12: warning: comparison between pointer and
/var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:910:58: warning: comparison between pointer and
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/handletable.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/handletablectx.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/thread.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/RTStrCopyP.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformat.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformatrt.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformattype.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strprintf.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strtonum.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/handletable.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/handletablectx.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/thread.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/RTStrCopyP.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformat.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformatrt.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformattype.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strprintf.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strtonum.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/handletable.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/handletablectx.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/misc/thread.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/RTStrCopyP.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformat.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformatrt.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strformattype.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strprintf.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxdrv/common/string/strtonum.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/linux/SUPR0IdcClient-linux.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/math/gcc/divdi3.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/math/gcc/moddi3.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/math/gcc/qdivrem.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/math/gcc/udivdi3.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/math/gcc/umoddi3.o
LD [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxnetflt/vboxnetflt.o
LD /var/lib/dkms/vboxhost/4.1.6/build/vboxpci/built-in.o
CC [M] /var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.o
/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.c:39:28: fatal error: asm/amd_iommu.h: No such file or direct
compilation terminated.
make[2]: *** [/var/lib/dkms/vboxhost/4.1.6/build/vboxpci/linux/VBoxPci-linux.o] Error 1
make[1]: *** [/var/lib/dkms/vboxhost/4.1.6/build/vboxpci] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/4.1.6/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.41.1-1.fc15.i686.PAE’
/var/log/vbox-install.log:
ninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.6
——————————
Deleting module version: 4.1.6
completely from the DKMS tree.
——————————
Done.
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxhost/4.1.6/source ->
/usr/src/vboxhost-4.1.6
DKMS: add Completed.
Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area….
make KERNELRELEASE=2.6.41.1-1.fc15.i686.PAE -C /lib/modules/2.6.41.1-1.fc15.i686.PAE/build M=/var/lib/dkms/vboxhost/4.1.6/bu
Failed to install using DKMS, attempting to install without
Makefile:181: *** Error: KERN_DIR does not point to a directory. Stop.
i assume this ” KERN_DIR does not point to a directory.” could be an issue, not sure.
thanks anyway.
Hi Victor,
This actually found on troubleshooting section, but try following (as root):
Hi,Jr
Nope, same problem :(
Strange, but I just checked your make.log error message again and looks like that amd_iommu.h file is missing on kernel sources.
Please run first following command (as root):
updatedbAnd then post output of following commands here:
i’m new to linux, so maybe there is a obvious error and i don’t see it. or maybe the path to the right kernel isn’t set.
locate amd_iommu.h runs well, no error
host -a
Linux victor.****-**.*** 2.6.41.1-1.fc15.i686.PAE #1 SMP Fri Nov 11 21:43:42 UTC 2011 i686 i686 i386 GNU/Linux
rpm -qa kernel*
kernel-PAE-2.6.41.1-1.fc15.i686
kernel-devel-2.6.41.1-1.fc15.i686
kernel-headers-2.6.41.1-1.fc15.i686
kernel-PAE-2.6.40.6-0.fc15.i686
kernel-PAE-2.6.40.4-5.fc15.i686
kernel-2.6.41.1-1.fc15.i686
kernel-PAE-devel-2.6.41.1-1.fc15.i686
There :)
Thanks and no problems Victor, let’s try to together solve this problem. :)
So you run first updatedb command as root?
And then locate amd_iommu.h command doesn’t give any output?
Let’s check following things also, please post output of following commands also:
Yes, i did that, as root :). No output :)
ls -la /usr/src/kernels/*/arch/x86/include/asm/*iommu.h :
-rw-r–r–. 1 root root 293 Oct 24 10:10 /usr/src/kernels/2.6.41.1-1.fc15.i686/arch/x86/include/asm/iommu.h
-rw-r–r–. 1 root root 293 Oct 24 10:10 /usr/src/kernels/2.6.41.1-1.fc15.i686.PAE/arch/x86/include/asm/iommu.h
uname -r :
2.6.41.1-1.fc15.i686.PAE
echo $KERN_DIR :
/usr/src/kernels/2.6.41.1-1.fc15.i686.PAE
Thanks again. :)
I just checked that the amd_iommu.h file location is changed on Kernel 2.6.41 and looks like that the VirtualBox try to use old location. One quick / temporary fix for this could be symlinking new amd-iommu.h to old amd_iommu.h location with following command:
Then following command, should return one row (which is symbolic link to /usr/src/kernels/2.6.41.1-1.fc15.i686.PAE/include/linux/amd-iommu.h):
Then you could try to run (as root):
Or if this fail then reboot your system and run again all following commands (as root):
Please let me know, is it working? :)
Yeeeeeesssss, it’s working! Thank you very very much, JR!
Excellent! :D You are welcome! :)
And if Fedora 15 get kernel update and it breaks your VirtualBox then following might be usefull:
1. Reboot with new kernel
2. Create new symlink
3. Run vboxdrv setup with KERN_DIR parameter
;D
Hi, I’m getting this error after following the tutorial.
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.1.0-7.fc16.i686) or it failed to load. Please recompile the kernel module and install it by sudo /etc/init.d/vboxdrv setup
I’ve followed these steps:
KERN_DIR=/usr/src/kernels/`uname -r`
export KERN_DIR
/etc/init.d/vboxdrv setup
any suggestions? part of the warning msg says it can’t run VMs until this is fixed :(
Hi GDora,
Please post output of following commands:
Hi JR,
The rpm output:
kernel-3.1.0-7.fc16.i686
kernel-3.1.2-1.fc16.i686
kernel-devel-3.1.2-1.fc16.i686
kernel-headers-3.1.2-1.fc16.i686
The uname output:
Linux local.domain 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686 i386 GNU/Linux
Thanks for helping, really appreciate it.
Your problem looks very simple, you are running 3.1.0-7.fc16.i686 kernel and your installed version of kernel-devel and
kernel-headers packages is 3.1.2-1.fc16.i686.
So just reboot your system, with newest kernel 3.1.2-1.fc16.i686 and then run following commands again:
Ok I’m happy to hear it’s a simple solution (hopefully!) but alas, I’m somewhat a newb… how do I boot with the newest kernel? normal reboot?
Could I trouble you to explain exactly what info I’ve posted? I mean what does the rpm output tell you? why is the first line different to the second one?
Thanks again
Yes normal reboot, I think that there is 5 second delay on default on grub where you can select kernel, but normally it’s first one. So currently select 3.1.2-1.fc16.i686, because it’s latest now. :)
Yes I can explain:
rpm output 2 first rows tells that you have two different kernel versions installed and 2 last rows tells that which version of kernel-devel and kernel-headers packages you have. :)
Then uname -a command tells info about your currently running system and example kernel version, which differ from installed kernel-devel and kernel-headers packages.
THANKS! will check results when I get home.
Worked like a bomb! Thank you kindly :)
Excellent! You are welcome! :)
Hi… me again. One re-install of F16 later (unrelated matter – don’t even ask) and I’m stuck at the same point – failing making kernels.
The rpm-qa kernel* |sort output now is:
kernel-3.1.0-7.fc16.i686
kernel-3.1.2-1.fc16.i686
The uname -a output is:
Linux localhost.localdomain 3.1.2-1.fc16.i686 #1 SMP Tue Nov 22 08:56:28 UTC 2011 i686 i686 i386 GNU/Linux
The logfile error from /var/log/vbox-install.log:
Makefile:181: *** Error: KERN_DIR does not point to a directory. Stop.
I’ve tried rebooting… not sure what now?
Oh, found a solution. I found this command in a book: yum install make automake autoconf gcc kernel-devel dkms
Worked fine after that :)
Excellent! :)
Great site. I have same issue : unable to run vboxdrv setup using dkms after upgrading kernel (2.6.41.1-1.fc15.x86_64). I use the symbolik link tip (ln -s /usr/src/kernels/`uname -r`/include/linux/amd-iommu.h /usr/src/kernels/`uname -r`/arch/x86/include/asm/amd_iommu.h) and it’s run.
A suggestion : is it possible to begin with the most recent comments first ?
Hi Berni,
Nice to hear that you got it working… :)
Good suggestion, it is possible yes, but I have to also think some other changes too, like “Leave a Comment” form position/redesign and maybe paging for comments… :)
Thank you, worked like a charm on centos 6 x64!
this is the error i get when running /etc/init.d/vboxdrv setup:
[root@choy-notebook arch]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Removing old VirtualBox pci kernel module [ 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 DKMSError! echo
Your kernel headers for kernel 3.1.5-2.fc16.i686.PAE cannot be found at
/lib/modules/3.1.5-2.fc16.i686.PAE/build or /lib/modules/3.1.5-2.fc16.i686.PAE/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [ OK ]
Starting VirtualBox kernel modules [FAILED]
(modprobe vboxdrv failed. Please use ‘dmesg’ to find out why)
how do i troubleshoot that? thanks!
i just got it working! thanks for this tutorial! i’m now performing a minimal Fedora 16 install on Virtualbox. sweet! :-D
Hi hoychoy,
Excellent to hear that you got it working! :D
Perfect instructions, i installed it on Fedora 16 and it is running as it should,
thanks for posting instructions
Cheers
HI
I’m not regular user of fedora..
but now i want to use PuTTY with fedora-16 installed on my virtual box..
when i type ifconfig it shows me lo and p2p1 connection
it shows me inet add instead of ip adress
when i try to insert that address in puTTY
it gives me Timeout error
As suggested i tried many ways like disabling firewall..
But no use..
Please help me out with this.. M working on big project and this shit happened.. Please suggest.. What to do?
Hi chaitanya,
First check your VirtualBox network card configuration? You should get ip for your interface.
Next check your Fedora 16 network configuration, is it using DHCP or static network settings?
RTR3Init failed with rc=-1912 (rc=-1912)
The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing
‘/etc/init.d/vboxdrv setup’
may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
how to remove this error please help.
thanx
Hi Kunal,
Could you post output of following command:
Did you tried to run?
usermod -a -G vboxusers user_name
returns
usermod: user ‘user_name’ does not exist
On a fresh Fedora 16 install. Thanks!
Hi James,
You should use real user name (like your own user name):
I confirm successful installation and it works fine.
Just aside note that needed packages are kernel-devel(obligatory) and dmks(optional – works without this, but required for recompiling VB modules along side with the linux kernel, other way it should be done manually with ‘service vboxdrv setup’).
yum install kernel-devel
yum install dmks
Salutations!
To correct myself : dkms
yum install dkms
sorry :)
Hi Igor,
Actually both kernel-devel and dkms are on dependency packages list on step 4. Full list is binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms or PAE kernel users yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms… :)
I am having a problem installing Virtualbox under Fedora 14 (Amahi). I have followed every step in your guide but I cannot manage to rebuild kernel modules. Whenever I try to execute
/etc/init.d/vboxdrv setupI have tried your troubleshooting guide as well but I keep getting the following error message:
[root@amahi-server ~]# KERN_DIR=/usr/src/kernels/`uname -r`
[root@amahi-server ~]# export KERN_DIR
[root@amahi-server ~]# /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.x86_64 cannot be found at
/lib/modules/2.6.35.6-45.fc14.x86_64/build or /lib/modules/2.6.35.6-45.fc14.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)
What can be wrong? Could you give me a hand to figure this out? Cheers!
I don’t know what was wrong. I tried several of the tips listed above, rebooted the system and voila… it worked! I manage to run /etc/init.d/vboxdrv setup without errors. I installed my first virtual machine in Fedora 14/Amahi. I now have an up and running virtual machine with Windows 7 x64 running inside Fedora 14/Amahi. This is amazing stuff! Thank you very much.
The basic install worked for me. I ended up here and realized I had forgotten to do a yum install gcc. All good now!
This has worked perfectly. Many thanks!