loopback mount in virtualbox?

Status
Not open for further replies.

MisterE2002

Patron
Joined
Sep 5, 2015
Messages
211
Hi,
I am using the Virtualbox plugin running a Debian Guest OS. I want to mount my FreeNAS storage.
At this moment i use a "dirty" CIFS share. This has overhead, and slow performance.

I rather want to stay inside the FreeNAS box. It this possible? I tried to add a normal "add storage" to the Virtualbox plugin. In the Debian box i then did a "mount -t vboxsf". This works but the mount seems read-only in all cases.

Also found something about mount "map". But failed to implement it.
Someone has a solution?
 

MisterE2002

Patron
Joined
Sep 5, 2015
Messages
211
No, but it seems permission related. If i make a file world writable it works.
That is not the solution though.

It seems the "virtualbox" process is running as user 1001.
What i find strange is that i see the "sub-vm's" as a separate process in freenas.
Is each VM a own jail?

Another solution is also appriciated

freenas# ps aux | grep -i virtualbox
edwin 7587 0.0 0.1 68020 10100 ?? SJ 7:15PM 0:03.67 /usr/local/lib/virtualbox/VBoxXPCOMIPCD
edwin 7589 0.0 0.1 130884 17152 ?? SJ 7:15PM 0:08.20 /usr/local/lib/virtualbox/VBoxSVC --auto-shutdown
edwin 8638 0.0 3.6 799396 596432 ?? SJ 7:16PM 5:53.17 /usr/local/lib/virtualbox/VBoxHeadless --comment Debbie --startvm 6947038b-ad8d-4409-a05c-c08a5fceca3b --vrde config
root 12226 0.0 0.0 16284 1984 0 S+ 7:57PM 0:00.00 grep -i virtualbox


A automount on my "Debbie" VM seems to fail. After a boot i see this

root@debian:/mnt# mount
...
none on /media/sf_share_dl type vboxsf (rw,nodev,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=50632k,mode=700)

Even touching in the "media" mount fails:
root@debian:/media/sf_share_dl# touch edje2
touch: cannot touch ‘edje2’: Protocol error
 
Last edited:

MisterE2002

Patron
Joined
Sep 5, 2015
Messages
211
ok, found it. the VM's are running under "edwin". So i added the rights to the dataset.

I am still trying to find a nice solution. I also use a "real" jail to write to the share. Jails are running under "media"

Furthermore. i noticed that the vboxsf mount seems slower than my 100mb network loopback
 
Last edited:
Status
Not open for further replies.
Top