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.

Nvme passtrough to VM - how to

Featured Replies

Solved by TDA

  • Community Expert
3 minutes ago, TDA said:

Update:
After waiting long enough the VM starts indeed (strange it need so much time though... like 1/2mins)

And I'm not able to start VM with VNC which prevents me to start the ISO - so either the performance are killed for a reason, or something is still missing.

 

 

This is correct. Will keep looking to see if there is another way.

 

<devices>
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
      <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </source>
    <alias name='ua-test'/>
  </hostdev>
</devices>

<qemu:override>
  <qemu:device alias='ua-test'>
    <qemu:frontend>
      <qemu:property name='x-msix-relocation' type='string' value='bar2'/>
    </qemu:frontend>
  </qemu:device>
</qemu:override>

  • Author
29 minutes ago, SimonF said:

This is correct. Will keep looking to see if there is another way.

 

<devices>
  <hostdev mode='subsystem' type='pci' managed='yes'>
    <source>
      <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </source>
    <alias name='ua-test'/>
  </hostdev>
</devices>

<qemu:override>
  <qemu:device alias='ua-test'>
    <qemu:frontend>
      <qemu:property name='x-msix-relocation' type='string' value='bar2'/>
    </qemu:frontend>
  </qemu:device>
</qemu:override>

This is slightly different from what I made:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      </source>
      <boot order='1'/>
      <alias name='ua-test'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
  <qemu:override>
    <qemu:device alias='ua-test'>
      <qemu:frontend>
        <qemu:property name='x-msix-relocation' type='string' value='bar2'/>
      </qemu:frontend>
    </qemu:device>
  </qemu:override>

 

In the code you posted, the driver name was removed, it's on purpose?

  • Community Expert
3 minutes ago, TDA said:

This is slightly different from what I made:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      </source>
      <boot order='1'/>
      <alias name='ua-test'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
  <qemu:override>
    <qemu:device alias='ua-test'>
      <qemu:frontend>
        <qemu:property name='x-msix-relocation' type='string' value='bar2'/>
      </qemu:frontend>
    </qemu:device>
  </qemu:override>

 

In the code you posted, the driver name was removed, it's on purpose?

Maybe try without the driver, was another post I was looking at didn't have that entry.

  • Author
Just now, SimonF said:

Maybe try without the driver, was another post I was looking at didn't have that entry.

Ah understood.
I've tried to remove the BOOT ORDER = 1 from the XML, and now I was able to start the ISO:

image.thumb.png.d719b8339218a35ea5f3a88c96433c99.png

 

But after 5min is still on the "loading wheel" - instead of showing the "Windows Setup" which should appear after 5-10sec after Loading Files is finished.
i'll try now removing the driver string you mentioned.

  • Author

Just tried, after the start of the VM (which took exactly the same time), I checked the .xml and 

<driver name='vfio'/>

Was there again.

  • Author

After a good while, the loading wheel disappeared, but instead of showing the "Windows Installation Setup" its only shows a black screen:

image.thumb.png.0078ddb9fdc43cfda7a28c9c7cbb0ee9.png

 

I'm really tempted to get another nvme drive (samsung) - but I'm not sure if I will not encounter the same issue... 😐 

 

  • Author
  • Solution

So in the end I bought a Samsung 990Pro Nvme disk.

With this one the VM works like expected - so I will use the other drive as an extension of my PC and I close this thread.

Thanks a lot for your support and effort.

  • Community Expert
8 hours ago, TDA said:

So in the end I bought a Samsung 990Pro Nvme disk.

With this one the VM works like expected - so I will use the other drive as an extension of my PC and I close this thread.

Thanks a lot for your support and effort.

No worries happy to help.

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.