您的位置:首页 > Web前端

fedora12下安装VirtualBox

2010-07-10 17:56 309 查看
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

Code:

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 needed packages)!

Code:

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:

Code:

/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:

Code:

usermod -G vboxusers -a usernamechcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so

6.) Run, and enjoy!

Code:

VirtualBox


2010-04-15

最近更新fedora12的内核后重新安装virtual box,系统提示有错误:提示查看/var/log/vbox-install.log Deleting module version: 3.0.14

completely from the DKMS tree. Done.

removing old DKMS module vboxnetadp version 3.0.14 Error! There are no instances of module: vboxnetadp

3.0.14 located in the DKMS tree. Creating symlink /var/lib/dkms/vboxnetadp/3.0.14/source ->

/usr/src/vboxnetadp-3.0.14 DKMS: add Completed.

后来发现我的内核kernel版本不一致,

用yum -y install kernel*升级了相关的内核软件,重新启动就ok了。

[root@fly ~]# rpm -qa |grep kernel*

abrt-addon-kerneloops-0.0.11-1.fc12.i686

kernel-PAE-devel-2.6.32.11-99.fc12.i686

kernel-PAE-2.6.32.11-99.fc12.i686

kernel-devel-2.6.32.11-99.fc12.i686

abrt-plugin-kerneloopsreporter-0.0.11-1.fc12.i686

kernel-firmware-2.6.32.11-99.fc12.noarch

kernel-PAE-2.6.31.5-127.fc12.i686

kernel-headers-2.6.32.11-99.fc12.i686

[root@fly ~]# /etc/init.d/vboxdrv setup

Stopping VirtualBox kernel module [确定]

Removing old VirtualBox netadp kernel module [确定]

Removing old VirtualBox netflt kernel module [确定]

Removing old VirtualBox kernel module [确定]

Recompiling VirtualBox kernel module [确定]

Starting VirtualBox kernel module [确定] 成功启动!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: