I've been trying to figure out how to use the "virtual machine manager" application in truecharts (using TrueNAS-SCALE-23.10.1) but I'm not able to figure this one out. Already tried google, youtube and the truenas forums, but the only relevant post (dated in oct 2022) links to the truenas manual that explains how to manage VM's using the truenas GUI (which seems logical as truecharts applications are not provided by ix...). Most other topics are talking about virtualizing truenas in vmware, proxmox, etc.
www.truenas.com
These are the steps I already took:
- There are several linux vm's running properly
- Added myself to the group 'libvirt'
- Installed the app virt-manager using truecharts
When I open the app from the truenas gui I'm presented with the screen where I can add a connection, but I'm not sure how to set up this connection.
If I enter my user account details for the connection using SSH, all the fields grey out and the Virtual Machine Managers keeps saying "connecting" but nothing else happens and I need to restart the application to gain control again.
If I use "Autoconnect", I get an error message "Unable to connect to libvirt qemu:///system, Verify that the libvirt daemon is running, failed to connect socket to /var/ru/libvirt-sock': connection refused"
So I took a look at syslog in truenas, and I could find some errors about domain not found. I did google this and found some potential solutions, but I don't fully understand them and I'm a but reluctant to to a lot in the terminal as this could interfere with truenas. Also not sure why I get the message about the ARM architecture not being found as this is running on an AMD?
The libvirt daemon does seem to be running in truenas:
Could somebody tell me if I'm correct this is a connection to the KVM hypervisor running in Truenas and not a daemon running inside the virtual machines? Or could somebody point me in the correct direction please? I'ld really appreciate a push in the right direction.
The reason I would like to try this application is because it seems to be a good way to monitor the CPU, disk and memory used by the VM's.
Thanks!!
Truenas Scale virtual machine management
Hello, I want to use TrueNas Scale to operate 2-3 virtual machines. Is it possible to manage them with "virt-manager" or connect to Proxmox to manage 1 panel or etc.?

These are the steps I already took:
- There are several linux vm's running properly
- Added myself to the group 'libvirt'
- Installed the app virt-manager using truecharts
When I open the app from the truenas gui I'm presented with the screen where I can add a connection, but I'm not sure how to set up this connection.
If I enter my user account details for the connection using SSH, all the fields grey out and the Virtual Machine Managers keeps saying "connecting" but nothing else happens and I need to restart the application to gain control again.
If I use "Autoconnect", I get an error message "Unable to connect to libvirt qemu:///system, Verify that the libvirt daemon is running, failed to connect socket to /var/ru/libvirt-sock': connection refused"
So I took a look at syslog in truenas, and I could find some errors about domain not found. I did google this and found some potential solutions, but I don't fully understand them and I'm a but reluctant to to a lot in the terminal as this could interfere with truenas. Also not sure why I get the message about the ARM architecture not being found as this is running on an AMD?
Code:
root@SERVER4[/var/run/libvirt]# cat /var/log/syslog |grep libvirt Jan 6 23:38:19 SERVER4 systemd[1]: Starting libvirtd.service - Virtualization daemon... Jan 6 23:38:19 SERVER4 systemd[1]: Started libvirtd.service - Virtualization daemon. Jan 6 23:38:20 SERVER4 systemd[1]: Starting libvirt-guests.service - Suspend/Resume Running libvirt Guests... Jan 6 23:38:20 SERVER4 systemd[1]: Finished libvirt-guests.service - Suspend/Resume Running libvirt Guests. Jan 6 23:38:20 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '8_ODOO9server' Jan 6 23:38:21 SERVER4 libvirtd[4662]: libvirt version: 9.0.0, package: 9.0.0-4 (Debian) Jan 6 23:38:21 SERVER4 libvirtd[4662]: hostname: SERVER4 Jan 6 23:38:21 SERVER4 libvirtd[4662]: invalid argument: cannot find architecture arm Jan 6 23:38:21 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '9_Hassio' Jan 6 23:38:21 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '10_Server3' Jan 6 23:38:21 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '11_pfSense' Jan 6 23:38:22 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '12_Frigate' Jan 6 23:38:22 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '13_Debian11BBB' Jan 6 23:38:22 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '17_Openhab' Jan 6 23:38:22 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '19_Docker' Jan 6 23:41:11 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '11_pfSense' Jan 6 23:41:15 SERVER4 middlewared[1359]: libvirt: QEMU Driver error : Domain not found: no domain with matching name '9_Hassio'
The libvirt daemon does seem to be running in truenas:
Code:
root@SERVER4[/var/run/libvirt]# ps -aux|grep libvirt root 4662 0.0 0.0 1635456 28904 ? Ssl Jan06 0:01 /usr/sbin/libvirtd --timeout 120 libvirt+ 7710 4.4 7.6 9401884 5022492 ? SLl Jan06 4:06 /usr/bin/qemu-system-x86_64 -name guest=11_pfSense,debug-threads=on -S -object {"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-1-11_pfSense/master-key.aes"} -blockdev {"driver":"file","filename":"/usr/share/OVMF/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"} -blockdev {"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/11_pfSense_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"} -machine pc-i440fx-7.2,usb=off,dump-guest-core=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format -accel kvm -cpu qemu64 -m 4096 -object {"qom-type":"memory-backend-ram","id":"pc.ram","size":4294967296} -overcommit mem-lock=on -smp 1,sockets=1,dies=1,cores=1,threads=1 -uuid 8dc3a7ff-6e79-4ca8-bc84-912d39ebefac -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=36,server=on,wait=off -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot strict=on -device {"driver":"nec-usb-xhci","id":"usb","bus":"pci.0","addr":"0x3"} -device {"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.0","addr":"0x4"} -blockdev {"driver":"host_device","filename":"/dev/zvol/Barney/VM/pfSense","aio":"threads","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-1-storage"} -device {"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x5","drive":"libvirt-1-format","id":"virtio-disk0","bootindex":1,"write-cache":"on"} -chardev pty,id=charserial0 -device {"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0} -chardev spicevmc,id=charchannel0,name=vdagent -device {"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"} -chardev socket,id=charchannel1,fd=35,server=on,wait=off -device {"driver":"virtserialport","bus":"virtio-serial0.0","nr":2,"chardev":"charchannel1","id":"channel1","name":"org.qemu.guest_agent.0"} -device {"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"} -audiodev {"id":"audio1","driver":"spice"} -spice port=5904,addr=0.0.0.0,disable-ticketing=on,seamless-migration=on -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"xres":1024,"yres":768,"bus":"pci.0","addr":"0x2"} -device {"driver":"vfio-pci","host":"0000:04:00.3","id":"hostdev0","bus":"pci.0","addr":"0x6"} -device {"driver":"vfio-pci","host":"0000:04:00.2","id":"hostdev1","bus":"pci.0","addr":"0x7"} -device {"driver":"vfio-pci","host":"0000:04:00.1","id":"hostdev2","bus":"pci.0","addr":"0x8"} -device {"driver":"vfio-pci","host":"0000:04:00.0","id":"hostdev3","bus":"pci.0","addr":"0x9"} -device {"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0xa"} -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on libvirt+ 7781 10.7 5.6 13834064 3716424 ? Sl Jan06 9:49 /usr/bin/qemu-system-x86_64 -name guest=9_Hassio,debug-threads=on -S -object {"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-2-9_Hassio/master-key.aes"} -blockdev {"driver":"file","filename":"/usr/share/OVMF/OVMF_CODE.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"} -blockdev {"driver":"file","filename":"/var/lib/libvirt/qemu/nvram/9_Hassio_VARS.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"} -machine pc-i440fx-7.2,usb=off,dump-guest-core=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format -accel kvm -cpu qemu64 -m 8192 -object {"qom-type":"memory-backend-ram","id":"pc.ram","size":8589934592} -overcommit mem-lock=off -smp 2,sockets=1,dies=1,cores=2,threads=1 -uuid 3fb70a77-b6b4-4718-bfef-7ebf770b1bea -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=42,server=on,wait=off -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot strict=on -device {"driver":"nec-usb-xhci","id":"usb","bus":"pci.0","addr":"0x4"} -device {"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.0","addr":"0x5"} -blockdev {"driver":"host_device","filename":"/dev/zvol/Barney/VM/Hassio","aio":"threads","node-name":"libvirt-1-storage","cache":{"direct":true,"no-flush":false},"auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":true,"no-flush":false},"driver":"raw","file":"libvirt-1-storage"} -device {"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x6","drive":"libvirt-1-format","id":"virtio-disk0","bootindex":1,"write-cache":"on"} -netdev {"type":"tap","fd":"44","vhost":true,"vhostfd":"46","id":"hostnet0"} -device {"driver":"virtio-net-pci","netdev":"hostnet0","id":"net0","mac":"00:a0:98:3e:40:f5","bus":"pci.0","addr":"0x3"} -chardev pty,id=charserial0 -device {"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0} -chardev spicevmc,id=charchannel0,name=vdagent -device {"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"} -chardev socket,id=charchannel1,fd=41,server=on,wait=off -device {"driver":"virtserialport","bus":"virtio-serial0.0","nr":2,"chardev":"charchannel1","id":"channel1","name":"org.qemu.guest_agent.0"} -device {"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"} -audiodev {"id":"audio1","driver":"spice"} -spice port=5900,addr=0.0.0.0,disable-ticketing=on,seamless-migration=on -device {"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"xres":1024,"yres":768,"bus":"pci.0","addr":"0x2"} -device {"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0x7"} -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on root 64220 0.0 0.0 3744 1728 pts/6 S+ 01:20 0:00 grep libvirt
Could somebody tell me if I'm correct this is a connection to the KVM hypervisor running in Truenas and not a daemon running inside the virtual machines? Or could somebody point me in the correct direction please? I'ld really appreciate a push in the right direction.
The reason I would like to try this application is because it seems to be a good way to monitor the CPU, disk and memory used by the VM's.
Thanks!!