Debian Linux:安装Virtualbox虚拟化软件
时间:2020-01-09 10:37:57 来源:igfitidea点击:
如何在Debian Linux 6操作系统下为家庭使用安装VirtualBox虚拟化软件?
Oracle VM VirtualBox(以前称为Sun VirtualBox)是一个虚拟化软件包。
您需要将VirtualBox作为应用程序安装在现有Linux主机操作系统上。
安装后,您可以添加客户机操作系统,例如MS-Windows,Fedora,Ubuntu,FreeBSD,OpenBSD等。
选项#1:使用apt-get命令安装VirtualBox
以root用户身份执行以下命令:
# apt-get install virtualbox
输出示例:
Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: radvd Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libvncserver0 virtualbox-dkms virtualbox-qt Suggested packages: libvncserver0-dbg virtualbox-guest-additions-iso vde2 The following NEW packages will be installed: libvncserver0 virtualbox virtualbox-dkms virtualbox-qt 0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded. Need to get 21.6 MB of archives. After this operation, 65.5 MB of additional disk space will be used. Do you want to continue [Y/n]? y
选项2:使用Oracle提供的二进制文件安装VirtualBox
此选项允许您安装最新版本。
您需要在此处下载软件包。
请注意,软件包体系结构必须与Linux内核体系结构匹配。
例如,如果您运行的是64位内核,则安装适当的AMD64软件包(无论您使用的是Intel还是AMD CPU都没有关系)。
您可以使用wget命令下载.deb文件:
$ cd /tmp $ wget http://download.virtualbox.org/virtualbox/4.1.14/virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb
输出示例:
--2012-05-08 00:42:52-- http://download.virtualbox.org/virtualbox/4.1.14/virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb Resolving download.virtualbox.org... 137.254.16.69 Connecting to download.virtualbox.org|137.254.16.69|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 70360054 (67M) [application/x-debian-package] Saving to: `virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb' 100%[==========================================================>] 7,03,60,054 469K/s in 2m 32s 2012-05-08 00:45:26 (451 KB/s) - `virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb' saved [70360054/70360054]
您可以使用dpkg命令安装.deb软件包,输入:
$ sudo dpkg -i virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb
或者
# dpkg -i virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb
输出示例:
Selecting previously deselected package virtualbox-4.1. (Reading database ... 196053 files and directories currently installed.) Unpacking virtualbox-4.1 (from virtualbox-4.1_4.1.14-77440~Debian~squeeze_amd64.deb) ... Setting up virtualbox-4.1 (4.1.14-77440~Debian~squeeze) ... Adding group `vboxusers' (GID 124) ... Done. Stopping VirtualBox kernel modules:. Uninstalling old VirtualBox DKMS kernel modules:. Trying to register the VirtualBox kernel modules using DKMS:. Starting VirtualBox kernel modules:. Processing triggers for shared-mime-info ... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Processing triggers for hicolor-icon-theme ... Processing triggers for python-central ...
如何启动Virtualbox?
在GNOME中,访问题描述:
GNOME menu > Applications > System tools > VirtualBox OSE
或者
GNOME menu > Applications > System tools > Oracle VM VirtualBox
在KDE中,访问OSE:
KDE menu > System > VirtualBox OSE
或者
KDE menu > System > Oracle VM VirtualBox
您也可以使用X终端输入以下命令:
$ virtualbox &