VM fails to boot after upgrade to PVE 9

Taledo

Active Member
Nov 20, 2020
82
10
28
54
Bonjour all,

I've upgraded a lab node to PVE9 today. Everything went well until it didn't.

This lab setup uses a virtual router for its networking. On reboot, the VM failed to boot with this error :
Code:
WARN: no physical CD-ROM available, ignoring
kvm: -blockdev {"driver":"throttle","file":{"cache":{"direct":false,"no-flush":false},"driver":"raw","file":{"aio":"io_uring","cache":{"direct":false,"no-flush":false},"driver":"host_cdrom","filename":"","node-name":"ee50e59431a6228dc388fc821b35696","read-only":true},"node-name":"fe50e59431a6228dc388fc821b35696","read-only":true},"node-name":"drive-ide2","read-only":true,"throttle-group":"throttle-drive-ide2"}: The 'host_cdrom' block driver requires a file name

TASK ERROR: start failed: QEMU exited with code 1

Fixing this was simple : hooked up a screen and edited the VM config file in /etc/pve/qemu-server to remove the offending dvd drive.

Still, this might be worth checking before you upgrade if you have a similar setup.

Cheers,

Taledo
 
If you use a cdrom with a file that does not exist anymore, it will always fail, not just on updates. This has been the case for at least 10 years.
Therefore unhook the cd image before snapshotting the VM or edit the corresponding file manually afterwards.