How to mount a user share in an Ubuntu VM without a terrible performance hit?


Recommended Posts

I have an Ubuntu VM I want to use for development but I need the files to also be accessible outside of the VM.

 

I have an Unraid user share set up with all of the project files and want to mount it within the VM.

 

My first attempt was with the default 9p mount from the webui.
This was painfully slow. Just awful.

 

I then tried mounting manually with cifs.
Was a bit tricky to get this working because some npm packages I'm using requires symlinks but was able to work around this by using mfsymlinks.
This was faster, but still slower than I'd like for developing on every single day.

I just can't seem to find an efficient way to have data that can be accessed from clients on the network (like user shares) but also accessed within a VM running on Unraid.

 

Would appreciate any help.

Link to comment
7 hours ago, dodgypast said:

Just bumping this to say that sharing and mounting as NFS is so much quicker.

I haven't given NFS a try yet.

Will play around with it, thanks for the tip!

Edited by Shobo
Link to comment

Just set it up with NFS and first impressions are very positive.

I think this is exactly what I needed. Thanks a bunch dodgypast.

 

Edit: wasn't as great as I had originally thought. Getting stale file errors like crazy and constantly need to remount/reboot.

Edited by Shobo
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.