Solved

Oracle VM VirtualBox running on Ubuntu Mate 16.04.1 - Shared Folder Access Issue

Posted on 2016-11-13
23
189 Views
Last Modified: 2016-11-26
I am running Oracle VM VirtualBox 5.1.8 with Ubuntu Mate 16.04.1 as the host system. I am running Ubuntu Mate 15.10 as the guest system. I have the shared folder set up on the host as 'UbuntuSharedFolder' , that comes across the guest side as ''sf_UbuntuSharedFolder'.

See screen shot:

Shared folder: No permission given to Guest OS to access
It gets automatically mounted every time I start the Guest OS, but it says it doesn't, have the permissions to open it when i try to access from the guest OS. In the host if I try to run this on the host OS:
user@user-A55MLV:~$ sudo usermod -a -G vboxusers $USER
[sudo] password for user: 
user@user-A55MLV:~$ 

Open in new window


It accepts it without errors but it doesn't solve the problem, so it may not run right.

What do I do that the shared folder is accessible from the guest OS?
0
Comment
Question by:AttilaB
  • 12
  • 9
  • 2
23 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 41886111
You need to set up the user/group permissions for that folder on the host so the Users in your VM have the necessary rights. Probably for such a folder you would need 777 rights if you want the users to be able to do everything.
0
 

Author Comment

by:AttilaB
ID: 41886296
How do you set up the user/group permissions for that folder on the host?
0
 
LVL 88

Expert Comment

by:rindi
ID: 41886334
You use the "chmod" command for that. Below is a link that explains it:

https://en.wikipedia.org/wiki/Chmod
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 14

Expert Comment

by:fmarzocca
ID: 41886444
chmod a+rw <path-to-your-shared-folder>

Open in new window

(in the host)
0
 

Author Comment

by:AttilaB
ID: 41887230
Ok, I did this on the host OS, since my folder is called 'UbuntuSharedFolder':

user@user-A55MLV:~$ chmod a+rw ~/UbuntuSharedFolder

Open in new window


And it took it without errors.

Still something is wrong here, if you look at the shared folder properties from inside the guest OS:
(Permissions cannot be determined)
Permissions cannot Be Determined
But, it seems to properly point to the host file system drive, because that's indicated as such:
Pointing to Host OS drive, if you look at size
If I look at the folder from the host OS:
(It looks like the permissions are right.)
From Host OS Permissions are right.
So how come the permissions are right, still it cannot see the files or even permissions for that folder from the Guest OS?
0
 
LVL 88

Expert Comment

by:rindi
ID: 41887573
Within VBox itself, where you setup shared folders, also make sure that "Read-Only" is unchecked.
0
 

Author Comment

by:AttilaB
ID: 41889023
There is no permissions settings for this folder inside the guest OS: It is owned by 'something' outside the virtual machine, in the host OS.
Also it is set for no access. If you go to properties of the folder this is what you see:
No access to permissions from inside guest OS
And YES, I did set up full access not just read-only in VirtualBox when I created shared folder:
Full Access Set from VirtualBox
So how do you find out who has this permission in the host OS, and how do you change it?
0
 
LVL 88

Expert Comment

by:rindi
ID: 41889305
Re-install the VirtualBox extensions within the VM. Make sure it is a current version that corresponds to VirtualBox version you are using.
0
 

Author Comment

by:AttilaB
ID: 41890818
That's what I did originally, and I did it again: (both latest versions)
The versions are the same
Re-install successful:
Installation Successful
Still, it is not working just the same.
0
 
LVL 88

Expert Comment

by:rindi
ID: 41891098
That's just the extension pack. But did you also update the guest additions within the VM itself? The extension pack alone does nothing. It just provides the drivers which then have to be installed within the VM. Ubuntu (I think) comes with VirtualBox guest additions already included in the default kernel modules, but those are usually not for the newest VBox versions.
0
 

Author Comment

by:AttilaB
ID: 41891438
That's news to me. Other than 'Insert Guest Additions' from the menu, is there another way of getting to guest additions for a particular OS?

If I look on the download site I don't see any updates for that:
https://www.virtualbox.org/wiki/Downloads

How do you update the Guest Additions for a particular OS?
0
 
LVL 88

Expert Comment

by:rindi
ID: 41891485
In the Devices menu, you have the guest adons option. That then enables the iso file for the VM, which you can mount (Ubuntu should mount it automatically), and then show it like a CD Rom. There you then have a script you can run which installs the additions within the VM.

You should also remember to re-run this whenever your Ubuntu updates install new kernel versions.
0
 

Author Comment

by:AttilaB
ID: 41894233
Well, that did not work:
(Internal Error in Ubuntu 15.10 guest OS)

This is what it gave me when attempting to unstall:
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.8 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
Press Return to close this window...
^CSignal caught, cleaning up
Press Return to close this window..

Open in new window


I think I will try to set up a new version of the Guest OS that's earlier than this, that used to work.
I will let you know.
0
 

Author Comment

by:AttilaB
ID: 41894337
Well, I set up a new OS version 15.04 as the guest, and it doesn't work either:

When trying to install guest additions:

Installing Guest Additions:

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.8 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.
Press Return to close this window...


Log File:

/opt/VBoxGuestAdditions-5.1.8/src/vboxguest-5.1.8/build_in_tmp: 67: /opt/VBoxGuestAdditions-5.1.8/src/vboxguest-5.1.8/build_in_tmp: make: not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Open in new window


I am pretty much ready to give up on Ubuntu 16.04 as host and re-install 15.04 as the host OS as well and start everything from scratch.
Ubuntu seems to be like Windows: harder to set up each time there is a new release, for the same old thing.
I had trouble with connecting to wi-fi, other error messages off the start regarding the installation of packages so far...
0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 41894820
I am working with 16.04 with no problems since months.

Why don't you do exactly what Ubuntu asks you, to look in /var/log/VBoxGuestAdditions.log for error details? Maybe there you can find a solution.
0
 

Author Comment

by:AttilaB
ID: 41895830
Ok. I will do that and let you know.
0
 

Author Comment

by:AttilaB
ID: 41898518
It is practically working now. I could mount a folder in guest that's linked to a folder on host. In spite of not being able to install guest addition again, fully. I updated everything to the latest version of VirtualBox available:
Updated VirtualBox to latest version
So, it is a different folder I could mount, different then what was created automatically, but works if mounted like this:
sudo mount -o uid=$UID,gid=$(id -g)   -t vboxsf   UbuntuSharedFolder   ~/UbuntuSharedFolder_on_host

Open in new window


I used this shared folder working link what I am sending you right now to copy to the host OS.

Still, the Guest Addition Cannot be updated: (see vboxadd-install.log)
/opt/VBoxGuestAdditions-5.1.10/src/vboxguest-5.1.10/build_in_tmp: 67: /opt/VBoxGuestAdditions-5.1.10/src/vboxguest-5.1.10/build_in_tmp: make: not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Open in new window

In spite of this, all VirtualBox functions appear to be functional, such as shared clipboard.

I don't know what this means.
0
 
LVL 88

Expert Comment

by:rindi
ID: 41898750
I think you are missing "make". I'm not sure what package make comes with, but I believe it is in in the kernel headers. or kernel tools.
0
 

Author Comment

by:AttilaB
ID: 41899225
Ok. I did an Internet search and it appears that what I need to do to re-install 'make' is the following:
I will try this, when I get home today:
sudo apt-get install --reinstall build-essential

Open in new window

What do you think?
0
 
LVL 88

Expert Comment

by:rindi
ID: 41899413
Just try it.
0
 

Author Comment

by:AttilaB
ID: 41900031
Well, it was probably not installed, because it cannot be installed:
user@user-A55MLV:~$ sudo apt-get install --reinstall build-essential
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'build-essential' has no installation candidate
user@user-A55MLV:~$ 
user@user-A55MLV:~$ 
user@user-A55MLV:~$ sudo apt-get install --reinstall make
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of make is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
user@user-A55MLV:

Open in new window

So I am still lost here.
0
 
LVL 88

Accepted Solution

by:
rindi earned 500 total points
ID: 41900239
Have you tried just:

sudo apt-get update
then
sudo apt-get install make
0
 

Author Closing Comment

by:AttilaB
ID: 41902564
I downgraded to Ubuntu 15.04 and that does not have this or any problem problem if I use the suggested older version 4 VirtualBox with it.

I still very much appreciate your help. Too bad Ubuntu is starting to get to be this mess any more. Years ago all the software I use on Ubuntu just worked at the first try, without messing with it. Now features / installed software that used to work is just flaky, even if you use an LTS release. Hopefully I will be able to get 15.04 fully configured for everything I need.

I don't see any other option. I wonder if RedHat is any practical for a home user.  Really frustrated where Ubuntu is going the last few years....
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #XenApp #Citrix Scout #Citrix Insight Services #Microsoft VMMAP #Microsoft ADEXPLORE #Microsoft RAMMAP #Microsoft TCPVIEW #Microsoft AUTORUNS #Microsoft PROCESS EXPLORER #Microsoft PROCESS MONITOR
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question