Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Start virt-manager

Symptom

The message "Error polling connection 'qemu:///system': internal error: Socket 6378 can't be handled (max socket is 4095)" is displayed when the Virtual Machine Manager is started.

Key Process and Cause Analysis

The problem is caused by the libvirt-4.5.0 code bug.

Conclusion and Solution

Upgrade the libvirt version to libvirt-4.7.0 or higher, or modify the libvirt-4.5.0 source code and recompile it. This section uses upgrade to libvirt-5.6.0 as an example.

  1. Install the dependencies.
    yum -y install yum-utils rpm-build
  2. Download the source code RPM package.
    wget https://libvirt.org/sources/libvirt-5.6.0-1.fc30.src.rpm

    This section uses libvirt-5.6.0 as an example. This bug has been fixed in libvirt-4.7.0.

  3. Perform the compilation and installation.
    1. Install the src.rpm source package.
      rpm -i libvirt-5.6.0-1.fc30.src.rpm
    2. Generate an RPM package.
      cd /root/rpmbuild/SPECS/
      yum-builddep -y libvirt.spec
      rpmbuild -ba libvirt.spec
    3. Install the RPM package.
      cd /root/rpmbuild/RPMS/aarch64/
      yum -y install *.rpm
    4. Restart the libvirtd service.
      systemctl daemon-reload
      systemctl restart libvirtd