I have a working Guest OS (Ubantu 20.04) running on an up-to-date Host MacOS Catalina (10.15.7) with up-to-date VirtualBox (6.1.22). I have the Guest working as expected, and have configured an external hard disk as a Shared Folder. This all works as expected when run manually.
However, I'm now wanting to auto-start the VM at boot. I found out how to do this, and the Guest OS does indeed boot when the Host does. However, the shared folder is mounted with permissions that prevent reading in the Guest OS. This is true even if I shut down and manually restart the Guest OS.
However, if I disable auto-start and reboot the Host OS, when I manually start the Guest OS, then everything works fine - the Shared folder can be read from the Guest OS.
When there is a problem, the Guest OS reports I do not have permission to access the mounted Shared Folder.
Output of ls -la in Guest OS when readable:
Code: Select all
drwxrwx--- 1 root vboxsf 578 Oct 14 2019 sf_Shared
Code: Select all
drwxrwx--- 1 root vboxsf 578 Oct 14 2019 sf_Shared
Code: Select all
# pwd
/media/sf_Shared
# ls -la
ls: cannot open directory '.': Operation not permitted
Code: Select all
VBoxManage modifyvm <vmname> --autostart-enabled on
With it disabled, after the Host OS is rebooted, the Guest OS (started manually) can access the Shared Folder.
I also tried setting a long start delay so I could log into my Host OS before the Guest OS started up. While I'm able to do this, the permissions on the Shared Folder still prevent it from being accessed from the Guest OS.
Has anyone else experienced this problem and know a workaround?
Kind regards to any solutions.