[pve-devel] [RFC qemu-server v2 32/32] command line: switch to blockdev starting with machine version 10.0

DERUMIER, Alexandre alexandre.derumier at groupe-cyllene.com
Mon Jun 23 11:12:43 CEST 2025


>>+        my $blockdev =
>>PVE::QemuServer::Blockdev::generate_drive_blockdev($storecfg,
>>$device, {});
>>+        mon_cmd($vmid, 'blockdev-add', %$blockdev, timeout => 60);
>>+
>>+        return 1;

should we handle error here ?  (I don't known if a blockdev-add can
fail , and if it need 60s timeout like drive-add, as I think that the
blockdev open is done in device-add)





More information about the pve-devel mailing list