Virtual Box host shares

Status
Not open for further replies.

sigmac2

Cadet
Joined
Aug 17, 2015
Messages
2
I have a jail with the virtual box plugin (herein jailvb) enable, and have install CentOS 7. I have added a dataset 'photos' to jailvb. This dataset has permissions rwxrwx--- root:data.

In CentOS, I have installed the virtualbox helper succssfully.
In jailvb, I have added the dataset to CentOS via
jexec virtualbox_1 tcsh
su - vbox
VBoxManage sharedfolder add centos --name "photos" --hostpath /mnt/photos/

Then, in the guest os, I have mounted that share
ssh me@guestosip
sudo mkdir -p /media/photos
sudo mount -t vboxsf photos /media/photos/

However, any operation on /media/photos resuts in "Operation not permitted"


eg

Last login: Tue Aug 18 18:04:53 MDT 2015 on pts/0
[root@localhost ~]# cd /media/photos/
[root@localhost photos]# ls
ls: cannot open directory .: Operation not permitted


Any ideas?
 

sigmac2

Cadet
Joined
Aug 17, 2015
Messages
2
If I give the dataset r-x on other, it works.
In my vbox jail, I created a new group with gid == the group that owns the dataset at the freenas level, and added vbox to this group. This did not help.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
OK, well the closest I came to this issue was when working with plugins in the past (don't use them any more), where creating datasets owned by users in FreeNAS with IDs matching the users in the plugins simplified the use of those datasets in those plugins (also made it easier to read System Processes). But you have another layer of complexity - I haven't tried mounting datasets inside VMs inside my VirtualBox jail.
 
Status
Not open for further replies.
Top