[SOLVED] Unable to Boot VM Using Passthrough Disk

nukke

Member
Jul 27, 2021
5
1
8
36
I am attempting to pass through a single, entire disk to a VM but get issues post-installation of the OS. The intention is to have a disk that I can hotswap between two physical hosts, instead of having it installed on a virtual disk as a qcow2/raw image

I followed the disk passthrough guide on the wiki and I am able to get the Ubuntu 20.04 LiveCD to recognize the disk. (See attached picture.)

proxmox.png

After the installation I have verified that the bootloader is installed to the passthrough'd disk and not a different device. (See attached picture.)
1649628427949.png

However, after I power off the VM, remove the CD/DVD drive from the config, and boot back up, I get stuck in a PXE bootloop. It seems like SeaBios cannot find or recognize the disk (or maybe the bootloader?).

Here is the config file for the VM:

Code:
root@mercury:/etc/pve/qemu-server# cat 901.conf
boot: order=ide2;net0
cores: 4
memory: 8192
meta: creation-qemu=6.1.0,ctime=1649627496
name: ubuntu-disk-test
net0: virtio=EA:XX:XX:XX:XX:XX,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: /dev/disk/by-id/ata-ADATA_SU720_2K17XXXXXX,size=976762584K
scsihw: virtio-scsi-pci
smbios1: uuid=05070b7f-25cb-4fbd-9a6b-a3de22640d25
sockets: 1
vmgenid: c52186e0-473f-4f17-ae51-XXXXXXXX

EDIT: Solved by adding scsi to the boot order under Options.
 
Last edited:
Try adding scsi0 to your boot options/order (under the VMs options tab).
I just noticed that before I read your reply. Turns out because I didn't add disks with the Create VM wizard, it didn't add scsi into the boot order. I had to go to Options in the web UI and add the disk into the boot order, and it's working now.
 

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!