Bodhi LinuxをVirtualBoxのゲストOSとしてインストール

2020-08-29

Bodhi Linux

t f B! P L

VirtualBoxのGuest Addtionsのインストール

 VirtualBox6.1.12へStandard ReleaseをインストールするとGuest Additionsをインストールしなくても画面のリサイズができました。

 今入ってる VirtualBox Guest Additions のバージョンを確認する - Qiita

この方法で調べるとすでに5.2.42_Ubuntu r137960がインストールされていました。

しかしクリップボードの共有ができないので、Guest AdditionsをVirtualBoxと同じバージョンのものを再インストールします。

 デバイス ー> Guest Additions CD イメージの挿入。

CDのルートディレクトリで次のコマンドを実行します。

sudo sh VBoxLinuxAdditions.run 
pq@pq-VirtualBox:/media/pq/VBox_GAs_6.1.12$ sudo sh VBoxLinuxAdditions.run
[sudo] password for pq:
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
This system appears to have a version of the VirtualBox Guest Additions
already installed.  If it is part of the operating system and kept up-to-date,
there is most likely no need to replace it.  If it is not up-to-date, you
should get a notification when you start the system.  If you wish to replace
it with this version, please do not continue with this installation now, but
instead remove the current version first, following the instructions for the
operating system.

If your system simply has the remains of a version of the Additions you could
not remove you should probably continue now, and these will be removed during
installation.
「このシステムには、すでにインストールされているVirtualBox Guest Additionsがあるようです。それがオペレーティングシステムの一部であり最新の状態に保たれている場合、ほとんどの場合、入れ替える必要はありません。 最新でない場合は、システムを起動すると通知が表示されます。 このバージョンに入れ替えたい場合、このままインストールを続行しないでください。このバージョンでは、このインストールを続行しないでください。
代わりに、まず現在のバージョンを削除してからOSの指示に従ってください。
システムに削除できないGuest Additionsの残りがあるだけの場合は、そのまま続行するとインストール中に残っていたものは除去されます。」

5.2.42をアンインストールしたほうがよいみたいですが、アンインストールが結構面倒そうなので、そのまま上書きインストールしました。

ちなみにアンインストールするにはまずSynapticパッケージマネージャでvirtualbox-guest-additions-isoをインストールしてそのルートディレクトリでsudo sh VBoxLinuxAdditions.run  unistallとすればよいみたいですけど、返って残るファイルが増えそうに思えます。
Do you wish to continue? [yes or no]
yes
touch: cannot touch '/var/lib/VBoxGuestAdditions/skip-4.15.0-88-generic': No such file or directory
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.15.0-88-generic.
update-initramfs: Generating /boot/initrd.img-4.15.0-88-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
これでインストール完了です。

modinfo vboxguest
pq@pq-VirtualBox:~$ modinfo vboxguest
filename:       /lib/modules/4.15.0-88-generic/misc/vboxguest.ko
version:        6.1.12 r139181
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
srcversion:     FD295F48B1023D9964A8CA7
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
depends:
retpoline:      Y
name:           vboxguest
vermagic:       4.15.0-88-generic SMP mod_unload
これでクリップボードの共有ができるようになりました。

5.2.42は/lib/modules/4.15.0-88-generic/updates/dkms/vboxguest.koにインストールされていましたが、6.1.12は/lib/modules/4.15.0-88-generic/misc/vboxguest.koにインストールされています。

5.2.42のファイルは残ったままです。

共有フォルダにアクセスするにはVirtualBoxにKDE neonをインストール -p--qのようにグループへの追加が必要です。 

 Guest Additionsの再インストール

 VirtualBoxのゲストのBodhi Linuxをアップデートをしたら画面のリサイズの追随が悪くなったのでGuest Additionsを再インストールしました。

VirtualBoxのビデオメモリを増やす 

ホストはKDE neonをインストールするIntel NUCの組み立て-p--qで、ディスプレイサイズは2560×1440です。

ビデオメモリーが16MBでグラフィックスコントローラーがVMSVGAの場合、ゲストOSを全画面表示にすると画面が真っ黒になり以後再起動しても画面が真っ黒になったまま操作できなくなりました。

 グラフィックスコントローラーをVBoxSVGAに変更すると再び画面が表示されるようになりました。

結局ビデオメモリーを128MBにしてグラフィックスコントローラーをVMSVGAにすると画面表示は問題ないので、この設定で使うことにしました。

ブログ検索 by Blogger

Translate

最近のコメント

Created by Calendar Gadget

QooQ