在Linux系統裡安裝VirtualBox的詳細步驟
今天我試圖在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]:
按照提示,我需要先安裝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虛擬化平臺技術的一部份。
這個url提供Virtual Box的安裝:
https://www.virtualbox.org/wiki/Linux_Downloads
進入之後,根據Linux不同型別下載對應的安裝包:
因為我用的是Oracle RHEL,所以使用RPM-based Linux distributions區域的安裝指令:
1. 首先下載oracle_vbox.asc檔案到本地:
wget -q https://www.virtualbox.org/download/oracle_vbox.asc
再執行import:
sudo rpm –import oracle_vbox.asc
2. cd 進入目錄:/etc/yum.repos.d
新建一個檔案virtualbox.repo, 輸入如下內容:
1 [virtualbox]
2 name=Oracle Linux / RHEL / CentOS-$releasever / $basearch – VirtualBox
3 baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$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:
yum處理並下載依賴:
依賴分析計算結果:有超過25個依賴包需要下載,總共需要下載80M,安裝大小182M。選擇Y繼續:
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]:
看到如下訊息,說明VirtualBox成功了:
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!
要獲取更多Jerry的原創文章,請關注公眾號”汪子熙”:
相關文章
- Virtualbox7安裝及使用詳細步驟
- Linux安裝jdk的詳細步驟LinuxJDK
- Linux安裝jdk的詳細步驟。LinuxJDK
- 在Linux系統安裝flash的步驟方法Linux
- Win7系統安裝詳細教程步驟Win7
- MySQL的安裝步驟(詳細)MySql
- linux安裝mysql的步驟和方法詳細說明LinuxMySql
- Termux安裝完整版Linux(Ubuntu)詳細步驟LinuxUbuntu
- docker安裝portainer詳細步驟DockerAI
- 如何在Linux系統下安裝Android-Studio的詳細步驟(以Ubuntu為例)LinuxAndroidUbuntu
- Mac安裝Redis,詳細redis安裝步驟MacRedis
- ubuntu20.04安裝教程超詳細 安裝ubuntu系統步驟圖解Ubuntu圖解
- VirtualBox下安裝Linux系統Linux
- linux下安裝redis圖文詳細步驟鶯瞵LinuxRedis
- CentOS 7 安裝MongoDB詳細步驟CentOSMongoDB
- ubuntu 18.04安裝kalibr(詳細步驟)Ubuntu
- 安裝fbprophet模組詳細步驟
- vnc安裝步驟,4個在Linux下vnc的個安裝步驟VNCLinux
- arcgis安裝教程10.2 arcgis詳細安裝步驟
- FreeBSD系統下安裝字型的步驟詳解
- UBUNTU手動安裝JDK的詳細步驟UbuntuJDK
- CentOS 7.4下安裝nginx的詳細步驟CentOSNginx
- u盤裝系統詳細步驟(圖文搭配)
- Linux系統安裝MySQL詳細教程LinuxMySql
- Linux系統安裝gcc詳細教程。LinuxGC
- CentOS 7.4安裝redis 4.0詳細步驟CentOSRedis
- CentOS 7上安裝WordPress詳細步驟CentOS
- SAP2000 22安裝教程(詳細安裝步驟)
- vnc安裝步驟,vnc安裝步驟詳解VNC
- IN2003下JDK的詳細安裝配置步驟JDK
- 深度裝機教程win7系統詳細步驟Win7
- Linux 安裝步驟Linux
- Mac系統安裝和配置tomcat步驟詳解MacTomcat
- Git學習2 --- Git安裝詳細步驟Git
- NodeJS入門(一)---nodejs詳細安裝步驟NodeJS
- KeyShot9.3安裝教程(附詳細步驟)
- doris編譯和安裝部署詳細步驟編譯
- Linux下最新版MySQL 8.0的下載與安裝(詳細步驟)LinuxMySql