User Tools

Site Tools


os:proxmox_ve:guest_agent

This is an old revision of the document!


Proxmox VE - Guest Agent

Proxmox vm's use the QEMU guest agent. The official documentation from Proxmox can be found here: https://pve.proxmox.com/wiki/Qemu-guest-agent

Proxmox VE VM Config

  • Open the Proxmox VE UI
  • Open the vm
  • Options
  • QEMU Guest Agent
  • Check: Use QEMU Guest Agent
  • Power off the vm and start it again

If this option is set, a new virtual serial device is shown to the vm, which will be accessed by the agent which will be installed in the guest os.

To set this option via cli use the following command:

qm set VMID --agent 1

Windows

Linux

For Debian/Ubuntu based systems:

apt install qemu-guest-agent

For RedHat based systems:

yum install qemu-guest-agent

Start the service:

systemctl start qemu-guest-agent

Troubleshooting

Timed out waiting for device

Starting the systemd unit file takes a long time and fails. You see the following errors in the journal:

Apr 10 18:14:39 pmg systemd[1]: dev-virtio\x2dports-org.qemu.guest_agent.0.device: Job dev-virtio\x2dports-org.qemu.guest_agent.0.device/start ti
Apr 10 18:14:39 pmg systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0.

You probably forgot to enable the QEMU Guest Agent setting in the vm settings.

Agent on Windows is started but doesn't work

If the QEMU Guest Agent service is startet but in the vm overview you see “QEMU Guest Agent not running” then you probably forgot to enable the QEMU Guest Agent setting in the vm settings.

os/proxmox_ve/guest_agent.1586549812.txt.gz · Last modified: 2020-04-10 22:16 by Manuel Frei