日期:2014-05-16 浏览次数:20665 次
This is a step by step tutorial on how to get VirtualBox 3 up and
running on Fedora 12. Specifically, this guide was written using
the VirtualBox 3.0.8 version and an i386 CPU (32-bit). It can be
adapted to upcoming versions and different CPUs (64-bit). The folks
at VirtualBox have made it easy to install for Fedora users and I’m
going to show you how in a few easy steps. Right, open a terminal
window and let’s get to it...
注意:如果升级内核的话,内核相关的软件同时升级,否则虚拟机内核无法编译导致虚拟机无法打开。
1.) Become Priviledged
su -
2.) Get the VirtualBox repo installed
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo && cp virtualbox.repo /etc/yum.repos.d/
3.) Install VirtualBox (along with a few other needed packages)!
yum install -y VirtualBox dkms kernel-devel make automake autoconf gcc
Just so you know, DKMS will “ensure that the VirtualBox host kernel
modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated
if the linux kernel version changes during the next kernel
update.”
4.) Run the setup file for VirtualBox:
/etc/init.d/vboxdrv setup
If you’re having issues here, try installing
“kernel-PAE-devel”
5.) Add yourself to the “vboxusers” group and fix the SELinux
Permissions:
usermod -G vboxusers -a username chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so
6.) Run, and enjoy!
VirtualBox