qemu-guest-agent wont start

taich

Member
Aug 15, 2020
116
18
23
64
If have a ubuntu 18.04 server with latest updates and newly installed qemu-guest-agent.
But this service wont start. How can I fix this?

Code:
sc status qemu-guest-agent
qemu-guest-agent.service - LSB: QEMU Guest Agent startup script
   Loaded: loaded (/etc/init.d/qemu-guest-agent; bad; vendor preset: enabled)
   Active: active (exited) since Sun 2020-09-13 17:48:51 CEST; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2244 ExecStop=/etc/init.d/qemu-guest-agent stop (code=exited, status=0/SUCCESS)
  Process: 2348 ExecStart=/etc/init.d/qemu-guest-agent start (code=exited, status=0/SUCCESS)

Sep 13 17:48:51 fb2 systemd[1]: Starting LSB: QEMU Guest Agent startup script...
Sep 13 17:48:51 fb2 qemu-guest-agent[2348]:  * qemu-ga: transport endpoint not found, not starting
Sep 13 17:48:51 fb2 systemd[1]: Started LSB: QEMU Guest Agent startup script.
 
Not sure what is happening, but the agent was running 1 week ago just fine. And since Sep 30 it just stopped?
Code:
○ qemu-guest-agent.service - QEMU Guest Agent
     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
     Active: inactive (dead) since Sat 2023-09-30 21:59:36 CEST; 1 week 1 day ago
   Main PID: 1051 (code=exited, status=0/SUCCESS)
        CPU: 4min 50.740s

Sep 30 21:55:12 ubuntu-server qemu-ga[1051]: info: guest-ping called
Sep 30 21:55:24 ubuntu-server qemu-ga[1051]: info: guest-ping called
Sep 30 21:55:37 ubuntu-server qemu-ga[1051]: info: guest-ping called
Sep 30 21:55:49 ubuntu-server qemu-ga[1051]: info: guest-ping called
Sep 30 21:56:02 ubuntu-server qemu-ga[1051]: info: guest-ping called
Sep 30 21:56:12 ubuntu-server qemu-ga[1051]: info: guest-ping called
Sep 30 21:59:36 ubuntu-server systemd[1]: Stopping QEMU Guest Agent...
Sep 30 21:59:36 ubuntu-server systemd[1]: qemu-guest-agent.service: Deactivated successfully.
Sep 30 21:59:36 ubuntu-server systemd[1]: Stopped QEMU Guest Agent.
Sep 30 21:59:36 ubuntu-server systemd[1]: qemu-guest-agent.service: Consumed 4min 50.740s CPU time.

Manually starting or enabling this qemu-guest-agent service fails under Ubuntu LTS with:
Code:
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

Which is stated here on the wiki. But in all cases I just can't seem to get the agent up anymore from the guest. Proxmox is also reporting "Guest Agent not running" , which is correct.. it's not running but I can't get it to run.

The only way to get it running again is rebooting the VM. But why would the agent suddenly stop?
 
  • Like
Reactions: melroy89

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!