文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

如何在Linux系统里安装Virtual Box的详细步骤

2023-06-04 21:50

关注

这篇文章主要为大家展示了“如何在Linux系统里安装Virtual Box的详细步骤”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“如何在Linux系统里安装Virtual Box的详细步骤”这篇文章吧。

试图在Linux 服务器上安装Kyma时,遇到如下错误消息:

E1009 23:51:37.685891 358 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks.

: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path.

Retrying.

E1009 23:51:37.686942 358 start.go:180] Error starting host: Error creating host: Error executing step: Running precreate checks.

: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path

================================================================================

An error has occurred. Would you like to opt in to sending anonymized crash

information to minikube to help prevent future errors?

To opt out of these messages, run the command:

minikube config set WantReportErrorPrompt false

================================================================================

Please enter your response [Y/n]:

如何在Linux系统里安装Virtual Box的详细步骤

按照提示,我需要先安装Virtual Box。

VirtualBox 是一款开源虚拟机软件。VirtualBox 是由德国 Innotek 公司开发,由Sun Microsystems公司出品的软件,使用Qt编写,在 Sun 被 Oracle 收购后正式更名成 Oracle VM VirtualBox。Innotek 以 GNU General Public License (GPL) 释出 VirtualBox,并提供二进制版本及 OSE 版本的代码。使用者可以在VirtualBox上安装并且执行Solaris、Windows、DOS、Linux、OS/2 Warp、BSD等系统作为客户端操作系统。现在则由甲骨文公司进行开发,是甲骨文公司xVM虚拟化平台技术的一部份。

如何在Linux系统里安装Virtual Box的详细步骤

这个url提供Virtual Box的安装:

https://www.virtualbox.org/wiki/Linux_Downloads

进入之后,根据Linux不同类型下载对应的安装包:

如何在Linux系统里安装Virtual Box的详细步骤

因为我用的是Oracle RHEL,所以使用RPM-based Linux distributions区域的安装指令:

如何在Linux系统里安装Virtual Box的详细步骤

首先下载oracle_vbox.asc文件到本地:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc

再执行import:

sudo rpm --import oracle_vbox.asc

cd 进入目录:/etc/yum.repos.d

新建一个文件virtualbox.repo, 输入如下内容:

1 [virtualbox]

2 name=Oracle Linux / RHEL / CentOS-如何在Linux系统里安装Virtual Box的详细步骤basearch - VirtualBox

3 baseurl=http://download.virtualbox.org/virtualbox/rpm/el/如何在Linux系统里安装Virtual Box的详细步骤basearch

4 enabled=1

5 gpgcheck=1

6 repo_gpgcheck=1

7 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

然后执行命令行yum install VirtualBox-5.2:

打印出的Fingerprint和网站上的一致:7B0F AB3A 13B9 0743 5925 D9C9 5442 2A4B 98AB 5139

选择Y:

如何在Linux系统里安装Virtual Box的详细步骤

yum处理并下载依赖:

如何在Linux系统里安装Virtual Box的详细步骤如何在Linux系统里安装Virtual Box的详细步骤如何在Linux系统里安装Virtual Box的详细步骤

依赖分析计算结果:有超过25个依赖包需要下载,总共需要下载80M,安装大小182M。选择Y继续:

如何在Linux系统里安装Virtual Box的详细步骤

Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

virtualbox/7Server/x86_64/signature | 181 B 00:00:00

Retrieving key from https://www.virtualbox.org/download/oracle_vbox.asc

Importing GPG key 0x98AB5139:

Userid : "Oracle Corporation (VirtualBox archive signing key) info@virtualbox.org"

Fingerprint: 7b0f ab3a 13b9 0743 5925 d9c9 5442 2a4b 98ab 5139

From : https://www.virtualbox.org/download/oracle_vbox.asc

Is this ok [y/N]: y

virtualbox/7Server/x86_64/signature | 2.9 kB 00:00:40 !!!

virtualbox/7Server/x86_64/primary_db | 107 kB 00:00:01

Resolving Dependencies

--> Running transaction check

---> Package VirtualBox-5.2.x86_64 0:5.2.18_124319_el7-1 will be installed

--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libpng15.so.15()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libICE.so.6()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libfontconfig.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libXt.so.6()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libxcb.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libGL.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libXinerama.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libvpx.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libXmu.so.6()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libopus.so.0()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libSM.so.6()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libXrender.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libX11-xcb.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libXcursor.so.1()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libX11.so.6()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Processing Dependency: libXext.so.6()(64bit) for package: VirtualBox-5.2-5.2.18_124319_el7-1.x86_64

--> Running transaction check

---> Package SDL.x86_64 0:1.2.15-14.el7 will be installed

---> Package fontconfig.x86_64 0:2.10.95-11.el7 will be installed

--> Processing Dependency: font(:lang=en) for package: fontconfig-2.10.95-11.el7.x86_64

--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.95-11.el7.x86_64

---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed

---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed

---> Package libX11.x86_64 0:1.6.5-1.el7 will be installed

--> Processing Dependency: libX11-common >= 1.6.5-1.el7 for package: libX11-1.6.5-1.el7.x86_64

---> Package libXcursor.x86_64 0:1.1.14-8.el7 will be installed

--> Processing Dependency: libXfixes.so.3()(64bit) for package: libXcursor-1.1.14-8.el7.x86_64

---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed

---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed

---> Package libXmu.x86_64 0:1.1.2-2.el7 will be installed

---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed

---> Package libXt.x86_64 0:1.1.5-3.el7 will be installed

---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed

---> Package libvpx.x86_64 0:1.3.0-5.el7_0 will be installed

---> Package libxcb.x86_64 0:1.12-1.el7 will be installed

--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.12-1.el7.x86_64

---> Package mesa-libGL.x86_64 0:17.2.3-8.20171019.el7 will be installed

--> Processing Dependency: mesa-libglapi = 17.2.3-8.20171019.el7 for package: mesa-libGL-17.2.3-8.20171019.el7.x86_64

--> Processing Dependency: libXdamage.so.1()(64bit) for package: mesa-libGL-17.2.3-8.20171019.el7.x86_64

--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: mesa-libGL-17.2.3-8.20171019.el7.x86_64

--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libGL-17.2.3-8.20171019.el7.x86_64

--> Processing Dependency: libxshmfence.so.1()(64bit) for package: mesa-libGL-17.2.3-8.20171019.el7.x86_64

---> Package opus.x86_64 0:1.0.2-6.el7 will be installed

--> Running transaction check

---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed

---> Package libX11-common.noarch 0:1.6.5-1.el7 will be installed

---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed

---> Package libXdamage.x86_64 0:1.1.4-4.1.el7 will be installed

---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed

---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed

---> Package libxshmfence.x86_64 0:1.2-1.el7 will be installed

---> Package mesa-libglapi.x86_64 0:17.2.3-8.20171019.el7 will be installed

---> Package zvbi-fonts.noarch 0:0.2.35-1.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================

Package Arch Version Repository Size

========================================================================================================

Installing:

VirtualBox-5.2 x86_64 5.2.18_124319_el7-1 virtualbox 76 M

Installing for dependencies:

SDL x86_64 1.2.15-14.el7 rhel_7_server_rpms 204 k

fontconfig x86_64 2.10.95-11.el7 rhel_7_server_rpms 229 k

fontpackages-filesystem noarch 1.44-8.el7 rhel_7_server_rpms 9.9 k

libICE x86_64 1.0.9-9.el7 rhel_7_server_rpms 66 k

libSM x86_64 1.2.2-2.el7 rhel_7_server_rpms 39 k

libX11 x86_64 1.6.5-1.el7 rhel_7_server_rpms 606 k

libX11-common noarch 1.6.5-1.el7 rhel_7_server_rpms 164 k

libXau x86_64 1.0.8-2.1.el7 rhel_7_server_rpms 29 k

libXcursor x86_64 1.1.14-8.el7 rhel_7_server_rpms 30 k

libXdamage x86_64 1.1.4-4.1.el7 rhel_7_server_rpms 20 k

libXext x86_64 1.3.3-3.el7 rhel_7_server_rpms 39 k

libXfixes x86_64 5.0.3-1.el7 rhel_7_server_rpms 18 k

libXinerama x86_64 1.1.3-2.1.el7 rhel_7_server_rpms 14 k

libXmu x86_64 1.1.2-2.el7 rhel_7_server_rpms 71 k

libXrender x86_64 0.9.10-1.el7 rhel_7_server_rpms 26 k

libXt x86_64 1.1.5-3.el7 rhel_7_server_rpms 173 k

libXxf86vm x86_64 1.1.4-1.el7 rhel_7_server_rpms 18 k

libpng x86_64 2:1.5.13-7.el7_2 rhel_7_server_rpms 213 k

libvpx x86_64 1.3.0-5.el7_0 rhel_7_server_rpms 498 k

libxcb x86_64 1.12-1.el7 rhel_7_server_rpms 211 k

libxshmfence x86_64 1.2-1.el7 rhel_7_server_rpms 7.1 k

mesa-libGL x86_64 17.2.3-8.20171019.el7 rhel_7_server_rpms 156 k

mesa-libglapi x86_64 17.2.3-8.20171019.el7 rhel_7_server_rpms 43 k

opus x86_64 1.0.2-6.el7 rhel_7_server_rpms 630 k

zvbi-fonts noarch 0.2.35-1.el7 epel 116 k

Transaction Summary

========================================================================================================

Install 1 Package (+25 Dependent packages)

Total download size: 80 M

Installed size: 182 M

Is this ok [y/d/N]:

如何在Linux系统里安装Virtual Box的详细步骤

看到如下消息,说明VirtualBox成功了:

如何在Linux系统里安装Virtual Box的详细步骤

Installed:

VirtualBox-5.2.x86_64 0:5.2.18_124319_el7-1

Dependency Installed:

SDL.x86_64 0:1.2.15-14.el7 fontconfig.x86_64 0:2.10.95-11.el7

fontpackages-filesystem.noarch 0:1.44-8.el7 libICE.x86_64 0:1.0.9-9.el7

libSM.x86_64 0:1.2.2-2.el7 libX11.x86_64 0:1.6.5-1.el7

libX11-common.noarch 0:1.6.5-1.el7 libXau.x86_64 0:1.0.8-2.1.el7

libXcursor.x86_64 0:1.1.14-8.el7 libXdamage.x86_64 0:1.1.4-4.1.el7

libXext.x86_64 0:1.3.3-3.el7 libXfixes.x86_64 0:5.0.3-1.el7

libXinerama.x86_64 0:1.1.3-2.1.el7 libXmu.x86_64 0:1.1.2-2.el7

libXrender.x86_64 0:0.9.10-1.el7 libXt.x86_64 0:1.1.5-3.el7

libXxf86vm.x86_64 0:1.1.4-1.el7 libpng.x86_64 2:1.5.13-7.el7_2

libvpx.x86_64 0:1.3.0-5.el7_0 libxcb.x86_64 0:1.12-1.el7

libxshmfence.x86_64 0:1.2-1.el7 mesa-libGL.x86_64 0:17.2.3-8.20171019.el7

mesa-libglapi.x86_64 0:17.2.3-8.20171019.el7 opus.x86_64 0:1.0.2-6.el7

zvbi-fonts.noarch 0:0.2.35-1.el7

Complete!

以上是“如何在Linux系统里安装Virtual Box的详细步骤”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注编程网行业资讯频道!

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-人工智能
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯