dotless-de / vagrant-vbguest

A Vagrant plugin to keep your VirtualBox Guest Additions up to date
MIT License
2.88k stars 206 forks source link

Annoying warnings on Ubuntu 21.04 #413

Closed tianyuanhao closed 2 years ago

tianyuanhao commented 3 years ago

Vagrantfile:

Vagrant.configure("2") do |config|
  config.vagrant.plugins = ["vagrant-vbguest"]
  config.vm.box = "ubuntu/hirsute64"
end

Warnings:

VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
An error occurred during installation of VirtualBox Guest Additions 6.1.22. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Unmounting Virtualbox Guest Additions ISO from: /mnt
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 6.1.22
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 6.1.22
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 6.1.22
Going on, assuming VBoxService is correct...

In fact, these are just warnings. The reason is that since 20.10, Ubuntu no longer has virtualbox-guest-utils installed (LP: #1895862), but contains the upstream kernel module vboxguest. vagrant-vbguest did not find virtualbox-guest-utils, so the related kernel modules were not removed.

A workaround is:

  config.vbguest.installer_hooks[:before_install] = ["rmmod vboxguest"]

Ref #411

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.