Is It possible to boot directly from a NVMe that is passed-through ?

inDane

Well-Known Member
Jan 11, 2019
40
1
48
35
Hi fellas,
im using OVMF (UEFI) and id like to boot directly from a NVMe drive, which is passed-though.

it basicly works, but not automatically. I don't know where to change it. If i change anything in the boot menu of EFI, it will "forget" it at next boot of the VM.
I can manually boot it via EFI shell or via Boot Menu, but how can I automate it?

Best
inDane
 
Hi,
I accidentally found a workaround.
Usually there is a regular disk created with the VM. The default size for a Win10 VM is 32GB. Delete/Detach this disk. Boot the machine, go into the EFI settings, change the boot order again and voilá, it works.

Best regards
inDane
 
Hi fellas,
im using OVMF (UEFI) and id like to boot directly from a NVMe drive, which is passed-though.

it basicly works, but not automatically. I don't know where to change it. If i change anything in the boot menu of EFI, it will "forget" it at next boot of the VM.
I can manually boot it via EFI shell or via Boot Menu, but how can I automate it?

Best
inDane


What you have to do to make it work is the following:
1. in web gui under options, change the boot order so that 1. is scsi0 then remove cd-rom and network.
2. go to your hardware section in the web gui and remove the EFI disk if any.
3. edit your configuration file in /etc/pve/qemu-server/XXX.conf and change any scsi0 device to be scsi1.
That essentially makes the boot order you changed in 0 invalid as there is no scsi0 disk to boot and somehow it boots the nvme.

That way I got it working after fiddling around for several days.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!