Fredrick Posted July 3, 2018 Share Posted July 3, 2018 Hi, I'd think this should be fairly easy, but my google-skills seem to have failed me tonight. I've got a debian VM running, and simply want to mount or access /mnt/user/Downloads/youtube-dl inside this VM. How can I do this? I'm not sure how "Unraid mount tag" works inside the settings for the VM, but I cant find the share after setting it up there. Tried various mount-tags such as "/mnt/youtube" Quote Link to comment
JonMikelV Posted July 5, 2018 Share Posted July 5, 2018 (edited) If I'm understanding https://wiki.qemu.org/Documentation/9psetup correctly the "unRAID Mount tag" field just makes the tag (in your case "youtube") available to be mounted with a normal `mount` command such as: `sudo mount -t 9p -o trans=virtio youtube /mnt/youtube` Assuming `/mnt/youtube` existed the above command would mount your `youtube` host share location (in your case `/mnt/user/Downloads/youtube-dl/`) at `/mnt/youtube' in your VM. So "unRAID share" doesn't actually auto-mount anything - still need to set that up with fstab as usual. Edited July 5, 2018 by JonMikelV Fixed "vrtio" typo 3 4 Quote Link to comment
Fredrick Posted July 5, 2018 Author Share Posted July 5, 2018 (edited) @JonMikelV thanks, any idea what I could do to get past this error? syslog: Edited July 5, 2018 by Fredrick Quote Link to comment
JonMikelV Posted July 5, 2018 Share Posted July 5, 2018 13 hours ago, Fredrick said: any idea what I could do to get past this error? Errmm...probably fixing the typo I put in my post will do the trick (oops!) Try "virtio" instead of "vrtio". 1 1 1 Quote Link to comment
mangopakcet Posted August 4, 2019 Share Posted August 4, 2019 Just wanted to say thanks for the above info, new to unriad/virtio and was keen to test this out, the following worked fine for me sudo mount -t 9p -o trans=virtio "Unraid Mount tag" /mnt/example 3 2 Quote Link to comment
cracksilver Posted March 23, 2020 Share Posted March 23, 2020 On 8/4/2019 at 2:01 PM, mangopakcet said: Just wanted to say thanks for the above info, new to unriad/virtio and was keen to test this out, the following worked fine for me sudo mount -t 9p -o trans=virtio "Unraid Mount tag" /mnt/example Thanks for that. It works for me aswell. Does anyone know the correct string in /etc/fstab ? greg Quote Link to comment
JonMikelV Posted April 14, 2020 Share Posted April 14, 2020 (edited) Here's what ultimately worked for me. ~~~ VM Config: Unraid Share: /mnt/user Unraid Mount tag: user ~~~ Addition to /etc/fstab: #2020-04-14 Sample auto-mount via "Unraid Mount tag" user /mnt/user 9p trans=virtio,version=9p2000.L,_netdev,rw 0 0 I've read that 9p is actually pretty bad for performance but I've never been bothered enough to figure out an alternative. 🙂 Note that I got a pretty big speed boost by adding msize=262144: user /mnt/user 9p msize=262144,trans=virtio,version=9p2000.L,_netdev,rw 0 0 Of course I only tested with a simple dd command, so YMMV: dd if=/dev/zero of=/mnt/user/testfile bs=1G count=1 oflag=direct; rm ~/mnt/user/testfile Edited May 11, 2020 by JonMikelV add msize & performance test info 3 Quote Link to comment
Zudnic Posted October 26, 2020 Share Posted October 26, 2020 (edited) --- leaving the below for the Google machine to pick up, but I figured this out. In the command described in this thread, (1) the path at the end is the LOCAL path on the VM. I got confused as hell because unRAID config has you enter a a path on unRAID. This is a "well,duh" moment and I should probably not stay up so late doing this stuff. The directory in the last parameter must exist since it's the local mount point on the VM. In other words, the two lines in unRAID are basically making an alias for the VM to use. So when the vm goes looking for "ubuntudata", unRAID translates that to "/mnt/user/ubuntudata". Just to add to this old thread, I am having a problem not addressed previously here. I have a Ubuntu VM running in the default location: /mnt/user/domains/Ubuntu2/vdisk1.img In the VM config I have set the following: Since it says "Unraid Share" I set it up as an ordinary share. The share is public and exported, SMB enabled but not AFP. I then run the command from inside the VM: sudo mount -t 9p -o trans=virtio ubuntudata /mnt/user/ubuntudata Which returns: mount: /mnt/user/ubuntudata: mount point does not exist. I have tried several different variations of this command including putting quotes around the mount tag, adding/removing trailing slashes, etc. All give that same error. It looks like Ubuntu isn't seeing anything outside its own file system. I did a find for "ubuntudata" and it came back with : me@ubuntu:/$ sudo find / -name "ubuntudata" find: '/run/user/1000/gvfs': permission denied My use case here is that my VM ISO is quite small since it is running on my cache disk. I want to create a storage space for the VM that is separate. I can connect to a regular unRAID share via SMB but I cannot download directly to it, large files fail routinely. I thought this method was supposed to circumvent gvfs? Thanks in advance. Edited October 26, 2020 by Zudnic Quote Link to comment
JonMikelV Posted October 26, 2020 Share Posted October 26, 2020 @Zudnic, did you create the `/mnt/user/ubuntudata` folders before running the `mount` command? Quote Link to comment
b0n3v Posted July 27, 2021 Share Posted July 27, 2021 On 10/27/2020 at 1:55 AM, JonMikelV said: @Zudnic, did you create the `/mnt/user/ubuntudata` folders before running the `mount` command? Yes, ofcourse. First mkdir, next mount. 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.