Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect detection of Virtualbox Guest Additions #13507

Open
accictavandongen opened this issue Oct 9, 2024 · 0 comments
Open

Incorrect detection of Virtualbox Guest Additions #13507

accictavandongen opened this issue Oct 9, 2024 · 0 comments

Comments

@accictavandongen
Copy link

Hi,

I've run into a situation where Vagrant seems to incorrectly detect the Virtualbox Guest Additions (GA) version. When I start the VM I get the warning that the GA version does not match the Virtualbox version.

==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 6.0.0 r127566
    default: VirtualBox Version: 7.0

Which is very strange because if I check the version of VBoxControl from inside the VM I do get the correct version:

# VBoxControl --version
7.0.20r163906

This is a custom image which I build with packer so for debug purposes I kept the .vbox_version and the ISO (VBoxGuestAdditions.iso) around and those both show the correct version.

# cat .vbox_version
7.0.20

VBoxLinuxAdditions.run has

label="VirtualBox 7.0.20 Guest Additions for Linux"

Which make me wonder how Vagrant determines the version of Guest Additions.

Vagrant version

  • Vagrant 2.4.1

Host operating system

  • Ubuntu 24.04.1 LTS

Guest operating system

  • Debian GNU/Linux 12 (bookworm)

Steps to reproduce

Hard to do without my image but let me know if I need to check some additional things.

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

  #config.vm.box = "debian-12.7.0-generic"
  config.vm.box = "debian-12.7.0-generic-ga-debug"

  config.vm.provider "virtualbox" do |v|
    v.gui = true
  end

end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant