I am running in a weird situation after having upgraded to Virtualbox 7.0.8 yesterday, everything went fine for a while, but all of a sudden most of the time during provisioning shared folder mounts will disappear when executing an apt-get install. Sometimes when installing a first package already, sometimes only on the 2nd apt-get call, so it does not seem to be something that the packages themselves do.

The provisioning scripts have not changed in quite a while, and until today I never faced that problem. It did not happen on the first ca. 100 runs with the new Virtualbox version, only after that. Nothing else changed on the host machine in that time frame, and even after a host system reboot the same problem persists.

I have checked the systemd journal but no unmount log message or any other unusual thing can be seen at the time apt-get runs and the shared folders vanish. I also did a "strace -f" of the apt-get call, but nothing visible related to the shared folders either.

I also tried to increase the VM memory size, just in case and as I started to get desperate, but that did not make a difference either.

Pretty much lost at this point I am hoping for clues ...


vagrant 2.3.4
virtualbox 7.0.8
host OS: Ubuntu 22.10
guest OS: Ubuntu 20.04
  • What can you reliably reproduce? If you start from a state where the shared folders are present, capture the output of the mount command. You say "during provisioning" -- are you installing many packages with apt-get install ... ? If so: can you narrow it to a subset of packages that trigger the problem?
    – ckhan
    Commented Apr 26, 2023 at 0:49
  • @ckhan I did check with mount | grep vboxsf and found that the default /vagrant shared folder and the additional one I had on /mnt vanished on apt-get mariadb-server mariadb-backup. So I determined the list of packages, including dependencies, that got installed in that step and did install them one by one in a loop instead. /vagrant and /mnt mounts would silently vanish sometimes on 2nd loop iteration, sometimes on first alredy. Still present before apt-get install, gone right after. Nothing in syslog. Commented Apr 26, 2023 at 14:38
  • After having reverted all of my debug output additions the original provisioning script now works fine again though, weirdly enough. Fingers crossed that it stays that way ... Commented Apr 26, 2023 at 14:42
  • I actually even strace'd the apt-get calls, but no trace of any unmount action, or any other reference of the two shared folders, in there either :o Commented Apr 26, 2023 at 15:16
  • Puzzling. I looked through the post-install script for mariadb-server, and while it does a lot of stuff, no mention of mount. Of course, as you note, it does a lot of other stuff, and pulls in many other deps. You have an strace that follows execs/forks and it's from an instance of the mount disappearing?
    – ckhan
    Commented Apr 27, 2023 at 7:46


You must log in to answer this question.

Browse other questions tagged .