Can't mount shared folder - Virtualbox - Ubuntu 18 Guest OS - With Guest Addition
Hello all,
I am having trouble mounting a shared folder on my guest OS using Virtualbox. My host OS is Windows 10 and my guest OS is Ubuntu 18 Desktop. I created the shared folder in the Virtualbox settings. I tried both automount and not. Virtualbox Guest Addition 5.2.22 is installed on the guest OS and appears to be working. When I run Code:
sudo mount -t vboxsf sharedfoldername ~/Desktop/sharedfolder Code:
wrong fs type, bad option, bad superblock on VirtualShared, missing codepage or helper program, or other error. |
Is vboxfs a valid filesystem i.e check the output of the command.
cat /proc/filesystems Have you restarted the guest? |
Yes, vboxsf is listed in /proc/filesystems.
Yes, I have tried restarting the guest OS several times. |
Forgot to ask if vboxadd-service is running. I just installed Ubuntu 18.04 as a guest under Windows 7 running VirtualBox 5.2.22 and shared folders works. Without knowing exactly how your system is configured from the default it is difficult to determine why isn't working.
Just as a side note the latest Windows 10 update laptop appears to have broken the guest dhcp clients in networking bridged mode but shares folders still works. |
I tried running
Code:
service --status-all I tried Code:
sudo service vboxadd start Code:
sudo service vboxadd-service start Code:
Failed to start vboxadd-service.service: Unit vboxadd-service.service not found. |
Open a terminal window and cd to the directory which should be /media/VBox_GAs_5.2.22 (or something like that). Run the command
sudo ./VboxGuestAdditions.run (whatever its named...) and see what happens. You need to install the gcc, kernel headers and dkms first in order for Guest Additions to compile and install. sudo apt install build-essential dkms linux-headers-$(uname -r) |
That did it. After running ./VboxGuestAdditions.run the share is working. I turned off auto-mount in the Virtualbox options and added an entry to fstab to mount the shared directory to a folder on my desktop with my uid and gid. Without this, it automatically mounts with the user and group as root. I also had trouble editing with gedit one a text file was altered on the host OS. To solve this, I installed Notepad3. This seems to work great.
|
All times are GMT -5. The time now is 03:18 PM. |