[SOLVED] Can't mount shared folder - Virtualbox - Ubuntu 18 Guest OS - With Guest Addition
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
I get the following error.
Code:
wrong fs type, bad option, bad superblock on VirtualShared, missing codepage or helper program, or other error.
I found this error all over the internet, but the solution is always to install the guest addition which I already have. I've tried updating my guest OS, but no luck.
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.
and I do not see vboxadd or anything like it listed.
I tried
Code:
sudo service vboxadd start
and
Code:
sudo service vboxadd-service start
Both of these return
Code:
Failed to start vboxadd-service.service: Unit vboxadd-service.service not found.
It sounds like this is might be my problem. Any idea how to get the service installed and running? My graphics are adjusted properly and I see the VBox_GAs_5.2.22 mounted as a cd on the desktop.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.