21.08 qemu-guest-agent in VMs

rmr

Dabbler
Joined
Sep 8, 2021
Messages
17
I migrated a Debian VM from esxi to TrueNAS SCALE (just to be clear, I am NOT running TrueNAS inside a VM). Unfortunately, I know nothing about qemu.
On esxi, there are the open-vm-tools that add services to the VM such as copy/paste etc. It seems that the qemu equivalent is qemu-guest-agent.
However, trying to start the agent inside my VM, it refuses because it claims it's missing its control device. By default, /dev/virtio-ports/org/qemu.guest_agent.0

Unless I missed it, the guest agent is not configurable in 21.08. The command line to /usr/bin/qemu-system-x86_64 doesn't seem to include it either, but I could have missed it. Am I on the right track?

HP ProLiant MicroServer Gen10, 32GB ECC Memory, AMD Opteron X3421 APU 4 Core
HP 779134-001 726907-B21 H240 Smart Host Bus Adapter PCIe
Built-in single-port SATA
Intel X520-DA1 INTEL 10GB PCIE SFP+
2 * Seagate ST8000VN 8TB + 2 * WDC WD80EMAZ in RAIDz (all on HP H240)
2 * 100GB Intel SSDSC2 (mirrored) for logs (both on HP H240)
1 * ADATA SU720 480GB + 1 * TS480 GB (mirrored, one on HP H240, one on built-in SATA)
1 * LITEONIT LCS-256L9S-11 256GB SSD as boot on USB
 

Dan Tudora

Patron
Joined
Jul 6, 2017
Messages
276
I migrated a Debian VM from esxi to TrueNAS SCALE (just to be clear, I am NOT running TrueNAS inside a VM). Unfortunately, I know nothing about qemu.
On esxi, there are the open-vm-tools that add services to the VM such as copy/paste etc. It seems that the qemu equivalent is qemu-guest-agent.
However, trying to start the agent inside my VM, it refuses because it claims it's missing its control device. By default, /dev/virtio-ports/org/qemu.guest_agent.0

Unless I missed it, the guest agent is not configurable in 21.08. The command line to /usr/bin/qemu-system-x86_64 doesn't seem to include it either, but I could have missed it. Am I on the right track?

HP ProLiant MicroServer Gen10, 32GB ECC Memory, AMD Opteron X3421 APU 4 Core
HP 779134-001 726907-B21 H240 Smart Host Bus Adapter PCIe
Built-in single-port SATA
Intel X520-DA1 INTEL 10GB PCIE SFP+
2 * Seagate ST8000VN 8TB + 2 * WDC WD80EMAZ in RAIDz (all on HP H240)
2 * 100GB Intel SSDSC2 (mirrored) for logs (both on HP H240)
1 * ADATA SU720 480GB + 1 * TS480 GB (mirrored, one on HP H240, one on built-in SATA)
1 * LITEONIT LCS-256L9S-11 256GB SSD as boot on USB
hello
maybe that help
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
I migrated a Debian VM from esxi to TrueNAS SCALE (just to be clear, I am NOT running TrueNAS inside a VM). Unfortunately, I know nothing about qemu.
On esxi, there are the open-vm-tools that add services to the VM such as copy/paste etc. It seems that the qemu equivalent is qemu-guest-agent.
However, trying to start the agent inside my VM, it refuses because it claims it's missing its control device. By default, /dev/virtio-ports/org/qemu.guest_agent.0

Unless I missed it, the guest agent is not configurable in 21.08. The command line to /usr/bin/qemu-system-x86_64 doesn't seem to include it either, but I could have missed it. Am I on the right track?

HP ProLiant MicroServer Gen10, 32GB ECC Memory, AMD Opteron X3421 APU 4 Core
HP 779134-001 726907-B21 H240 Smart Host Bus Adapter PCIe
Built-in single-port SATA
Intel X520-DA1 INTEL 10GB PCIE SFP+
2 * Seagate ST8000VN 8TB + 2 * WDC WD80EMAZ in RAIDz (all on HP H240)
2 * 100GB Intel SSDSC2 (mirrored) for logs (both on HP H240)
1 * ADATA SU720 480GB + 1 * TS480 GB (mirrored, one on HP H240, one on built-in SATA)
1 * LITEONIT LCS-256L9S-11 256GB SSD as boot on USB

I'm not sure the systemd qemu-guest-agent service is designed to be started in the way you have ( see for example: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1883009 ). But, the current VM implementation in Truenas Scale does not create the necessary "device" to support things like copy/paste. You can check this in an xml dump of your VM.

The libvirt-socket has been moved in TrueNAS Scale, so the virsh command becomes
Code:
virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" .... 
 

beagle

Explorer
Joined
Jun 15, 2020
Messages
91
the current VM implementation in Truenas Scale does not create the necessary "device" to support things like copy/paste. You can check this in an xml dump of your VM

May I suggest you creating a feature request on Jira?

You can add to the list of improvements I requested on VM features on this thread:

And feel free to vote on any of the Jira tickets with features you'd like to see implemented. ;-)
 
Top