fedora12下安装VirtualBox

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                                      [确定] 成功启动!





本文转自 tiger506 51CTO博客,原文链接:http://blog.51cto.com/tiger506/347382,如需转载请自行联系原作者

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值