HDD passthrough and SMART

NicCo

New Member
Feb 14, 2025
5
0
1
Hi,
My PVE 8.4.9 worked with HDD passthrough to a VM and scsiblock=1 to get SMART info inside the VM.
Since the upgrade to PVE 9.0, scsiblock=1 doesn't work anymore. VM can't start if I add it.
Do you have a tip to get SMART info inside the VM with PVE 9 ?
Thank you !
 
The start logs says :

swtpm_setup: Not overwriting existing state file.
kvm: -device scsi-block,bus=virtioscsi6.0,channel=0,scsi-id=0,lun=6,drive=drive-scsi6,id=scsi6,device_id=drive-scsi6,write-cache=on: Property 'scsi-block.write-cache' not found
stopping swtpm instance (pid 1149308) due to QEMU startup error
TASK ERROR: start failed: QEMU exited with code 1
 
Yeah I can reproduce it. Might be worth of a bug report? A workaround for now is to add cache=. It will complain but at least it starts. I couldnt test if it still functions as expected though.
 
Last edited:
Thank you, I'll try cache= (without any value ? Just = ?).
It seems to be qemu related so I already made a bug report to qemu gitlab. Do you think I need to report it to proxmox bug tracker ?
 
Yeah just like that without value. I probably would as it affects PVE and is a regression if it worked before.
 
Last edited:
Ok so I just tried cache=, it starts but it doesn't work as expected. SMART info are not available. The disk is still recognized as QEMU disk. I'm going to open a bug report. Thank you