Kali LinuxでのVirtualBoxゲストの追加インストールの問題

Kali LinuxでのVirtualBoxゲストの追加インストールの問題

VirtualBoxにKali Linuxをインストールし、ホストはMacOSです。コマンドを実行しようとすると、./VBoxLinuxAdditions.run次のテキストが表示されます。

    Verifying archive integrity... All good.
    Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
    VirtualBox Guest Additions installer
    Removing installed version 5.1.22 of VirtualBox Guest Additions...
    Copying additional installer modules ...
    Installing additional modules ...
    vboxadd.sh: Starting the VirtualBox Guest Additions.
    Failed to set up service vboxadd, please check the log file
    /var/log/VBoxGuestAdditions.log for details.

私は/var/log/VBoxGuestAdditions.log次のようになります。

Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service → /lib/systemd/system/vboxadd.service.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: modprobe vboxguest failed.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-service.service → /lib/systemd/system/vboxadd-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-x11.service → /lib/systemd/system/vboxadd-x11.service.

その後、vboxadd-install.log私はこれを得ます:

/tmp/vbox.0/Makefile.include.header:112: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

この問題を解決する方法を知っている人はいますか?

ベストアンサー1

指摘したとおり敷物次のコマンドを実行して、Kali Linux> = 4.2ゲストにゲストアドインをインストールできます。

sudo apt update
sudo apt install -y virtualbox-guest-x11
sudo reboot -f

よりKali Linuxプロジェクトが提供する公式ガイドラインもっと学ぶ。このページには、以前のバージョンのKali Linuxの手順も含まれています。

おすすめ記事