linux下安装VirtualBox
This is a step by step tutorial on how to get VirtualBox 3 up andrunning on Fedora 12. Specifically, this guide was written usingthe VirtualBox 3.0.8 version and an i386 CPU (32-bit). It can beadapted to upcoming versions and different CPUs (64-bit). The folksat VirtualBox have made it easy to install for Fedora users and I’mgoing to show you how in a few easy steps. Right, open a terminalwindow and let’s get to it...
注意:如果升级内核的话,内核相关的软件同时升级,否则虚拟机内核无法编译导致虚拟机无法打开。
1.) Become Priviledged
su -
2.) Get the VirtualBox repo installed
Code: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 neededpackages)!
Code:yum install -y VirtualBox dkms kernel-devel make automake autoconf gcc
Just so you know, DKMS will “ensure that the VirtualBox host kernelmodules (vboxdrv, vboxnetflt and vboxnetadp) are properly updatedif the linux kernel version changes during the next kernelupdate.”
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 SELinuxPermissions:
usermod -G vboxusers -a usernamechcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so
6.) Run, and enjoy!
Code:???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????VirtualBox