LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 12-23-2018, 03:20 PM   #1
swilsy
Member
 
Registered: May 2012
Distribution: Ubuntu Server 16.04/Lubuntu 18.04
Posts: 36

Rep: Reputation: Disabled
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.
 
Old 12-23-2018, 07:02 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Is vboxfs a valid filesystem i.e check the output of the command.

cat /proc/filesystems

Have you restarted the guest?
 
Old 12-24-2018, 10:56 AM   #3
swilsy
Member
 
Registered: May 2012
Distribution: Ubuntu Server 16.04/Lubuntu 18.04
Posts: 36

Original Poster
Rep: Reputation: Disabled
Yes, vboxsf is listed in /proc/filesystems.

Yes, I have tried restarting the guest OS several times.
 
Old 12-24-2018, 12:30 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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.
 
Old 12-24-2018, 02:45 PM   #5
swilsy
Member
 
Registered: May 2012
Distribution: Ubuntu Server 16.04/Lubuntu 18.04
Posts: 36

Original Poster
Rep: Reputation: Disabled
I tried running
Code:
service --status-all
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.
 
Old 12-24-2018, 02:59 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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)

Last edited by michaelk; 12-24-2018 at 03:02 PM.
 
1 members found this post helpful.
Old 12-24-2018, 06:54 PM   #7
swilsy
Member
 
Registered: May 2012
Distribution: Ubuntu Server 16.04/Lubuntu 18.04
Posts: 36

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
mount, ubuntu 18.04, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
4MLinux as VirtualBox guest - how can I install VirtualBox Guest Additions? wghay 4MLinux 11 09-30-2018 12:17 PM
VirtualBox guest addition not worked on Ubuntu 14.04 hack3rcon Linux - Virtualization and Cloud 9 08-08-2015 10:06 AM
LXer: How To Access Virtualbox Shared Folder From Ubuntu 12.04 Guest Machine LXer Syndicated Linux News 0 06-09-2012 07:00 AM
LXer: Fix Virtualbox guest addition installation issue in Ubuntu 10.10 Maverick Meerkat LXer Syndicated Linux News 0 09-09-2010 11:20 AM
virtualbox-guest-addition Slackbuilds ppr:kut Slackware 0 09-20-2008 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration