luca2 Posted November 16, 2020 Share Posted November 16, 2020 (edited) 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 November 25, 2020 by luca2 Quote Link to comment
luca2 Posted November 25, 2020 Author Share Posted November 25, 2020 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> 2 Quote Link to comment
trurl Posted November 25, 2020 Share Posted November 25, 2020 Why are you using /mnt/user0/ instead of /mnt/user/ ? Quote Link to comment
luca2 Posted November 25, 2020 Author Share Posted November 25, 2020 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? Quote Link to comment
trurl Posted November 25, 2020 Share Posted November 25, 2020 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. Quote Link to comment
luca2 Posted November 26, 2020 Author Share Posted November 26, 2020 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. Quote Link to comment
luca2 Posted November 26, 2020 Author Share Posted November 26, 2020 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? Quote Link to comment
itimpi Posted November 26, 2020 Share Posted November 26, 2020 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. Quote Link to comment
luca2 Posted November 26, 2020 Author Share Posted November 26, 2020 ok, thx for this info. didn´t know that it will be deprecated in a future. Quote Link to comment
Opawesome Posted January 10, 2021 Share Posted January 10, 2021 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 Quote Link to comment
bigsub Posted October 2, 2022 Share Posted October 2, 2022 Sorry for replying to this old post. Is it also possible to mount the share with systemd instead of within fstab? Quote Link to comment
Recommended Posts
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.