I've written a little pythong (and a moderate amount of Lisp ) but... like I said. Nothing serious so I would just be stumbling through it to figure out whatever it is. It appears to be unable to find the VM for some reason though on 13... so perhaps not too difficult to figure out for someone familiar with that.
Code:
FreeBSD 13.1-RELEASE-p1 n245406-814eb095751 TRUENAS
<Snip>
root@truenas[~]# vm query
root@truenas[~]# midclt call vm.query | jq
[
{
"id": 1,
"name": "DebianPiHole",
"description": "Pi Hole",
"vcpus": 1,
"memory": 256,
"autostart": true,
"time": "LOCAL",
"grubconfig": null,
"bootloader": "UEFI",
"cores": 1,
"threads": 1,
"shutdown_timeout": 60,
"devices": [
{
"id": 5,
"dtype": "NIC",
"attributes": {
"type": "VIRTIO",
"mac": "00:a0:98:27:ea:16",
"nic_attach": "lagg0"
},
"order": 1003,
"vm": 1
},
{
"id": 6,
"dtype": "DISK",
"attributes": {
"path": "/dev/zvol/Data/Debian-w1ss58",
"type": "VIRTIO",
"physical_sectorsize": null,
"logical_sectorsize": null
},
"order": 1001,
"vm": 1
},
{
"id": 8,
"dtype": "VNC",
"attributes": {
"vnc_port": 52488,
"wait": false,
"vnc_resolution": "800x600",
"vnc_bind": "0.0.0.0",
"vnc_password": "",
"vnc_web": true
},
"order": 1002,
"vm": 1
}
],
"status": {
"state": "RUNNING",
"pid": 1740,
"domain_state": "RUNNING"
}
},
{
"id": 2,
"name": "pfSenese",
"description": "pfSense",
"vcpus": 1,
"memory": 1024,
"autostart": false,
"time": "LOCAL",
"grubconfig": null,
"bootloader": "UEFI",
"cores": 2,
"threads": 1,
"shutdown_timeout": 90,
"devices": [
{
"id": 9,
"dtype": "NIC",
"attributes": {
"type": "VIRTIO",
"mac": "00:a0:98:5b:10:d6",
"nic_attach": "lagg0"
},
"order": 1005,
"vm": 2
},
{
"id": 10,
"dtype": "DISK",
"attributes": {
"path": "/dev/zvol/Data/pfSenese-xtmr",
"type": "VIRTIO",
"physical_sectorsize": null,
"logical_sectorsize": null
},
"order": 1001,
"vm": 2
},
{
"id": 11,
"dtype": "VNC",
"attributes": {
"vnc_port": 6988,
"wait": false,
"vnc_resolution": "800x600",
"vnc_bind": "0.0.0.0",
"vnc_password": "",
"vnc_web": true
},
"order": 1002,
"vm": 2
},
{
"id": 13,
"dtype": "PCI",
"attributes": {
"pptdev": "5/0/0"
},
"order": 1004,
"vm": 2
},
{
"id": 14,
"dtype": "PCI",
"attributes": {
"pptdev": "6/0/0"
},
"order": 1003,
"vm": 2
}
],
"status": {
"state": "ERROR",
"pid": null,
"domain_state": "ERROR"
}
}
]
root@truenas[~]# ls /dev/zvol/Data/pfSenese-xtmr
/dev/zvol/Data/pfSenese-xtmr
root@truenas[~]#