Re: virsh not connecting to libvertd ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 06, 2023 at 04:56:38PM -0400, Jerry Buburuz wrote:
> Recently both virsh stopped talking to the libvirtd. Both stopped within a
> few days of each other.

I've run into exactly the same problem.

I'm running libvirt (libvirt-9.0.0-3.fc38.x86_64) on Fedora 38. On
Fedora, libvirtd is configured by default to use socket activation and
is run with the `--timeout 120` option.

After some recent upgrades, I'm seeing the exact same symptoms that
Jerry described -- virsh commands simply get stuck at same call to
`poll()`.

It looks like libvirtd is either crashing or failing to start, because
when virsh is in this state the `libvirtd` process isn't running. This
makes it *sound* like a systemd problem, but I'm not seeing errors
anywhere -- either from libvirtd or from systemd.

I've worked around the problem locally by re-configuring libvirtd to
run persistently rather than using socket activation:

    systemctl disable --now libvirtd{,-ro,-admin}.socket

    cat > /etc/systemd/system/libvirtd.service.d/override.conf <<EOF
    [Service]
    EnvironmentFile=
    EOF

    systemctl restart libvirtd

Package versions in case this helps correlate something:

- libvirt-9.0.0-3.fc38.x86_64
- systemd-253.5-1.fc38.x86_64
- kernel-6.3.6-200.fc38.x86_64

Libvirt uri: qemu:///system

-- 
Lars Kellogg-Stedman <lars@xxxxxxxxxx> | larsks @ {irc,twitter,github}
http://blog.oddbit.com/                | N1LKS




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux