Skip to content

Fix Ubuntu 24.04 shutdown hang with synced folders - #13796

Open
giner wants to merge 1 commit into
hashicorp:mainfrom
giner:stas/fix_shutdown_hang
Open

Fix Ubuntu 24.04 shutdown hang with synced folders#13796
giner wants to merge 1 commit into
hashicorp:mainfrom
giner:stas/fix_shutdown_hang

Conversation

@giner

@giner giner commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Fix Ubuntu 24.04 shutdown hang by removing _netdev from VirtualBox synced folders. Fixes #13795.

Fix Ubuntu 24.04 shutdown hang by removing _netdev from VirtualBox
synced folders. Fixes hashicorp#13795.
@giner
giner requested a review from a team as a code owner March 24, 2026 12:34
@giner

giner commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

@taru-garg-hashicorp could you help here please?

@taru-garg-2000

Copy link
Copy Markdown
Member

Hi @giner,

Thanks for raising the PR! I am a little unsure about removing it from the mount options, wondering if this will break for people running older systems. I haven't researched it in depth, but it would be great if there is some documentation why newer versions of systemd require removal of this option.

Cheers!

@giner

giner commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

@taru-garg-hashicorp, I believe _netdev was never needed and it was added by mistake but let me try pull something and come back.

@giner

giner commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

@taru-garg-hashicorp, I didn't find out why exactly shutting down stops but I figured that this happens when /vagrant mount is mounted multiple times (once by fstab and another time by vagrant up) and _netdev option is in place. Here is another less invasive and arguably better fix #13804.

I still believe that _netdev is not needed as it makes vboxsf-based sync folders depend on the network (i.e. it won't be mounted until the network starts and the network won't stop until it's unmounted) however if another PR is merged this change would not be required to fix shutdown hanging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ubuntu 24.04 hangs on shutdown when using VirtualBox synced folders

2 participants