Acesse o console e baixe o agent
# cd tmp
# wget https://www.truenas.com/community/resources/qemu-guest-agent.167/download
# unzip download
# chmod +x qemu-g*
# mv virtio_console.ko /boot/modules
# kldload virtio_console.ko
# mv qemu-ga /usr/local/bin
# mv qemu-guest-agent /usr/local/etc/rc.d
# cp /usr/local/etc/rc.d/qemu-guest-agent /root
Create Tunables in the TrueNAS web UI. System -> Tunables.
Variable=qemu_guest_agent_enable Value=YES Type=RC Enabled=yes
Variable=qemu_guest_agent_flags Value=-d -v -l /var/log/qemu-ga.log Type=RC Enabled=yes
Variable=virtio_console_load Value=YES Type=LOADER Enabled=yes
Create Init/Shutdown Scripts in the TrueNAS web UI. Tasks -> Init/Shutdown Scripts.
Type=Command Command=service qemu-guest-agent start When=POSTINIT Enabled=yes Timeout=10
Type=Command Command=cp /root/qemu-guest-agent /usr/local/etc/rc.d When=PREINIT Enabled=yes Timeout=10
Reboot TrueNAS.