diff --git a/lxd/instance/drivers/driver_qemu.go b/lxd/instance/drivers/driver_qemu.go index f150346b1968..9e888f040a92 100644 --- a/lxd/instance/drivers/driver_qemu.go +++ b/lxd/instance/drivers/driver_qemu.go @@ -8593,6 +8593,11 @@ func (d *qemu) devlxdEventSend(eventType string, eventMessage map[string]any) er client, err := d.getAgentClient() if err != nil { + // Don't fail if the VM simply doesn't have an agent. + if err == errQemuAgentOffline { + return nil + } + return err }