Virtualbox linux guest additions failed

Дополнения гостевой системы VirtualBox Ubuntu не устанавливаются: ошибка modprobe vboxsf

Я только что установил это программное обеспечение с виртуальной коробки, я загрузил ISO с официального сайта Ubuntu, это был последний LTS.

Я попытался установить гостевые дополнения с помощью «Вставить образ гостевого дополнения». Результат:

Полную версию файла журнала можно найти здесь [?]

Итак, это известная проблема. Вместо использования изображения, предоставляемого virtualbox, вы должны просто загрузить его через aptitute sudo apt-get install virtualbox-guest-dkms и, если вам нужны заголовки, скачать его sudo apt-get install linux-headers-virtual вместо классического sudo apt-get install linux-headers-$(uname -r) .

Edit: Изменена <> для () как указано на @Abdelouahab.

откройте терминал и запустите sudo reboot .

затем попробуйте установить снова через устройства -> Вставить образ компакт-диска Guest Additions.

работал на меня.

в Ubuntu 16.04 мне пришлось перезагрузить ОС перед установкой virtualbox-guest-дополнений, чтобы загрузить правильное ядро

Аналогичная проблема может возникнуть с гостями VirtualBox 5.2.18 и Linux, включая Fedora 28, на которых запущено ядро ​​4.18: сборка гостевых дополнений завершится с тем же сообщением об ошибке «modprobe vboxsf failed», и модуль vboxsf не выведет в / папка lib / modules.

Решение (на данный момент) состоит в том, чтобы загрузить и установить последний моментальный снимок разработки Guest Additions версии 5.2.97, как описано в билете на сайте VirtualBox .

Симптом — это сообщения, подобные этим, которые появляются в одном из файлов журнала, записанных в / var / log в процессе сборки:

Обратите внимание, что процесс сборки может выводить несколько файлов журнала, что означает, что просмотр только самого последнего (как показывает сообщение, которое он выводит) не является надежным способом диагностики проблем. В моем случае попытка установить гостевые дополнения на сервере Fedora без монитора не удалась, так как /var/log/vboxadd-setup.log содержит только строку

Ключ должен был изучить файл /var/log/vboxadd-setup.log.1, сгенерированный в то же время, который содержал реальные сообщения об ошибках из сборки, показанные выше.

В комментариях к вопросу есть немного запутанные, но полезные ссылки.

Точно такая же проблема решена путем очистки 5.2.8 и установки 5.1.34_Ubuntu r121010 из репозитория:

Установка гостевых дополнений завершена без ошибки «VirtualBox Guest Additions: modprobe vboxsf fail».

Спасибо Джастину за ссылку https://askubuntu.com/a/846142, но пришлось использовать

потому что последний дал мне целый каверз хитрых неудовлетворенных зависимостей.

Я только что скачал сегодня ISO-файл Ubuntu 16.04 и установил его. У меня также есть последняя версия VirtualBox.

Читайте также:  Агент установки для всех пользователей windows что это

Пытаясь установить Guest Additions, я столкнулся с ошибкой, упомянутой изначально.

Я просто сделал то, что говорили другие раньше . с добавленными гостями ISO, все еще вставленными в виртуальную машину, я запустил:

После входа снова я перешел в папку ISO:

Затем я выполнил:

Установка завершена без проблем.

Я столкнулся с этой проблемой как на Ubuntu, так и на хосте Windows (Lubuntu Guest), и в обоих случаях именно это я и сделал.

Источник

Ticket #17311 (closed defect: fixed)

Last modified 4 years ago

GuestAddition build fails on linux -> fixed in 5.2.8

Reported by: rithik.g Owned by:
Component: guest additions Version: VirtualBox 5.2.0
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

In file included from ./include/linux/module.h:18:0,

from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:88, from /tmp/vbox.0/VBoxGuest-linux.c:36:

/tmp/vbox.0/VBoxGuest-linux.c:1165:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]

module_param_call(log, vgdrvLinuxParamLogGrpSet, vgdrvLinuxParamLogGrpGet, NULL, 0664);

./include/linux/moduleparam.h:233:24: note: in definition of macro ‘module_param_call’

Full log in attachment.

Attachments

Change History

Changed 4 years ago by rithik.g

  • attachmentvboxadd-setup.log added

vboxadd setup build log

comment:1 Changed 4 years ago by rithik.g

comment:2 Changed 4 years ago by mightnare

comment:3 Changed 4 years ago by fbauzac

The patch above works for me. Here is what I did:

In Virtualbox, insert guest additions.

Download the patch above:

Extract the self-extracting file:

Determine if you use VBoxGuestAdditions-amd64.tar.bz2 (64bit) or VBoxGuestAdditions-x86.tar.bz2 (32bit). Below I use VBoxGuestAdditions-amd64.tar.bz2.

Apply the patch:

  • Find the line
  • Replace it with:
  • Run ./install.sh
  • Done! (You might need to reboot your guest)

comment:4 Changed 4 years ago by Yaroslav

With the new kernel (kernel-4.15.3-300.fc27) in Fedora the guest additions cannot be build due to the error mentioned in the bug.

Moreover if you have shared folders managed by systemd in fstab the system doesn’t boot.

comment:5 Changed 4 years ago by michael

Please try out the latest Guest Additions test build .

Источник

Ubuntu Documentation

Setting up VirtualBox Guest Additions

Guest Additions provide additional capability to a guest virtual machine, including file sharing. Guest Additions means:

  • software installed on a guest virtual machine
  • software from a third party (Oracle), not open source and not installed in the usual fashion for the guest OS

Guest Additions are distributed on their own CD image (.iso file) named VBoxGuestAdditions.iso. How you get that file to the guest can depend on the OS of the guest — see below.

After installing Guest Additions, on some, older guests you might need to restart the guest.

For recent guest OSs

In the guest virtual machine, choose Devices -> Install Guest Additions from the menubar of VirtualBox.

VirtualBox will look for the needed file. Failing to find it, it may give you an opportunity to download the file from the internet.

If all that fails, follow one of the steps below.

Ubuntu or similar

Getting VBoxGuestAdditions.iso

You have several choices. On the host (not the guest):

Download a VirtualBox package from https://www.virtualbox.org/wiki/Downloads (you might have installed this package when you installed VirtualBox). The package should include the VBoxGuestAdditions.iso file.

Open http://download.virtualbox.org/virtualbox/ and enter the subdirectory for the latest version of VirtualBox. It should contain the corresponding VBoxGuestAdditions_X.Y.Z.iso file.

  • Install a package through the usual channels for your distribution. For example, you might use:
  • Some, recent versions of VirtualBox will now be able to find the file on the host when you choose Device -> Install Guest Additions on the VirtualBox running a guest. Continue with instructions for setting up file sharing.

    For other, older versions of guest OS’s and VirtualBox, the .iso file is on the host, but the guest needs to see it (and file sharing is not yet enabled.) Follow the next two steps for mounting the .iso file and executing the scripts in the .iso file.

    Читайте также:  Total commander для windows 10 64 bit portable

    Making VBoxGuestAdditions.iso visible to the guest

    Just as you mounted a .iso CD image for your guest OS when installing it on the guest, now mount VBoxGuestAdditions.iso as a CD on the guest. For example, in the VirtualBox window, choose the Storage section under Details, and so forth.

    Note that recent versions of VirtualBox have changed the method of mounting .iso files.

    Now start the guest.

    Executing install script for Guest Additions on older Linux guests

    Make sure you have the image, for example VBoxGuestAdditions.iso or VBOXADDITIONS, mounted as CDROM.

    If you are running a Linux guest, open a terminal and type:

    in for instance Ubuntu Lucid, the CD image should mount at /media/ so that would be

    Alternatively simply run

    If you would like to uninstall the Guest Additions, run:

    References

    VirtualBox/GuestAdditions (последним исправлял пользователь rpr-nospam 2012-10-20 16:28:08)

    The material on this wiki is available under a free license, see Copyright / License for details
    You can contribute to this wiki, see Wiki Guide for details

    Источник

    Ticket #19209 (closed defect: worksforme)

    Last modified 13 months ago

    Virtualbox 6.1 Guest Additions failing on Kernel 5.4.8

    Reported by: djkraven Owned by:
    Component: guest additions Version: VirtualBox 6.1.0
    Keywords: kernel 5.4.8 Cc:
    Guest type: Linux Host type: Windows

    Description

    The following error is returned when running the install on a Linux guest with kernel 5.4.8 using Windows 10 as the host. It is successful with 5.3.15 kernel.

    Attachments

    Change History

    comment:1 Changed 21 months ago by fbatschu

    Q1: What distro are you using that provied a 5.4.8 kernel?
    Q2: have you done what the error message suggests?
    «Run ‘make oldconfig && make prepare’ on kernel src to fix it.»

    can you attach the corresponding log file written to /var/log please.

    comment:2 Changed 21 months ago by fbatschu

    • Status changed from new to awaitsfeedback

    comment:3 Changed 21 months ago by fbatschu

    • Status changed from awaitsfeedback to closed
    • Resolution set to worksforme

    I cannot reproduce this with fedora 31 and kernel 5.4.7

    Changed 21 months ago by djkraven

    • attachmentvboxadd-setup.log added

    LOG: Building the main Guest Additions 6.1.0 module for kernel 5.4.0-050400-generic.

    comment:4 Changed 21 months ago by djkraven

    Q1: What distro are you using that provided a 5.4.8 kernel?

    A1: Linux Mint 19 with Ukuu Kernel Update Utility. I have selected the 5.4.0 kernel with the same results. The 5.3.15 works with any issues.

    Q2: have you done what the error message suggests? «Run ‘make oldconfig && make prepare’ on kernel src to fix it.»

    A2: It returns the following with the 5.4.0 kernel

    Log file attached: /var/log/vboxadd-setup.log

    comment:5 Changed 21 months ago by djkraven

    • Status changed from closed to reopened
    • Resolutionworksforme deleted

    comment:6 Changed 21 months ago by fbatschu

    • Status changed from reopened to closed
    • Resolution set to worksforme

    you have a problem with you custom kernel build setup.

    As I demonstarted, this problem does not exist on real 5.4 kernel distributions like Fedora 31 & 30. please talk to the folks managing Ukuu. Your kernel source header tree in /lib/modules/5.4.0-050400-generic/build needed to compile the Virtualbox guest modules is inconsistent or not properly populated for the 5.4 kernel you are running and trying to compile the GAs against. We cannot solve this. We can also discuss such things in the _forum_ for example, this is not a Virtualbox bug.

    Читайте также:  Aimp для windows 64 bit

    This should exist, pls. check:

    You got to fix your build environments. We cannot do that for you.

    comment:7 Changed 21 months ago by djkraven

    Thank you for the additional details. I will contact the ukuu developer and provide this information to them.

    Источник

    Ticket #11815 (closed defect: fixed)

    Last modified 8 years ago

    Starting the VirtualBox Guest Additions [FAILED] in Fedora 18

    Reported by: Biswajit Owned by:
    Component: guest additions Version: VirtualBox 4.2.12
    Keywords: Cc:
    Guest type: other Host type: other

    Description

    Hi, I’ve installed Fedora 18 32bit guest into a Oracle VM Virtualbox running on a windows 7 host. Previously I’ve installed Fedora 16 as the host machine and everything was working fine. Now after installing Fedora 18 i tried to install virtual-guest addition but there is some issue. I guess its BUG.

    I had followers all the procedures correctly to install the VirtualBoxGuestAdditions

    I am attaching the logs.

    root@localhost VirtualBoxGuestAdditions]# sh ./VBoxLinuxAdditions.run Verifying archive integrity. All good. Uncompressing VirtualBox 4.2.10 Guest Additions for Linux. VirtualBox Guest Additions installer Removing installed version 4.2.10 of VirtualBox Guest Additions. Removing existing VirtualBox DKMS kernel modules [ OK ] Removing existing VirtualBox non-DKMS kernel modules [ OK ] Building the VirtualBox Guest Additions kernel modules [ OK ] Doing non-kernel setup of the Guest Additions [ OK ] Starting the VirtualBox Guest Additions [FAILED] (modprobe vboxguest failed) Installing the Window System drivers Installing X.Org Server 1.13 modules [ OK ] Setting up the Window System to use the Guest Additions [ OK ] 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 componen[ OK ]

    [root@localhost VirtualBoxGuestAdditions]# cat /var/log/VBoxGuestAdditions.log

    Starting vboxadd (via systemctl): Job for vboxadd.service failed. See ‘systemctl status vboxadd.service’ and ‘journalctl -xn’ for details. [FAILED] Starting vboxadd-service (via systemctl): Job for vboxadd-service.service failed. See ‘systemctl status vboxadd-service.service’ and ‘journalctl -xn’ for details. [FAILED] Starting vboxadd-x11 (via systemctl): [ OK ] [root@localhost VirtualBoxGuestAdditions]#

    [root@localhost VirtualBoxGuestAdditions]#systemctl status vboxadd.service

    vboxadd.service — LSB: VirtualBox Linux Additions kernel modules

    Loaded: loaded (/etc/rc.d/init.d/vboxadd) Active: failed (Result: exit-code) since Mon 2013-05-20 03:37:22 EDT; 4min

    54s ago May 20 03:37:22 localhost.localdomain vboxadd[9543]: Starting the VirtualBox Guest Additions [FAILED] May 20 03:37:22 localhost.localdomain vboxadd[9543]: (modprobe vboxguest failed) May 20 03:37:22 localhost.localdomain systemd[1]: vboxadd.service: control process exited, code=exited status=1 May 20 03:37:22 localhost.localdomain systemd[1]: Failed to start LSB: VirtualBox Linux Additions kernel modules. May 20 03:37:22 localhost.localdomain systemd[1]: Unit vboxadd.service entered failed state. [root@localhost VirtualBoxGuestAdditions]#

    [root@localhost VirtualBoxGuestAdditions]# cat /var/log/vboxadd-install.log Uninstalling modules from DKMS Attempting to install using DKMS

    Creating symlink /var/lib/dkms/vboxguest/4.2.10/source ->

    DKMS: add completed.

    Kernel preparation unnecessary for this kernel. Skipping.

    Building module: cleaning build area. make KERNELRELEASE=3.9.2-200.fc18.i686.PAE -C /lib/modules/3.9.2-200.fc18.i686.PAE/build M=/var/lib/dkms/vboxguest/4.2.10/build. cleaning build area.

    DKMS: build completed.

    vboxguest: Running module version sanity check.

    • Original module
      • No original module exists within this kernel
    • Installation
      • Installing to /lib/modules/3.9.2-200.fc18.i686.PAE/extra/

    vboxsf.ko: Running module version sanity check.

    • Original module
      • No original module exists within this kernel
    • Installation
      • Installing to /lib/modules/3.9.2-200.fc18.i686.PAE/extra/

    vboxvideo.ko: Running module version sanity check.

    • Original module
      • No original module exists within this kernel
    • Installation
      • Installing to /lib/modules/3.9.2-200.fc18.i686.PAE/extra/

    DKMS: install completed. Creating user for the Guest Additions. Creating udev rule for the Guest Additions kernel module. [root@localhost VirtualBoxGuestAdditions]#

    Источник

    Оцените статью