LoginSignup
15
14

More than 3 years have passed since last update.

CentOS8 に VirtualBox Guest Additions をインストールする

Last updated at Posted at 2019-09-25

CentOS8 (1905) を最小限インストールした状態で VirtualBox Guest Additions をインストールする手順を調べた。

前提

  • yum update kernel 実行後リブートする。
  • VBoxGuestAdditions.iso をマウント (今回は /mnt )

エラー

VirtualBox Guest Additions をインストールするとこんなエラーが出る


# /mnt/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.12 Guest Additions for Linux.Extraction failed.
Signal caught, cleaning up

対策

次のパッケージをインストールする

  • bzip2
  • elfutils-libelf-devel
  • gcc
  • gcc-c++
  • kernel-devel
  • kernel-headers
  • make
  • perl
  • tar

# yum -y install bzip2 elfutils-libelf-devel gcc gcc-c++ kernel-devel kernel-headers make perl tar
メタデータの期限切れの最終確認: 0:09:15 時間前の 2019年09月25日 23時00分25秒 に 実施しました。
依存関係が解決しました。
================================================================================
 パッケージ                    アーキテクチャー
                                       バージョン              リポジトリ サイズ
================================================================================
Installing:
 gcc                           x86_64  8.2.1-3.5.el8           AppStream   23 M
 gcc-c++                       x86_64  8.2.1-3.5.el8           AppStream   12 M
 perl                          x86_64  4:5.26.3-416.el8        AppStream   72 k
 bzip2                         x86_64  1.0.6-26.el8            BaseOS      60 k
 elfutils-libelf-devel         x86_64  0.174-6.el8             BaseOS      53 k
 kernel-devel                  x86_64  4.18.0-80.7.1.el8_0     BaseOS      12 M
 kernel-headers                x86_64  4.18.0-80.7.1.el8_0     BaseOS     1.6 M
 make                          x86_64  1:4.2.1-9.el8           BaseOS     498 k
 tar                           x86_64  2:1.30-4.el8            BaseOS     838 k
依存関係をインストール中:
(略)

VBox Guest Additions をインストール


# /mnt/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
4.18.0-80.7.1.el8_0.x86_64.
15
14
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
14