My passtrough HD will not work for my VM

gunfus

New Member
Nov 16, 2022
11
0
1
I read the wiki and found some post about how to passthrough a Physical HD to a VM, but I still can't get it to work.

Found this and a couple of other ones: https://forum.proxmox.com/threads/n...hysical-disk-taken-from-a-real-machine.83382/

Here my byID listing:
19:27 ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243 -> ../../sdc
19:27 ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part1 -> ../../sdc1
19:27 ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part2 -> ../../sdc2
19:27 ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part3 -> ../../sdc3

On the wiki tutorial it doesn't give an example of a partition drive, should I point to the the one that is /sdc or the /sdc1 further to that this partitions are:
/dev/sdc1 - EFI
/dev/sdc2 - EXT2
/dev/sdc3 - LVM

How do I passthrough correctly to a VM, and what kind of BIOS/HARDWARE do I need..?

I tried one like this:
------
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 2
cpu: kvm64
efidisk0: /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part1,efitype=4m,pr
e-enrolled-keys=1,size=4M
ide2: none,media=cdrom
memory: 2048
meta: creation-qemu=8.1.2,ctime=1702514051
net0: virtio=BC:24:11:01:45:3C,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part2,size=244M
scsi1: /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part3,size=953112M
scsihw: virtio-scsi-single
smbios1: uuid=1a3b4757-a2dd-4850-8d9f-86c638d41bfa
sockets: 1
vmgenid: 57474eb5-d907-4427-b76e-528c3d6d7f34
------

But that didn't work.... :(
 
Last edited:
Okay so moved ahead a bit more than since I posted.. if I add the format=raw and removed the pre-enrolled-key=1 param, that seems to get over the problem, now I am getting a display not started by guest...<sigh>

------
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 2
cpu: kvm64
efidisk0: /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part1,format=raw,efitype=4m,size=4M
ide2: none,media=cdrom
memory: 2048
meta: creation-qemu=8.1.2,ctime=1702514051
net0: virtio=BC:24:11:01:45:3C,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part2,size=244M
scsi1: /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243-part3,size=953112M
scsihw: virtio-scsi-single
smbios1: uuid=1a3b4757-a2dd-4850-8d9f-86c638d41bfa
sockets: 1
vmgenid: 57474eb5-d907-4427-b76e-528c3d6d7f34
------
 
You are passing individual partitions of the physical disk as individual virtual disks to the VM. This will not boot like this. What you will probably want to do is to pass the entire disk /dev/disk/by-id/ata-WDC_WD10EZEX-XXXXXXX_WD-WCC3425243 to the VM.

Also do not use the EFI system partition (ESP) of your disk as an EFI disk. Those are two different things. The ESP contains the EFI boot loader and the EFI disk is just a place to store the EFI settings like the boot order.

and what kind of BIOS/HARDWARE do I need..?
That depends on which boot loaders are present on the disk. Since the disk contains an EFI partition I would assume that an EFI boot loader is present. In that case you can use OVMF. If that does not work try using SeaBIOS.
 

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!