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,如需转载请自行联系原作者

目录
相关文章
|
5月前
|
Shell Linux 数据安全/隐私保护
virtualbox+centos8安装 2
virtualbox+centos8安装
33 0
|
5月前
virtualbox+centos8安装 1
virtualbox+centos8安装1
65 0
|
Ubuntu Oracle 关系型数据库
|
Web App开发 Python 开发工具
安装 fedora 之后
下载zsh,并安装oh-my-zsh dnf install zsh -y 到github的oh-my-zsh上按照教程安装oh-my-zsh,配置主题为minimal,这个是个人比较喜欢的主题,因为比较简洁 下载pyenv和virtualenv 到github的pyenv上安装pyenv 到...
1038 0
|
Linux 虚拟化 编解码
在VirtualBox中安装ArchLinux
如果你准备在虚拟机中安装Ubuntu、Fedora这几个比较著名的大型Linux,那么VMware Workstation是一个不错的选择,在安装这几个Linux的过程中会自动安装VMware Tools,这样在虚拟机安装完成之后,就可以马上使用共享剪贴板、文件拖拽、共享文件夹、虚拟机分辨率自动跟随窗口大小这几个高级特性。
1420 0
|
Linux KVM 虚拟化
|
网络协议 Linux 网络安全