Shared Folder btw Windows 10 host and Ubuntu 20.04 guest goes missing in reboot

Discussions related to using VirtualBox on Windows hosts.
Post Reply
prana
Posts: 9
Joined: 23. Oct 2017, 14:13

Shared Folder btw Windows 10 host and Ubuntu 20.04 guest goes missing in reboot

Post by prana »

After installing the Guest Additions 6.1.12, and after restart, the shared folders goes missing from the folders list. I've to re-run the GA software again and every time to get the shared folders back in the folder listings...

Code: Select all

Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.12 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-5.4.0-42-generic
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
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.4.0-42-generic.
update-initramfs: Generating /boot/initrd.img-5.4.0-42-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
Press Return to close this window...
Need to run the command every time I reboot to access the shared folder:

sudo mount -t vboxsf VM_Shared /media/sf_VM_Shared/

Could someone please help?

Thanks.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Shared Folder btw Windows 10 host and Ubuntu 20.04 guest goes missing in reboot

Post by scottgus1 »

Could you please try installing Guest Additions 6.1.10, in your guest, and see if the same issue happens?
https://download.virtualbox.org/virtual ... 6.1.10.iso

Also, if you were running Virtualbox before 6.1.12, what version did you have?
prana
Posts: 9
Joined: 23. Oct 2017, 14:13

Re: Shared Folder btw Windows 10 host and Ubuntu 20.04 guest goes missing in reboot

Post by prana »

scottgus1 wrote:Could you please try installing Guest Additions 6.1.10, in your guest, and see if the same issue happens?
https://download.virtualbox.org/virtual ... 6.1.10.iso

Also, if you were running Virtualbox before 6.1.12, what version did you have?
Tried 6.1.10 as you suggested, but the same problem!!

Earlier I used 6.1.8 as far as I can remember.
Tried that GA version also... but same result now!!

The sf_VM_Shared folder goes missing from the main folder list after reboot, and the /media/sf_VM_Shared folder does not list the shared files!

Had to run the

Code: Select all

sudo mount -t vboxsf VM_Shared /media/sf_VM_Shared/
again to make it visible with right files in the folder list.


Thanks.
prana
Posts: 9
Joined: 23. Oct 2017, 14:13

Re: Shared Folder btw Windows 10 host and Ubuntu 20.04 guest goes missing in reboot

Post by prana »

Finally, I had to do this by creating a /etc/rc.local file to run as sudo at the login.

Code: Select all

#!/bin/sh -e
mount -t vboxsf VM_Shared /media/sf_VM_Shared/
exit 0
And make it executable

Code: Select all

sudo chmod +x /etc/rc.local
Nevertheless, it is quite odd to solve it like this when the Auto-Mount and Make Permanent options were selected!!
Post Reply