I think the problem is different
# midclt call vm.query | jq '[.[] | select(.id == 16) | .name, .status.state, .status.pid]'
[
"MSWIN_AD",
"RUNNING",
11695
]
# ps -fp 11695
PID TT STAT TIME COMMAND
# midclt call vm.query | jq '[.[] | select(.id == 16) ]'
[
{
"id": 16,
"name": "MSWIN_AD",
"description": "AD e DNS Windows 2022",
"vcpus": 1,
"memory": 4096,
"autostart": true,
"time": "UTC",
"grubconfig": null,
"bootloader": "UEFI",
"cores": 4,
"threads": 1,
"shutdown_timeout": 90,
"devices": [
{
"id": 179,
"dtype": "NIC",
"attributes": {
"type": "VIRTIO",
"mac": "00:a0:98:6b:9b:48",
"nic_attach": "bridge0"
},
"order": 1003,
"vm": 16
},
{
"id": 180,
"dtype": "DISK",
"attributes": {
"path": "/dev/zvol/poolmain/vmds/MSWIN_AD-ohdfmf",
"type": "VIRTIO",
"physical_sectorsize": null,
"logical_sectorsize": null
},
"order": 1001,
"vm": 16
},
{
"id": 181,
"dtype": "CDROM",
"attributes": {
"path": "/mnt/poolmain/vmds/ISO/WindowsServer2022-LTSC_21H2-Build_20348.1006.iso"
},
"order": 1000,
"vm": 16
},
{
"id": 182,
"dtype": "VNC",
"attributes": {
"vnc_port": 18838,
"wait": false,
"vnc_resolution": "1024x768",
"vnc_bind": "192.168.111.112",
"vnc_password": "",
"vnc_web": true
},
"order": 1002,
"vm": 16
},
{
"id": 187,
"dtype": "CDROM",
"attributes": {
"path": "/mnt/poolmain/vmds/ISO/virtio-win-0.1.240.iso"
},
"order": 1000,
"vm": 16
}
],
"status": {
"state": "RUNNING",
"pid": 11695,
"domain_state": "RUNNING"
}
}
]