Posted July 8, 20241 yr Hey all, not sure if this is better off in the KVM help forum, let me know. I have created a Li9nux Mint VM on my Unraid server, and am wanting to move files from the guest to the host, but cannot work out what I'm doing wrong here. I have NFS enabled on the Share that houses the VM, set to private, and created a user in Unraid with the same credentials as used to login to the VM. I've set 'Unraid Share Mode' to 9p Mode, and specified the share that I want to see in the VM. Network source is br0, network model is e1000, and I can see an IP has been assigned. When I jump into the network section of the Linux file explorer, I can see the server as a whole, but can't access it. I also can't mount it if I manually enter the network location (ip-address/mnt/home/user/VM). I checked through a number of forum posts, but they are all relating to being unable to access the server from a Windows VM. The Unraid Docs also seem to specify help for Windows VMs, but not Linux ones so I'm assuming it's just meant to work, and I should be able to see the share I have specified in the VM settings, inside the VM itself, but I can't. Any help is appreciated, I have been beating my head against this wall for days. Diagnostics attached. homeserver-diagnostics-20240708-0710.zip
July 8, 20241 yr I have zero experience in setting NFS connections but here is an old post that might give you some help: https://forums.unraid.net/topic/68931-cant-mount-nfs-share/ Have you considered installing SAMBA and using SMB rather than NFS? Another approach to consider is bypassing using Ethernet and doing a VM-to-host mapping. IF you go this route, make sure that the you setup things so that you have proper user, group and permissions settings for the Unraid side. Here is the pertinent data: from this post: https://forums.unraid.net/topic/131730-update-from-69-to-6115-and-got-permission-denied/#comment-1219731 Note that this discussion was about Docker containers, I would think that a similiar approach is available for VM's. You might also consider googling something like this: unraid.net map vm to share Edited July 8, 20241 yr by Frank1940
July 8, 20241 yr Solution If you want to use 9p you have to manually mount the share from command line or fstab. NFS also needs some manual care... easiest is probably smb.
July 16, 20241 yr Author I ended up following this post from a few years ago to set up 9p https://www.reddit.com/r/unRAID/comments/gvx12v/how_to_access_a_share_from_linux_vm_in_unraid/ Edited to add: Once you follow the steps above to mount the share, reboot. When you log back into the client, the share should be in the path specified. In my case /mnt/disk5/VM/vmshare (I specified a disk in my VM settings in unraid instead of a user share) Edited July 16, 20241 yr by RancidGnar broken link, additional information
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.