Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mount Unraid Share in a Linux VM

Featured Replies

Hi,

How should I do that to obtain best performance. I want to play a movie located in one of my shares from my debian vm.

Rgds

Edited by luca2

  • Author

ok, after some research I found some info and this is what I did to solve it...

edit vm xml and add in the GUI**:

 "unraid share"=/mnt/user0/movies/
 "unraid mount tag"=movies

then in the vm do this (or any folder you want):

    mkdir /home/ws1/movies 

then:

sudo -s nano /etc/fstab

and add at the end this line:

movies /home/ws1/movies 9p trans=virtio,version=9p2000.L,_netdev,rw 0 0

Reboot and that's it.

 

**the edit of the xml does this:

 

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

I still have a question: if I want to add a second mapped unraid share ... can I just follow the same procedure and add this to the xml?

 

    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user0/series/'/>
      <target dir='series'/>
      <alias name='fs0'/>
     
    </filesystem>

 

  • Community Expert

Why are you using /mnt/user0/ instead of /mnt/user/ ?

  • Author
2 minutes ago, trurl said:

Why are you using /mnt/user0/ instead of /mnt/user/ ?

Since it does not include system/appdata/domains shares I choosed user0. I don't want those system shares to be shared to the vm. I access them only with krusader's plugin.

Anything I may be missing?

  • Community Expert
32 minutes ago, luca2 said:

Anything I may be missing?

user0 is the user shares excluding any files that may still be on cache. If any of those other user shares are cached then they may have new files there at times.

  • Author
10 hours ago, trurl said:

user0 is the user shares excluding any files that may still be on cache. If any of those other user shares are cached then they may have new files there at times.

Hi, thx for pointing this out. It does not apply to me since I do not use cache for my shares. I only use cache for storing the vdisks.

  • Author
10 hours ago, luca2 said:

Can anyone confirm if I can add a second mapped unraid share by just editing the xml? Or maybe this may have any impact that I am not aware off?

 

  • Community Expert
Just now, luca2 said:

Hi, thx for pointing this out. It does not apply to me since I do not use cache for my shares. I only use cache for storing the vdisks.

If shares are set to not use the cache then /mnt/user and /mnt/user0 will have exactly the same contents for such shares.

 

it is also worth pointing out that Limetech have already said that use of /mnt/user0 is deprecated and it may be removed in a future Unraid release.

  • Author

ok, thx for this info. didn´t know that it will be deprecated in a future.

 

  • 1 month later...
On 11/25/2020 at 10:19 PM, luca2 said:

**the edit of the xml does this:

 


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

I still have a question: if I want to add a second mapped unraid share ... can I just follow the same procedure and add this to the xml?

 


    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user0/series/'/>
      <target dir='series'/>
      <alias name='fs0'/>
     
    </filesystem>

 

Hi all, I would also like to know how to add new mount tags after creation of a VM. Adding them in the Unraid WebGUI editor does not seem to work on my system.

Best,

OP

  • 1 year later...

Sorry for replying to this old post. Is it also possible to mount the share with systemd instead of within fstab?

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.