VirtualBox Installation

发布时间:2012-09-30 13:45:57,浏览3984次,转载自:openSUSE

从openSUSE软件源安装

注意:VirtualBox的安装与您所使用的openSUSE版本相关。

Susemini.png
Version:
10.3+
以下说明适用于openSUSE 10.3或更新的版本


您可以在以下位置找到VirtualBox 开源版本

请确认您已添加以上的任一软件源(您可以在YaST的软件源中查看此项)。

  • 使用YaST的安装:

您可以使用YaST中的"软件管理"功能来安装VirtualBox的软件包。另外,您还可以使用您喜欢的其他包管理程序来安装VirtualBox开源版本(请注意软件的依赖关系)。

  • virtualbox-kmp 包含有mandatory vboxdrv 核心驱动
  • Xalan-c 软件包
  • Xerces-c 软件包

请阅读本文"后续步骤"部分以开始运行VirtualBox。您还可以选择阅读"从VirtualBox主页安装"部分来安装VirtualBox非开源版本。

Susemini.png
Version:
10.2
以下说明仅适用于openSUSE 10.2版本


在openSUSE 10.2上安装VirtualBox之前,您需要先添加一个软件源。 您可以在openSUSE编译服务的源:Virtualization:/VirtualBox中找到VirtualBox开源版本,但该软件源中的VirtualBox-kmp软件包缺少mandatory vboxdrv,同时还有错误存在。

请使用

rpm -e --noscripts VirtualBox-kmp-default

命令来移除损坏的软件包。

您还可以使用home:/dirkmueller 中提供的正确的供openSUSE 10.2使用的VirtualBox。

请继续阅读以下文字,了解安装VirtualBox非开源版本的安装方法。

 

从VirtualBox主页安装(开源版本与非开源版本)

自被SUN收购之后,VirtualBox的下载页面即被重定向到SUN的相应下载页面。您可以在该页面下载到适用于openSUSE 和 SLED的最新的VirtualBox软件包和源代码。

下载VirtualBox前的必要工作

无论您是使用已编译的二进制文件安装还是使用源代码来安装,之前您都需要安装以下的软件包:

  • kernel-source
  • kernel-syms
  • Xalan-c
  • Xerces-c
  • gcc
  • make

通过二进制文件来安装VirtualBox

Simply download the package from the download page of VirtualBox and install it. See Package Management for more information about installing software under openSUSE.

When everything goes well, VirtualBox should be installed in the /opt directory.

Next, create the required kernel module by executing the command:

/etc/init.d/vboxdrv setup

When VirtualBox is started at this point, expect VirtualBox to give this warning "Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.". Read enable USB support in order to activate USB.

通过源代码来安装VirtualBox

请阅读VirtualBox的官方编译指南

Post-Installation

Though VirtualBox will start after you've just installed it, there are a few other necessary steps to complete before you can really get the most out of VirtualBox. These include:

  • Making sure that the vboxdrv driver is loaded.

In the terminal (as root), execute the following command:

modprobe vboxdrv
  • Add your user to the vboxusers group:
groupmod --add-user <login> vboxusers

Or open YaST -> Security and Users -> UserManagement, and edit your user and add them to the vboxusers group. To do this, select your user name, click on Edit, switch to the Details tab and check the vboxusers check box.

You should then be able to run VirtualBox just fine!

Getting vboxdrv module to auto load (openSUSE OSE package only)

The version of VirtualBox OSE provided in the openSUSE OSS repo comes with its own kernel module so the vboxdrv setup command does not add this. It also does not set up the kernel module to auto load at system start up, if this is how you like it then ignore this section and have fun.

This can be done by one of three ways:

  • The first way is by using insserv to add the module
insserv vboxdrv
  • The second way is by going into system services (runlevel) and enabling vboxdrv

YaST -> System > System Services (runlevel)-> vboxdrv and select the enable button and finish.

  • The last way is by adding it to the Modules_loaded_on_boot setting under sysconfig editor

YaST -> System -> /etc/sysconfig editor -> System -> Kernel -> MODULES_LOADED_ON_BOOT and just type in vboxdrv in the input box.

No matter which way you go with this will get the vboxdrv kernel module to auto load on boot of the system.

评论