NethServer VM - how to pass through a share


NLS

Recommended Posts

In VM definition I have:

Quote

 

     <filesystem type='mount' accessmode='passthrough'>
       <source dir='/mnt/user/'/>
       <target dir='shares'/>
       <alias name='fs0'/>
       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
     </filesystem>


 

In NethServer /etc/fstab the last line is this:

Quote

shares /shares 9p trans=virtio,version=9p2000.L,_netdev,rw 0 0

What am I doing wrong?
If I try

Quote

mount shares

...it says unknown file system type 9p.
I guess Centos doesn't have 9p enabled? Can I enable it?
 

Link to comment

Disclaimer:  I am no expert on this and have never tried what you want to do. 

 

I don't know if this will help, but a year or so ago if I recall correctly, a user was trying to do something similar and no unRAID shares would show up in the VM.  

 

It turns out they had the Network Bridge in the VM set to virbr0.  This creates an isolated virtual network in the VM with no access to anything outside the VM.  Changing it to br0 allowed unRAID shares to be accessible within the VM.

 

 

vm.png

Link to comment

Thanks man but no that wasn't it.

The issue seems to be that 9p virtual fs is not enabled in CentOS (one of the things Red Hat doesn't officially implement... it getting pathetic actually, I keep hitting this barrier).

So I used NFS shares instead.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.