Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VirtioFS Passthrough & Exclusive Shares

Featured Replies

Morning all,

Has anyone noticed a bug that prevents virtiofs share passthroughs working with VMs, where the share is set as exclusive access?


Specifically this GUI error when starting the VM:

internal error: virtiofsd died unexpectedly

 

And this log error:

libvirt: error : libvirtd quit during handshake: Input/output error

 

Workaround is to do something to turn off exclusive shares, such as enabling NFS, but its a weird bug.

 

Anyone else come across this?

 

Thanks!

  • Author

Re-tested after the 6.12.2 update today, same error persists, same workaround resolves.

  • 2 months later...

VirtioFS doesen't like the simlink to the true disk location that the new exclusive shares feature sets up. Unraid's VM manager automatically points to the simlink location instead of the disk location. The below changes basically bypass the (simlink) middleman and play nice with virtiofs.

 

You can resolve this without the NFS workaround by changing the <source dir=' '/> path in your VM's XML.

 

BEFORE

    <filesystem type='mount' accessmode='passthrough'>
      <driver type='virtiofs' queue='1024'/>
      <binary path='/usr/libexec/virtiofsd' xattr='on'>
        <cache mode='always'/>
        <sandbox mode='chroot'/>
      </binary>
      <source dir='/mnt/user/some_share_name'/>
      <target dir='vm_storage'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </filesystem>

 

AFTER

    <filesystem type='mount' accessmode='passthrough'>
      <driver type='virtiofs' queue='1024'/>
      <binary path='/usr/libexec/virtiofsd' xattr='on'>
        <cache mode='always'/>
        <sandbox mode='chroot'/>
      </binary>
      <source dir='/mnt/cache_ssd/some_share_name'/>
      <target dir='vm_storage'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </filesystem>

Edited by Flute777

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.