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

目录
相关文章
|
Rust 安全 编译器
如何在 Fedora 上安装 Rust?
如何在 Fedora 上安装 Rust?
569 0
如何在 Fedora 上安装 Rust?
|
弹性计算 NoSQL Redis
ECS安装Fedora CoreOS操作系统版本34
ECS安装Fedora CoreOS操作系统版本34
874 0
ECS安装Fedora CoreOS操作系统版本34
|
存储 Oracle 关系型数据库
fedora安装静态c和c++库
fedora安装静态c和c++库
|
Linux 测试技术 数据安全/隐私保护
Fedora32 Server版安装与初体验
Fedora32 Server版安装与初体验
884 0
Fedora32 Server版安装与初体验
|
Oracle Java 关系型数据库
在 CentOS/Fedora 下安装 JAVA 环境
在 CentOS/Fedora 下安装 JAVA 环境介绍本文介绍如何在 CentOS 7(6/6.5)、 Fedora、RHEL 上安装 Java。Java是一个流行的软件平台,允许您运行Java应用程序。
2533 0
|
Python
Fedora下利用第三方源rpm方式安装pycharm
pycharm官方提供了不同平台下的安装包 Installation Instructions Copy the pycharm-5.
2062 0
|
Linux
Fedora升级到4.3.4内核后virtualbox执行/sbin/rcvboxdrv setup报Bad argument setup
[t@bjb0541 ~]$ uname -a Linux bjb0541 4.3.4-300.fc23.x86_64 #1 SMP Mon Jan 25 13:39:23 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux          升级内核...
1207 0
|
Shell
fedora 16 安装 Virtualbox Extension Pack失败,错误代码127
       最近看到Virtualbox有更新放出,好像剪贴板功能有更新,这个是我所需要的,于是下载来升级VirtualBox-4.1-4.1.10_76795_fedora16-1.i686.rpm。
993 0
|
Linux 虚拟化
fedora15下安装 VMWare Workstation 7.1.4 for Linux
[talen@fedora ~]$ uname -r2.6.40.3-0.fc15.i686下载补丁http://linux-knowledgebase.com/userFiles/files/vmware2_6_39patchv3.
1003 0