Can't see virtiofs share in linux VM


Go to solution Solved by SimonF,

Recommended Posts

Setup following virtiofs settings when I created a PopOS VM (settings selected from dropdown).

 

Unraid Share Mode:  Virtiofs Mode  

Unraid Share:  user: vmShare  

Unraid Source Path:  /mnt/user/vmShare

Unraid Mount Tag: vmShare

 

The VM boots fine but I can't see the share named  "vmShare". either in locations, VM's mnt folder, or using Disks utility. Is there some step I'm missing or is there a problem?

Edited by JKunraid
added info
Link to comment
  • Solution
5 hours ago, JKunraid said:

Setup following virtiofs settings when I created a PopOS VM (settings selected from dropdown).

 

Unraid Share Mode:  Virtiofs Mode  

Unraid Share:  user: vmShare  

Unraid Source Path:  /mnt/user/vmShare

Unraid Mount Tag: vmShare

 

The VM boots fine but I can't see the share named  "vmShare". either in locations, VM's mnt folder, or using Disks utility. Is there some step I'm missing or is there a problem?

You have to create a mount point in the vm and then mount it.

 

i.e.

mkdir /mnt/vmShare

mount -t virtiofs vmShare /mnt/vmShare

Link to comment
On 4/15/2024 at 2:20 AM, SimonF said:

You have to create a mount point in the vm and then mount it.

 

i.e.

mkdir /mnt/vmShare

mount -t virtiofs vmShare /mnt/vmShare

 

I just realized I  have one more related question. How would I keep the connection to share persistent across reboots?

Link to comment
25 minutes ago, JKunraid said:

 

I opened up the  fsab file with nano.  I've never done this before so I'm not sure what the exact line I should add looks like. 

To mount the partition add a line in the fstab with the source name and the directory you want to mount it. In this example we mount the directory exported from /home/shared, that will be called home_shared. It will be mounted in the path /mnt/shared inside the virtual machine.

 

This line in the file 

home_shared /mnt/shared virtiofs rw,relatime 0 0

Link to comment
1 hour ago, SimonF said:

To mount the partition add a line in the fstab with the source name and the directory you want to mount it. In this example we mount the directory exported from /home/shared, that will be called home_shared. It will be mounted in the path /mnt/shared inside the virtual machine.

 

This line in the file 

home_shared /mnt/shared virtiofs rw,relatime 0 0

 

Got it. Thanks again.

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.