On Linux
1. Install the agent inside the VM:
apt install qemu-guest-agent2. Shut down the VM
shutdown -h now3. Enable the guest agent in Proxmox Interface

4. Start the VM and check if the agent is running
systemctl status qemu-guest-agentOn FreeBSD 13
- Place
virtio_console.koin/boot/modules. (wget http://web.busana.lu/qemu/virtio_console.ko) - Run
kldload virtio_console.ko. - Place
qemu-gain/usr/local/bin. (wget http://web.busana.lu/qemu/).qemu-ga - Place
qemu-guest-agentin/usr/local/etc/rc.d. (wget http://wwb.busana.lu/qemu/qemu-guest-agent) - Place
qemu-guest-agentin another location of your choice. This will be a copy that is re-added to the rc.d directory each time TrueNAS boots (/usr/local/qemuGB/qemu-guest-agent). - Create Tunables in the TrueNAS web UI. System -> Tunables.
- Variable=
qemu_guest_agent_enableValue=YESType=RCEnabled=yes - Variable=
qemu_guest_agent_flagsValue=-d -v -l /var/log/qemu-ga.logType=RCEnabled=yes - Variable=
virtio_console_loadValue=YESType=LOADEREnabled=yes
- Variable=
- Create Init/Shutdown Scripts in the TrueNAS web UI. Tasks -> Init/Shutdown Scripts.
- Type=
CommandCommand=service qemu-guest-agent startWhen=POSTINITEnabled=yesTimeout=10 - Type=
CommandCommand=cp /[path to a local copy of qemu-guest-agent file] /usr/local/etc/rc.dWhen=PREINITEnabled=yesTimeout=10(cp /usr/local/qemuGB/qemu-guest-agent /usr/local/etc/rc.d).
- Type=
- Reboot TrueNAS.
