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.

Add PCIe NVME Devices To Boot Order in GUI

Featured Replies

I have an NVME passed through to my VM as the OS drive. In order for OVMF to boot from it I have to edit the XML and specify the boot order. Any time I modify my VM I have to go back in and modify the XML. If I forget to do this step it won't automatically boot from the NVME but will instead boot straight to the UEFI shell.

Solved by SimonF

15 minutes ago, Taddeusz said:

I have an NVME passed through to my VM as the OS drive. In order for OVMF to boot from it I have to edit the XML and specify the boot order. Any time I modify my VM I have to go back in and modify the XML. If I forget to do this step it won't automatically boot from the NVME but will instead boot straight to the UEFI shell.

Boot order has been added to the gui in 6.11

  • Author
29 minutes ago, SimonF said:

Boot order has been added to the gui in 6.11

 

The problem is that if you pass through the device as a PCIe device the OVMF doesn't see it as a bootable device unless you add the boot order the the XML. I've changed it to a physical drive pass through but that's different. It shows up in the guest OS as a "QEMU HARDDISK" rather than a PCIe device. Apparently there's a slight performance penalty from doing it this way rather than just passing through the entire PCIe device.

  • Author

It would be nice to be able specify a bound PCIe device as bootable drive and be able to specify a boot order for that device. I'm not the only one to be doing this.

So you are looking for the following boot order options.

 

image.png.2dff7c34a1c5748557a46d1040409722.png

 

So do you bind NVME on sysdevs

 

image.thumb.png.2e066e965897ef23a2e2b8897ba43c34.png

 

but you want to be able to put a boot order next to a NVME drive on the PCI dev list here

 

 

image.thumb.png.2a03672672b64113cebd7abc9b68ddec.png

 

21 hours ago, Taddeusz said:

@SimonF Yes

Just to confirm your XML will have an entry similar to this. But guessing if you add/change hardware you could break source address?

 

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
      </source>
      <boot order='5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>

  • Author
6 minutes ago, SimonF said:

Just to confirm your XML will have an entry similar to this. But guessing if you add/change hardware you could break source address?

 

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
      </source>
      <boot order='5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>

 

Yes, that's correct.

  • Solution
On 10/9/2022 at 6:49 PM, Taddeusz said:

 

Yes, that's correct.

Created the following, but not tested booting from the NVME. Only type 0108(NVME) devices will have boot order input.

 

image.thumb.png.32585db38031fca969a296f510d5bda8.png

 

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
      </source>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>

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.