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:
2.) Get the VirtualBox repo installed
Code:
3.) Install VirtualBox (along with a few other needed packages)!
Code:
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:
If you’re having issues here, try installing “kernel-PAE-devel”
5.) Add yourself to the “vboxusers” group and fix the SELinux Permissions:
Code:
6.) Run, and enjoy!
Code:
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 [确定] 成功启动!
注意:如果升级内核的话,内核相关的软件同时升级,否则虚拟机内核无法编译导致虚拟机无法打开。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 [确定] 成功启动!
相关文章推荐
- 在Virtualbox下安装Fedora 12图形界面不显示问题
- fedora 12 x64 安装virtualbox
- 在RHEL/CentOS 6.4/5.9和Fedora 18-12上安装VirtualBox ...
- VirtualBox安装Fedora文件共享
- vbox-安装fedora12,启动出现fatal:int18:boot failure
- fedora12 下安装飞信
- Fedora12 安装BCM4312无线网卡驱动
- fedora12下安装ntop
- fedora下安装VirtualBox
- fedora18安装virtualbox
- xpwin7fedora12/ubuntu三系统安装
- Fedora 12中NVIDIA显卡的安装
- Fedora 12 安装nvidia显卡驱动
- Windows下 Fedora 12 硬盘安装 的方法
- HP mini 3G上网本上安装Fedora 12的失败经历
- Linux Fedora12 下,安装SAMBA
- Fedora23使用Oracle官方软件源安装VirtualBox
- fedora 14下安装virtualbox
- fedora12 的NVIDIA驱动安装
- Fedora 12无法联网情况下安装gcc