# echo '{"execute": "qmp_capabilities"}{"execute": "query-block", "arguments": {}}' | socat - /var/run/qemu-server/111.qmp | jq
{
"QMP": {
"version": {
"qemu": {
"micro": 0,
"minor": 0,
"major": 6
},
"package": "pve-qemu-kvm_6.0.0"
},
"capabilities": []
}
}
{
"return": {}
}
{
"return": [
{
"io-status": "ok",
"device": "drive-ide2",
"locked": true,
"removable": true,
"inserted": {
"iops_rd": 0,
"detect_zeroes": "off",
"image": {
"virtual-size": 1980760064,
"filename": "/var/lib/vz/template/iso/Rocky-8.4-x86_64-minimal.iso",
"format": "raw",
"actual-size": 1980764160,
"dirty-flag": false
},
"iops_wr": 0,
"ro": true,
"node-name": "#block116",
"backing_file_depth": 0,
"drv": "raw",
"iops": 0,
"bps_wr": 0,
"write_threshold": 0,
"encrypted": false,
"bps": 0,
"bps_rd": 0,
"cache": {
"no-flush": false,
"direct": false,
"writeback": true
},
"file": "/var/lib/vz/template/iso/Rocky-8.4-x86_64-minimal.iso"
},
"qdev": "ide2",
"tray_open": false,
"type": "unknown"
},
{
"io-status": "nospace",
"device": "drive-scsi0",
"locked": false,
"removable": false,
"inserted": {
"iops_rd": 0,
"detect_zeroes": "on",
"image": {
"virtual-size": 8053063680000,
"filename": "/hdd-wd-8tb.1/images/111/vm-111-disk-0.raw",
"format": "raw",
"actual-size": 7937285545984,
"dirty-flag": false
},
"iops_wr": 0,
"ro": false,
"node-name": "#block380",
"backing_file_depth": 0,
"drv": "raw",
"iops": 0,
"bps_wr": 0,
"write_threshold": 0,
"encrypted": false,
"bps": 0,
"bps_rd": 0,
"cache": {
"no-flush": false,
"direct": true,
"writeback": true
},
"file": "/hdd-wd-8tb.1/images/111/vm-111-disk-0.raw"
},
"qdev": "scsi0",
"type": "unknown"
},
{
"io-status": "ok",
"device": "drive-sata1",
"locked": false,
"removable": false,
"inserted": {
"iops_rd": 0,
"detect_zeroes": "on",
"image": {
"virtual-size": 7696581394432,
"filename": "/hdd-wd-8tb.2/images/111/vm-111-disk-0.raw",
"format": "raw",
"actual-size": 1126254546944,
"dirty-flag": false
},
"iops_wr": 0,
"ro": false,
"node-name": "#block549",
"backing_file_depth": 0,
"drv": "raw",
"iops": 0,
"bps_wr": 0,
"write_threshold": 0,
"encrypted": false,
"bps": 0,
"bps_rd": 0,
"cache": {
"no-flush": false,
"direct": true,
"writeback": true
},
"file": "/hdd-wd-8tb.2/images/111/vm-111-disk-0.raw"
},
"qdev": "sata1",
"type": "unknown"
}
]
}