pgintro.net

クリップボード共有

作成日時:2018/05/12

更新日時:2018/05/12

スポンサーリンク

クリップボード共有(CentOS)

VirtualBoxVMのメインメニューから「Devices > Insert Guest Additions CD Image...」を選択

「/mnt/cdrom」フォルダを作成し、「/dev/cdrom」をマウントします。

# mkdir /mnt/cdrom
# mount -r /dev/cdrom /mnt/cdrom

インストール実行

# sh /mnt/cdrom/VBoxLinuxAdditions.run

インストール実行時に「command not found」等のエラーが表示される場合は必要なものをインストールします。

bzip2コマンドがインストールされていない場合

./install.sh: line 371: bzip2: command not found
./install.sh: line 384: bzip2: command not found

これまでに特にエラーがなければ以下のような表示が出るので「yes」を入力してEnterで続けます。

Do you wish to continue? [yes or no]

-

Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.

-

yum install "kernel-devel-uname-r == $(uname -r)"

-

VirtualBox Guest Additions: Running kernel modules will not be repaced until the system is restarted
VirtualBox Guest Additions: Starting.

ログ

/var/log/vboxadd-setup.log

ログ

VirtualBox バージョン5.2.4 r119785 (Qt5.6.3)

In file included from /tmp/vbox.0/hgsmi_base.c:27:0:
/tmp/vbox.0/vbox_drv.h:195:21: error: filed 'base' has incomplete type
  struct drm_encoder base;

make[2]: *** [/tmp/vbox.0/hgsmi_base.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2
Creating user for the Guest Additions kernel module.
Could not find the X.Org or XFree86 Window System, skipping.

ログ

VirtualBox バージョン5.2.12 r122591 (Qt5.6.3)にアップデート

echo >&2 "  ERROR: Kernel configuration is invalid.";
echo >&2 "     include/generated/autoconf.h or include/config/auto.conf are missing.";
echo >&2 "     Run 'make oldconfig && make prepare' on kernel src to fix it.";