Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Guest installation freeze on virtual box 7.0.10 #432

Closed
miyoku157 opened this issue Jul 25, 2023 · 7 comments
Closed

Guest installation freeze on virtual box 7.0.10 #432

miyoku157 opened this issue Jul 25, 2023 · 7 comments
Labels

Comments

@miyoku157
Copy link

miyoku157 commented Jul 25, 2023

Hi,
I just updated virtualbox from 7.0.8 to 7.0.10 and vagrant just freeze without any logs :
Here is the last logs i have before it stops

Processing triggers for man-db (2.9.4-2) ...
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
Installing Virtualbox Guest Additions 7.0.10 - guest version is 6.0.0
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.10 Guest Additions for Linux  100%
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.10.0-22-amd64.
update-initramfs: Generating /boot/initrd.img-5.10.0-22-amd64
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.0.10 r158379 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some
user session specific services (Shared Clipboard, Drag and Drop, Seamless or
Guest Screen Resize) were not restarted automatically

I'm on virtual box 7.0.10 and vagrant 2.3.7 and the box i'm trying to mount is a Debian 11. Am i the only one getting this?

@fnordfish
Copy link
Member

The VirtualBox Guest Additions install logs look fine except for the missing unmount log: Unmounting Virtualbox Guest Additions ISO from: /mnt
Maybe VBoxLinuxAdditions.run does not exit for some reason?

@miyoku157
Copy link
Author

Is there a way to get more logs from it? to see where it get stucks?
Am i the only one with this version getting this problem?

@eremem
Copy link

eremem commented Jul 27, 2023

Am i the only one with this version getting this problem?

No, you are not. I'm having exact the same problem. Vagrant 2.3.4, the rest seems to match.

@estribiyo
Copy link

estribiyo commented Aug 3, 2023

In VirtualBox 6.1 works as espected, at first provision crashes (doesn't reload Guest Additions and can't mount shares, should do a vagrant reload --provision) but in VirtualBox 7.0, when it freezes, logging into another terminal, and executing: rcvboxadd reload, it continues provisioning:

vagrant@bullseye:~$ sudo rcvboxadd reload
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.0.10 r158379 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some
user session specific services (Shared Clipboard, Drag and Drop, Seamless or
Guest Screen Resize) were not restarted automatically

@eremem
Copy link

eremem commented Aug 5, 2023

An alternative solution could be disabling the plugin at all as stated here:

"The vagrant vbguest plugin is not needed with the Debian boxes and we don't test it.

If you use boxes up to Debian 10 Buster, use the contrib boxes at https://app.vagrantup.com/debian. The contrib boxes already include the needed kernel modules, so you don't have to recompile the modules via the vagrant-vgbuest module.

If you use Debian 11 Bullseyes and higher, the kernel modules are already included in the box itself, since the kernel modules are now part of the official kernel releases.

Disabling vbguest with

config.vbguest.auto_update = false

disables it for the current Vagrantfile without removing the plugin globally."

I've just tested this approach with debian/bookworm64:

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

Guest Additions Version: 6.0.0 r127566
VirtualBox Version: 7.0

Apart from being stuck with VBox Guest Additions v6.0.x this seems to be good enough for shared directories to work. No idea though how about the support for more recent features (if there were any).

@0xbk
Copy link

0xbk commented Sep 6, 2023

This issue seems to occur with VirtualBox 7.0.8 and 7.0.10. I downgraded to 7.0.6 and everything works with Vagrant 2.3.7.

@Jazzepi
Copy link

Jazzepi commented Sep 18, 2023

This issue seems to occur with VirtualBox 7.0.8 and 7.0.10. I downgraded to 7.0.6 and everything works with Vagrant 2.3.7.

I was also able to get it to work with VB 7.0.6 Windows 10 host, Ubuntu 20.04 guest

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

No branches or pull requests

6 participants