GNU/Linux >> Linux の 問題 >  >> Debian

Debian7wheezyにvirtualboxゲストの追加をインストールする

DebianでのVirtualboxゲストの追加

Debian 7 wheezyには、virtualboxゲストの追加機能が組み込まれています。したがって、virtualboxにdebianをインストールすると、ゲスト追加機能がすぐに利用できるようになります。ただし、debianにバンドルされているゲストの追加は、最新のvirtualboxバージョンと比較して古いバージョンの一般的なものです。したがって、最新のvirtualboxゲスト追加機能をインストールすることをお勧めします。

これは、現在インストールされているvirtualboxゲストの追加のバージョンを示すクイックコマンドです。

#  lsmod | grep -io vboxguest | xargs modinfo | grep -iw version
version:        4.1.18_Debian

そのため、debian 7のデフォルトのインストールでは、ゲスト追加バージョン4.1.18が組み込まれています。したがって、更新する必要があります。

代わりに、同じコマンドを2つのステップで実行できます。

# lsmod | grep -i vboxvboxsf                 29071  1
vboxvideo              12437  1
drm                   183952  2 vboxvideo
vboxguest             148611  6 vboxsf
# modinfo vboxguestfilename:       /lib/modules/3.2.0-4-amd64/updates/dkms/vboxguest.ko
version:        4.1.18_Debian
license:        GPL
description:    Oracle VM VirtualBox Guest Additions for Linux Module
author:         Oracle Corporation
srcversion:     2B8D846D07E45862D5C0169
alias:          pci:v000080EEd0000CAFEsv00000000sd00000000bc*sc*i*
depends:
vermagic:       3.2.0-4-amd64 SMP mod_unload modversions
#

最新のゲスト追加をインストールする

まず、最新のvirtualboxゲストの追加をコンパイルするためにシステムを準備する必要があります。

# apt-get install build-essential module-assistant

次に、モジュールアシスタントを使用して必要なカーネルヘッダーをインストールします。

# m-a prepare

次に、[デバイス]> [仮想ボックスウィンドウにゲスト追加をインストール]をクリックして、ゲスト追加イメージをマウントします。次に、インストールを続行します。

[email protected]:/media/cdrom0# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.12 Guest Additions for Linux............
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.
Do you wish to continue anyway? [yes or no]
y
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Installing X.Org Server 1.12 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
[email protected]:/media/cdrom0#

すべての行が完了したように表示されます。特に「VirtualBoxGuestAdditionsカーネルモジュールの構築」という行。完了したら、ゲストを再起動します。ゲスト追加バージョンももう一度確認してください。

# lsmod | grep -io vboxguest | xargs modinfo | grep -iw version
version:        4.2.12

CD-ROMが読み取り専用としてマウントされ、ファイルの実行が許可されていない場合は、mountコマンドを使用して再マウントします。

# mount -o remount,exec /dev/sr0
mount: warning: /media/cdrom0 seems to be mounted read-only.

/ dev/sr0をデバイス名に置き換えます。デバイス名は、mountコマンドを実行するだけで見つけることができます。

これで、最新のvirtualboxゲストの追加が必要になります。 Debianにインストールされています ゲスト。お楽しみください!


Debian
  1. Debian11にVirtualBoxGuestAdditionsをインストールする-最良の方法は?

  2. Fedora20にVirtualboxゲスト追加機能をインストールする方法

  3. Ubuntu14.04にVirtualboxゲスト追加機能をインストールする方法

  1. Virtualbox:RHEL 8 /CentOS8にゲスト追加機能をインストールします

  2. Ubuntu18.04にVirtualBoxゲスト追加機能をインストールする方法

  3. Fedora18にVirtualboxゲスト追加機能をインストールする方法

  1. CentOS8にVirtualBoxゲスト追加機能をインストールする方法

  2. Debian10LinuxにVirtualBoxゲスト追加機能をインストールする方法

  3. Debian11にVirtualBoxをインストールする方法