Libvirt daemon system код ошибки 1

During an upgrade of Debian 9 (Stretch) to 10 (Buster), the following error was seen while upgrading the libvirt-daemon-system package:

root@debian ~ # apt-get upgrade
Reading package lists… Done
Building dependency tree       
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
  dh-python guile-2.0-libs libasyncns0 libbind9-140 libblas-common libboost-atomic1.67.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-random1.62.0 libboost-regex1.67.0 libboost-system1.62.0 libboost-thread1.62.0
  libboost-thread1.67.0 libcaca0 libdns162 libevent-2.0-5 libflac8 libgfortran3 libhiredis0.13 libice6 libicu57 libisc160 libisccc140 libisccfg140 liblvm2app2.2 liblvm2cmd2.02 liblwres141 libogg0 libperl5.24 libpulse0
  libpython3.5-minimal libpython3.5-stdlib librados2 librbd1 libsdl1.2debian libsm6 libsndfile1 libvorbis0a libvorbisenc2 libx11-xcb1 libxen-4.8 libxi6 libxtst6 linux-image-4.9.0-7-amd64 patch python-certifi python-chardet python-gi
  python-idna python-ipaddr python-libvirt python-libxml2 python-pkg-resources python-requests python-six python-urllib3 python3-pyasn1 python3.5 python3.5-minimal rename sgml-base tcpd x11-common xml-core
Use ‘apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libvirt-daemon-system (5.0.0-4+deb10u1) …
virtlockd.service is a disabled or a static unit, not starting it.
Job for virtlogd-admin.socket failed.
See «systemctl status virtlogd-admin.socket» and «journalctl -xe» for details.
A dependency job for virtlogd.service failed. See ‘journalctl -xe’ for details.
invoke-rc.d: initscript virtlogd, action «start» failed.
— virtlogd.service — Virtual machine log manager
   Loaded: loaded (/lib/systemd/system/virtlogd.service; indirect; vendor preset: enabled)
   Active: active (running) since Wed 2021-06-30 15:25:21 CEST; 1 day 14h ago
     Docs: man:virtlogd(8)
           https://libvirt.org
 Main PID: 28006 (virtlogd)
    Tasks: 2 (limit: 4915)
   Memory: 1.5M
   CGroup: /system.slice/virtlogd.service
           |- 28006 /usr/sbin/virtlogd

Jul 02 06:22:16 irczsrvp05 systemd[1]: Dependency failed for Virtual machine log manager.
Jul 02 06:22:16 irczsrvp05 systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result ‘dependency’.
Jul 02 06:23:12 irczsrvp05 systemd[1]: Reloading Virtual machine log manager.
Jul 02 06:23:12 irczsrvp05 systemd[1]: Reloaded Virtual machine log manager.
Jul 02 06:23:15 irczsrvp05 systemd[1]: Dependency failed for Virtual machine log manager.
Jul 02 06:23:15 irczsrvp05 systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result ‘dependency’.
Jul 02 06:24:57 irczsrvp05 systemd[1]: Reloading Virtual machine log manager.
Jul 02 06:24:57 irczsrvp05 systemd[1]: Reloaded Virtual machine log manager.
Jul 02 06:24:59 irczsrvp05 systemd[1]: Dependency failed for Virtual machine log manager.
Jul 02 06:24:59 irczsrvp05 systemd[1]: virtlogd.service: Job virtlogd.service/start failed with result ‘dependency’.
dpkg: error processing package libvirt-daemon-system (—configure):
 installed libvirt-daemon-system package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 libvirt-daemon-system
E: Sub-process /usr/bin/dpkg returned an error code (1)

The output also shows that the virtlogd.service could not be restarted due to a dependency problem.

root@debian ~ # apt-get upgrade
Reading package lists… Done
Building dependency tree       
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
  dh-python guile-2.0-libs libasyncns0 libbind9-140 libblas-common libboost-atomic1.67.0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-random1.62.0 libboost-regex1.67.0 libboost-system1.62.0 libboost-thread1.62.0
  libboost-thread1.67.0 libcaca0 libdns162 libevent-2.0-5 libflac8 libgfortran3 libhiredis0.13 libice6 libicu57 libisc160 libisccc140 libisccfg140 liblvm2app2.2 liblvm2cmd2.02 liblwres141 libogg0 libperl5.24 libpulse0
  libpython3.5-minimal libpython3.5-stdlib librados2 librbd1 libsdl1.2debian libsm6 libsndfile1 libvorbis0a libvorbisenc2 libx11-xcb1 libxen-4.8 libxi6 libxtst6 linux-image-4.9.0-7-amd64 patch python-certifi python-chardet python-gi
  python-idna python-ipaddr python-libvirt python-libxml2 python-pkg-resources python-requests python-six python-urllib3 python3-pyasn1 python3.5 python3.5-minimal rename sgml-base tcpd x11-common xml-core
Use ‘apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libvirt-daemon-system (5.0.0-4+deb10u1) …
virtlockd.service is a disabled or a static unit, not starting it.

No comments yet.

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Installation & Upgrades
  • Upgrade to 18.04: error on libvirt-daemon-system

  1. Upgrade to 18.04: error on libvirt-daemon-system

    Hi !

    I just upgraded my system to Ubuntu 18.04,
    and after a couple of apt-get install -f (the initial upgrade process ended with errors)
    i have libvirt-demon-system package which seems to be broken:

    Code:

    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up libvirt-daemon-system (4.0.0-1ubuntu8) ...
    Enabling libvirt default network
    virtlockd.service is a disabled or a static unit, not starting it.
    insserv: script libvirtd: service libvirtd already provided!
    insserv: script libvirtd: service libvirtd already provided!
    insserv: exiting now!
    update-rc.d: error: insserv rejected the script header
    dpkg: error processing package libvirt-daemon-system (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     libvirt-daemon-system
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Now this:
    update-rc.d: error: insserv rejected the script header

    means that the rc script is wrong ??
    Do you have the same problem ?

    Thanks !


  2. Re: Upgrade to 18.04: error on libvirt-daemon-system

    Was you using some ppas previously ? are you able to install and use ‘synaptic’ ? Maybe install and run (gtkorphan’ to cleanup the system.


Bookmarks

Bookmarks


Posting Permissions

OS: Ubuntu Server 18.10
Release: Ravada 4.0 beta5
Libvirt version: 4.6.0

Issue: When making a new VM, it fails to boot, with the following error message: libvirt error code: 1, message: internal error: process exited while connecting to monitor: qemu-system-x86_64: -smbios type=11,value=hostname: SEIU-VDI-98: Don’t know how to build fields for SMBIOS type 11″

VMs made in previous ravada releases do not have this issue and still boot.

Cause: After comparing virsh dumpxml for a working and non-working vm, the following stanza in new VMs is problematic:

<sysinfo type='smbios'>
    <oemStrings>
      <entry>hostname: SEIU-VDI-98</entry>
    </oemStrings>
  </sysinfo>

Reverting back to this makes the VM bootable:
<sysinfo type='smbios'/>

Skip to navigation
Skip to main content

Red Hat Customer Portal

Infrastructure and Management

  • Red Hat Enterprise Linux

  • Red Hat Satellite

  • Red Hat Subscription Management

  • Red Hat Insights

  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift

  • Red Hat OpenStack Platform

  • Red Hat OpenShift Container Platform

  • Red Hat OpenShift Data Science

  • Red Hat OpenShift Dedicated

  • Red Hat Advanced Cluster Security for Kubernetes

  • Red Hat Advanced Cluster Management for Kubernetes

  • Red Hat Quay

  • OpenShift Dev Spaces

  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage

  • Red Hat Hyperconverged Infrastructure

  • Red Hat Ceph Storage

  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes

  • Red Hat JBoss Enterprise Application Platform

  • Red Hat Data Grid

  • Red Hat JBoss Web Server

  • Red Hat Single Sign On

  • Red Hat support for Spring Boot

  • Red Hat build of Node.js

  • Red Hat build of Quarkus

Integration and Automation

All Products

This appendix documents common libvirt-related problems and errors along with instructions for dealing with them.

Locate the error on the table below and follow the corresponding link under Solution for detailed troubleshooting information.

Table A.1. Common libvirt errors

Error Description of problem Solution
libvirtd failed to start The libvirt daemon failed to start. However, there is no information about this error in /var/log/messages. Section A.19.1, “libvirtd failed to start”
Cannot read CA certificate This is one of several errors that occur when the URI fails to connect to the hypervisor. Section A.19.2, “The URI Failed to Connect to the Hypervisor”
Other connectivity errors These are other errors that occur when the URI fails to connect to the hypervisor. Section A.19.2, “The URI Failed to Connect to the Hypervisor”
PXE boot (or DHCP) on guest failed A guest virtual machine starts successfully, but is unable to acquire an IP address from DHCP, boot using the PXE protocol, or both. This is often a result of a long forward delay time set for the bridge, or when the iptables package and kernel do not support checksum mangling rules. Section A.19.3, “PXE Boot (or DHCP) on Guest Failed”
Guest can reach outside network, but cannot reach host when using macvtap interface

A guest can communicate with other guests, but cannot connect to the host machine after being configured to use a macvtap (or type='direct') network interface.

This is actually not an error — it is the defined behavior of macvtap.

Section A.19.4, “Guest Can Reach Outside Network, but Cannot Reach Host When Using macvtap interface”
Could not add rule to fixup DHCP response checksums on network 'default' This warning message is almost always harmless, but is often mistakenly seen as evidence of a problem. Section A.19.5, “Could not add rule to fixup DHCP response checksums on network ‘default’
Unable to add bridge br0 port vnet0: No such device This error message or the similar Failed to add tap interface to bridge 'br0': No such device reveal that the bridge device specified in the guest’s (or domain’s) <interface> definition does not exist. Section A.19.6, “Unable to add bridge br0 port vnet0: No such device”
Unable to resolve address name_of_host service '49155': Name or service not known QEMU guest migration fails and this error message appears with an unfamiliar host name. Section A.19.7, “Migration Fails with error: unable to resolve address
Unable to allow access for disk path /var/lib/libvirt/images/qemu.img: No such file or directory A guest virtual machine cannot be migrated because libvirt cannot access the disk image(s). Section A.19.8, “Migration Fails with Unable to allow access for disk path: No such file or directory
No guest virtual machines are present when libvirtd is started The libvirt daemon is successfully started, but no guest virtual machines appear to be present when running virsh list --all. Section A.19.9, “No Guest Virtual Machines are Present when libvirtd is Started”
Common XML errors libvirt uses XML documents to store structured data. Several common errors occur with XML documents when they are passed to libvirt through the API. This entry provides instructions for editing guest XML definitions, and details common errors in XML syntax and configuration. Section A.19.10, “Common XML Errors”

A.19.1. libvirtd failed to start

Symptom

The libvirt daemon does not start automatically. Starting the libvirt daemon manually fails as well:

# systemctl start libvirtd.service
* Caching service dependencies ...                                                                                             [ ok ]
* Starting libvirtd ...
/usr/sbin/libvirtd: error: Unable to initialize network sockets. Check /var/log/messages or run without --daemon for more info.
* start-stop-daemon: failed to start `/usr/sbin/libvirtd'                                                                      [ !! ]
* ERROR: libvirtd failed to start

Moreover, there is not 'more info' about this error in /var/log/messages.

Investigation

Change libvirt’s logging in /etc/libvirt/libvirtd.conf by enabling the line below. To enable the setting the line, open the /etc/libvirt/libvirtd.conf file in a text editor, remove the hash (or #) symbol from the beginning of the following line, and save the change:

log_outputs="3:syslog:libvirtd"

This line is commented out by default to prevent libvirt from producing excessive log messages. After diagnosing the problem, it is recommended to comment this line again in the /etc/libvirt/libvirtd.conf file.

Restart libvirt to determine if this has solved the problem.

If libvirtd still does not start successfully, an error similar to the following will be printed:

# systemctl restart libvirtd
Job for libvirtd.service failed because the control process exited with error code. See "systemctl status libvirtd.service" and "journalctl -xe" for details.

Sep 19 16:06:02 jsrh libvirtd[30708]: 2017-09-19 14:06:02.097+0000: 30708: info : libvirt version: 3.7.0, package: 1.el7 (Unknown, 2017-09-06-09:01:55, js
Sep 19 16:06:02 jsrh libvirtd[30708]: 2017-09-19 14:06:02.097+0000: 30708: info : hostname: jsrh
Sep 19 16:06:02 jsrh libvirtd[30708]: 2017-09-19 14:06:02.097+0000: 30708: error : daemonSetupNetworking:502 : unsupported configuration: No server certif
Sep 19 16:06:02 jsrh systemd[1]: libvirtd.service: main process exited, code=exited, status=6/NOTCONFIGURED
Sep 19 16:06:02 jsrh systemd[1]: Failed to start Virtualization daemon.

-- Subject: Unit libvirtd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit libvirtd.service has failed.
--
-- The result is failed.

The libvirtd man page shows that the missing cacert.pem file is used as TLS authority when libvirt is run in Listen for TCP/IP connections mode. This means the --listen parameter is being passed.

Solution

Configure the libvirt daemon’s settings with one of the following methods:

  • Install a CA certificate.

  • Do not use TLS; use bare TCP instead. In /etc/libvirt/libvirtd.conf set listen_tls = 0 and listen_tcp = 1. The default values are listen_tls = 1 and listen_tcp = 0.

  • Do not pass the --listen parameter. In /etc/sysconfig/libvirtd.conf change the LIBVIRTD_ARGS variable.

A.19.2. The URI Failed to Connect to the Hypervisor

Several different errors can occur when connecting to the server (for example, when running virsh).

A.19.2.1. Cannot read CA certificate

Symptom

When running a command, the following error (or similar) appears:

$ virsh -c qemu://$hostname/system_list
error: failed to connect to the hypervisor
error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
Investigation

The error message is misleading about the actual cause. This error can be caused by a variety of factors, such as an incorrectly specified URI, or a connection that is not configured.

Solution
Incorrectly specified URI

When specifying qemu://system or qemu://session as a connection URI, virsh attempts to connect to host names’ system or session respectively. This is because virsh recognizes the text after the second forward slash as the host.

Use three forward slashes to connect to the local host. For example, specifying qemu:///system instructs virsh connect to the system instance of libvirtd on the local host.

When a host name is specified, the QEMU transport defaults to TLS. This results in certificates.

Connection is not configured

The URI is correct (for example, qemu[+tls]://server/system) but the certificates are not set up properly on your machine. For information on configuring TLS, see the upstream libvirt website.

A.19.2.2. unable to connect to server at ‘host:16509’: Connection refused

Symptom

While libvirtd should listen on TCP ports for connections, the connections fail:

# virsh -c qemu+tcp://host/system
error: failed to connect to the hypervisor
error: unable to connect to server at 'host:16509': Connection refused

The libvirt daemon is not listening on TCP ports even after changing configuration in /etc/libvirt/libvirtd.conf:

# grep listen_ /etc/libvirt/libvirtd.conf
listen_tls = 1
listen_tcp = 1
listen_addr = "0.0.0.0"

However, the TCP ports for libvirt are still not open after changing configuration:

# netstat -lntp | grep libvirtd
#
Investigation

The libvirt daemon was started without the --listen option. Verify this by running this command:

# ps aux | grep libvirtd
root     10749  0.1  0.2 558276 18280 ?        Ssl  23:21   0:00 /usr/sbin/libvirtd

The output does not contain the --listen option.

Solution

Start the daemon with the --listen option.

To do this, modify the /etc/sysconfig/libvirtd file and uncomment the following line:

# LIBVIRTD_ARGS="--listen"

Then, restart the libvirtd service with this command:

# /bin/systemctl restart libvirtd.service

A.19.2.3. Authentication Failed

Symptom

When running a command, the following error (or similar) appears:

$ virsh -c qemu://$hostname/system_list
error: failed to connect to the hypervisor
error: authentication failed: authentication failed
Investigation

If authentication fails even when the correct credentials are used, it is possible that the SASL authentication is not configured.

Solution
  1. Edit the /etc/libvirt/libvirtd.conf file and set the value of the auth_tcp parameter to sasl. To verify:

    # cat /etc/libvirt/libvirtd.conf | grep auth_tcp
    auth_tcp = "sasl"
    
  2. Edit the /etc/sasl2/libvirt.conf file and add the following lines to the file:

    mech_list: digest-md5
    sasldb_path: /etc/libvirt/passwd.db
    
  3. Ensure the cyrus-sasl-md5 package is installed:

    # yum install cyrus-sasl-md5
  4. Restart the libvirtd service:

    # systemctl restart libvirtd
  5. Set a user name and password for libvirt SASL:

    # saslpasswd2 -a libvirt 1

A.19.2.4. Permission Denied

Symptom

When running a virsh command as a non-root user, the following error (or similar) appears:

$ virsh -c qemu://$hostname/system_list
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
error: failed to connect to the hypervisor
Solution
  1. Edit the /etc/libvirt/libvirt.conf file and add the following lines to the file:

    #unix_sock_group = "libvirt"
    #unix_sock_ro_perms = "0777"
    #unix_sock_rw_perms = "0770"
    
  2. Restart the libvirtd service:

    # systemctl restart libvirtd

A.19.3. PXE Boot (or DHCP) on Guest Failed

Symptom

A guest virtual machine starts successfully, but is then either unable to acquire an IP address from DHCP or boot using the PXE protocol, or both. There are two common causes of this error: having a long forward delay time set for the bridge, and when the iptables package and kernel do not support checksum mangling rules.

Long forward delay time on bridge
Investigation

This is the most common cause of this error. If the guest network interface is connecting to a bridge device that has STP (Spanning Tree Protocol) enabled, as well as a long forward delay set, the bridge will not forward network packets from the guest virtual machine onto the bridge until at least that number of forward delay seconds have elapsed since the guest connected to the bridge. This delay allows the bridge time to watch traffic from the interface and determine the MAC addresses behind it, and prevent forwarding loops in the network topology.

If the forward delay is longer than the timeout of the guest’s PXE or DHCP client, the client’s operation will fail, and the guest will either fail to boot (in the case of PXE) or fail to acquire an IP address (in the case of DHCP).

Solution

If this is the case, change the forward delay on the bridge to 0, disable STP on the bridge, or both.

This solution applies only if the bridge is not used to connect multiple networks, but just to connect multiple endpoints to a single network (the most common use case for bridges used by libvirt).

If the guest has interfaces connecting to a libvirt-managed virtual network, edit the definition for the network, and restart it. For example, edit the default network with the following command:

# virsh net-edit default

Add the following attributes to the <bridge> element:

<name_of_bridge='virbr0' delay='0' stp='on'/>

delay='0' and stp='on' are the default settings for virtual networks, so this step is only necessary if the configuration has been modified from the default.

If the guest interface is connected to a host bridge that was configured outside of libvirt, change the delay setting.

Add or edit the following lines in the /etc/sysconfig/network-scripts/ifcfg-name_of_bridge file to turn STP on with a 0 second delay:

STP=on DELAY=0

After changing the configuration file, restart the bridge device:

/usr/sbin/ifdown name_of_bridge
/usr/sbin/ifup name_of_bridge

If name_of_bridge is not the root bridge in the network, that bridge’s delay will be eventually reset to the delay time configured for the root bridge. To prevent this from occurring, disable STP on name_of_bridge.

The iptables package and kernel do not support checksum mangling rules
Investigation

This message is only a problem if all four of the following conditions are true:

  • The guest is using virtio network devices.

    If so, the configuration file will contain model type='virtio'

  • The host has the vhost-net module loaded.

    This is true if ls /dev/vhost-net does not return an empty result.

  • The guest is attempting to get an IP address from a DHCP server that is running directly on the host.

  • The iptables version on the host is older than 1.4.10.

    iptables 1.4.10 was the first version to add the libxt_CHECKSUM extension. This is the case if the following message appears in the libvirtd logs:

    warning: Could not add rule to fixup DHCP response checksums on network default
    warning: May need to update iptables package and kernel to support CHECKSUM rule.

    Unless all of the other three conditions in this list are also true, the above warning message can be disregarded, and is not an indicator of any other problems.

When these conditions occur, UDP packets sent from the host to the guest have uncomputed checksums. This makes the host’s UDP packets seem invalid to the guest’s network stack.

Solution

To solve this problem, invalidate any of the four points above. The best solution is to update the host iptables and kernel to iptables-1.4.10 or newer where possible. Otherwise, the most specific fix is to disable the vhost-net driver for this particular guest. To do this, edit the guest configuration with this command:

virsh edit name_of_guest

Change or add a <driver> line to the <interface> section:

<interface type='network'>
  <model type='virtio'/>
  <driver name='qemu'/>
  ...
</interface>

Save the changes, shut down the guest, and then restart it.

If this problem is still not resolved, the issue may be due to a conflict between firewalld and the default libvirt network.

To fix this, stop firewalld with the service firewalld stop command, then restart libvirt with the service libvirtd restart command.

In addition, if the /etc/sysconfig/network-scripts/ifcfg-network_name file is configured correctly, you can ensure that the guest acquires an IP address by using the dhclient command as root on the guest.

A.19.4. Guest Can Reach Outside Network, but Cannot Reach Host When Using macvtap interface

Symptom

A guest virtual machine can communicate with other guests, but cannot connect to the host machine after being configured to use a macvtap (also known as type='direct') network interface.

Investigation

Even when not connecting to a Virtual Ethernet Port Aggregator (VEPA) or VN-Link capable switch, macvtap interfaces can be useful. Setting the mode of such an interface to bridge allows the guest to be directly connected to the physical network in a very simple manner without the setup issues (or NetworkManager incompatibility) that can accompany the use of a traditional host bridge device.

However, when a guest virtual machine is configured to use a type='direct' network interface such as macvtap, despite having the ability to communicate with other guests and other external hosts on the network, the guest cannot communicate with its own host.

This situation is actually not an error — it is the defined behavior of macvtap. Due to the way in which the host’s physical Ethernet is attached to the macvtap bridge, traffic into that bridge from the guests that is forwarded to the physical interface cannot be bounced back up to the host’s IP stack. Additionally, traffic from the host’s IP stack that is sent to the physical interface cannot be bounced back up to the macvtap bridge for forwarding to the guests.

Solution

Use libvirt to create an isolated network, and create a second interface for each guest virtual machine that is connected to this network. The host and guests can then directly communicate over this isolated network, while also maintaining compatibility with NetworkManager.

Procedure A.8. Creating an isolated network with libvirt

  1. Add and save the following XML in the /tmp/isolated.xml file. If the 192.168.254.0/24 network is already in use elsewhere on your network, you can choose a different network.

    ...
    <network>
      <name>isolated</name>
      <ip address='192.168.254.1' netmask='255.255.255.0'>
        <dhcp>
          <range start='192.168.254.2' end='192.168.254.254'/>
        </dhcp>
      </ip>
    </network>
    ...
    

    Figure A.3. Isolated Network XML

  2. Create the network with this command: virsh net-define /tmp/isolated.xml

  3. Set the network to autostart with the virsh net-autostart isolated command.

  4. Start the network with the virsh net-start isolated command.

  5. Using virsh edit name_of_guest, edit the configuration of each guest that uses macvtap for its network connection and add a new <interface> in the <devices> section similar to the following (note the <model type='virtio'/> line is optional to include):

    ...
    <interface type='network' trustGuestRxFilters='yes'>
      <source network='isolated'/>
      <model type='virtio'/>
    </interface>
    

    Figure A.4. Interface Device XML

  6. Shut down, then restart each of these guests.

The guests are now able to reach the host at the address 192.168.254.1, and the host will be able to reach the guests at the IP address they acquired from DHCP (alternatively, you can manually configure the IP addresses for the guests). Since this new network is isolated to only the host and guests, all other communication from the guests will use the macvtap interface. For more information, see Section 23.17.8, “Network Interfaces”.

A.19.5. Could not add rule to fixup DHCP response checksums on network ‘default’

Symptom

This message appears:

Could not add rule to fixup DHCP response checksums on network 'default'
Investigation

Although this message appears to be evidence of an error, it is almost always harmless.

Solution

Unless the problem you are experiencing is that the guest virtual machines are unable to acquire IP addresses through DHCP, this message can be ignored.

A.19.6. Unable to add bridge br0 port vnet0: No such device

Symptom

The following error message appears:

Unable to add bridge name_of_bridge port vnet0: No such device

For example, if the bridge name is br0, the error message appears as:

Unable to add bridge br0 port vnet0: No such device

In libvirt versions 0.9.6 and earlier, the same error appears as:

Failed to add tap interface to bridge name_of_bridge: No such device

Or for example, if the bridge is named br0:

Failed to add tap interface to bridge 'br0': No such device
Investigation

Both error messages reveal that the bridge device specified in the guest’s (or domain’s) <interface> definition does not exist.

To verify the bridge device listed in the error message does not exist, use the shell command ip addr show br0.

A message similar to this confirms the host has no bridge by that name:

br0: error fetching interface information: Device not found

If this is the case, continue to the solution.

However, if the resulting message is similar to the following, the issue exists elsewhere:

br0        Link encap:Ethernet  HWaddr 00:00:5A:11:70:48
           inet addr:10.22.1.5  Bcast:10.255.255.255  Mask:255.0.0.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:249841 errors:0 dropped:0 overruns:0 frame:0
           TX packets:281948 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
	   RX bytes:106327234 (101.4 MiB)  TX bytes:21182634 (20.2 MiB)
Solution
Edit the existing bridge or create a new bridge with virsh

Use virsh to either edit the settings of an existing bridge or network, or to add the bridge device to the host system configuration.

Edit the existing bridge settings using virsh

Use virsh edit name_of_guest to change the <interface> definition to use a bridge or network that already exists.

For example, change type='bridge' to type='network', and <source bridge='br0'/> to <source network='default'/>.

Create a host bridge using virsh

For libvirt version 0.9.8 and later, a bridge device can be created with the virsh iface-bridge command. This creates a bridge device br0 with eth0, the physical network interface that is set as part of a bridge, attached:

virsh iface-bridge eth0 br0

Optional: If needed, remove this bridge and restore the original eth0 configuration with this command:

virsh iface-unbridge br0
Create a host bridge manually

A.19.7. Migration Fails with error: unable to resolve address

Symptom

QEMU guest migration fails and this error message appears:

# virsh migrate qemu qemu+tcp://192.168.122.12/system
  error: Unable to resolve address name_of_host service '49155': Name or service not known

For example, if the destination host name is newyork, the error message appears as:

# virsh migrate qemu qemu+tcp://192.168.122.12/system
error: Unable to resolve address 'newyork' service '49155': Name or service not known

However, this error looks strange as we did not use newyork host name anywhere.

Investigation

During migration, libvirtd running on the destination host creates a URI from an address and port where it expects to receive migration data and sends it back to libvirtd running on the source host.

In this case, the destination host (192.168.122.12) has its name set to ‘newyork’. For some reason, libvirtd running on that host is unable to resolve the name to an IP address that could be sent back and still be useful. For this reason, it returned the ‘newyork’ host name hoping the source libvirtd would be more successful with resolving the name. This can happen if DNS is not properly configured or /etc/hosts has the host name associated with local loopback address (127.0.0.1).

Note that the address used for migration data cannot be automatically determined from the address used for connecting to destination libvirtd (for example, from qemu+tcp://192.168.122.12/system). This is because to communicate with the destination libvirtd, the source libvirtd may need to use network infrastructure different from the type that virsh (possibly running on a separate machine) requires.

Solution

The best solution is to configure DNS correctly so that all hosts involved in migration are able to resolve all host names.

If DNS cannot be configured to do this, a list of every host used for migration can be added manually to the /etc/hosts file on each of the hosts. However, it is difficult to keep such lists consistent in a dynamic environment.

If the host names cannot be made resolvable by any means, virsh migrate supports specifying the migration host:

# virsh migrate qemu qemu+tcp://192.168.122.12/system tcp://192.168.122.12

Destination libvirtd will take the tcp://192.168.122.12 URI and append an automatically generated port number. If this is not desirable (because of firewall configuration, for example), the port number can be specified in this command:

# virsh migrate qemu qemu+tcp://192.168.122.12/system tcp://192.168.122.12:12345

Another option is to use tunneled migration. Tunneled migration does not create a separate connection for migration data, but instead tunnels the data through the connection used for communication with destination libvirtd (for example, qemu+tcp://192.168.122.12/system):

# virsh migrate qemu qemu+tcp://192.168.122.12/system --p2p --tunnelled

A.19.8. Migration Fails with Unable to allow access for disk path: No such file or directory

Symptom

A guest virtual machine (or domain) cannot be migrated because libvirt cannot access the disk image(s):

# virsh migrate qemu qemu+tcp://name_of_host/system
error: Unable to allow access for disk path /var/lib/libvirt/images/qemu.img: No such file or directory

For example, if the destination host name is newyork, the error message appears as:

# virsh migrate qemu qemu+tcp://newyork/system
error: Unable to allow access for disk path /var/lib/libvirt/images/qemu.img: No such file or directory
Investigation

By default, migration only transfers the in-memory state of a running guest (such as memory or CPU state). Although disk images are not transferred during migration, they need to remain accessible at the same path by both hosts.

Solution

Set up and mount shared storage at the same location on both hosts. The simplest way to do this is to use NFS:

Procedure A.9. Setting up shared storage

  1. Set up an NFS server on a host serving as shared storage. The NFS server can be one of the hosts involved in the migration, as long as all hosts involved are accessing the shared storage through NFS.

    # mkdir -p /exports/images
    # cat >>/etc/exports <<EOF
    /exports/images    192.168.122.0/24(rw,no_root_squash)
    EOF
  2. Mount the exported directory at a common location on all hosts running libvirt. For example, if the IP address of the NFS server is 192.168.122.1, mount the directory with the following commands:

    # cat >>/etc/fstab <<EOF
    192.168.122.1:/exports/images  /var/lib/libvirt/images  nfs  auto  0 0
    EOF
    # mount /var/lib/libvirt/images

It is not possible to export a local directory from one host using NFS and mount it at the same path on another host — the directory used for storing disk images must be mounted from shared storage on both hosts. If this is not configured correctly, the guest virtual machine may lose access to its disk images during migration, because the source host’s libvirt daemon may change the owner, permissions, and SELinux labels on the disk images after it successfully migrates the guest to its destination.

If libvirt detects that the disk images are mounted from a shared storage location, it will not make these changes.

A.19.9. No Guest Virtual Machines are Present when libvirtd is Started

Symptom

The libvirt daemon is successfully started, but no guest virtual machines appear to be present.

# virsh list --all
 Id    Name                           State
----------------------------------------------------

Investigation

There are various possible causes of this problem. Performing these tests will help to determine the cause of this situation:

Verify KVM kernel modules

Verify that KVM kernel modules are inserted in the kernel:

# lsmod | grep kvm
kvm_intel             121346  0
kvm                   328927  1 kvm_intel

If you are using an AMD machine, verify the kvm_amd kernel modules are inserted in the kernel instead, using the similar command lsmod | grep kvm_amd in the root shell.

If the modules are not present, insert them using the modprobe <modulename> command.

Although it is uncommon, KVM virtualization support may be compiled into the kernel. In this case, modules are not needed.

Verify virtualization extensions

Verify that virtualization extensions are supported and enabled on the host:

# egrep "(vmx|svm)" /proc/cpuinfo
flags		: fpu vme de pse tsc ... svm ... skinit wdt npt lbrv svm_lock nrip_save
flags		: fpu vme de pse tsc ... svm ... skinit wdt npt lbrv svm_lock nrip_save

Enable virtualization extensions in your hardware’s firmware configuration within the BIOS setup. See your hardware documentation for further details on this.

Verify client URI configuration

Verify that the URI of the client is configured as intended:

# virsh uri
vbox:///system

For example, this message shows the URI is connected to the VirtualBox hypervisor, not QEMU, and reveals a configuration error for a URI that is otherwise set to connect to a QEMU hypervisor. If the URI was correctly connecting to QEMU, the same message would appear instead as:

# virsh uri
qemu:///system

This situation occurs when there are other hypervisors present, which libvirt may speak to by default.

Solution

After performing these tests, use the following command to view a list of guest virtual machines:

# virsh list --all

A.19.10. Common XML Errors

The libvirt tool uses XML documents to store structured data. A variety of common errors occur with XML documents when they are passed to libvirt through the API. Several common XML errors — including erroneous XML tags, inappropriate values, and missing elements — are detailed below.

A.19.10.1. Editing domain definition

Although it is not recommended, it is sometimes necessary to edit a guest virtual machine’s (or a domain’s) XML file manually. To access the guest’s XML for editing, use the following command:

# virsh edit name_of_guest.xml

This command opens the file in a text editor with the current definition of the guest virtual machine. After finishing the edits and saving the changes, the XML is reloaded and parsed by libvirt. If the XML is correct, the following message is displayed:

# virsh edit name_of_guest.xml

Domain name_of_guest.xml XML configuration edited.

When using the edit command in virsh to edit an XML document, save all changes before exiting the editor.

After saving the XML file, use the xmllint command to validate that the XML is well-formed, or the virt-xml-validate command to check for usage problems:

# xmllint --noout config.xml
# virt-xml-validate config.xml

If no errors are returned, the XML description is well-formed and matches the libvirt schema. While the schema does not catch all constraints, fixing any reported errors will further troubleshooting.

XML documents stored by libvirt

These documents contain definitions of states and configurations for the guests. These documents are automatically generated and should not be edited manually. Errors in these documents contain the file name of the broken document. The file name is valid only on the host machine defined by the URI, which may see the machine the command was run on.

Errors in files created by libvirt are rare. However, one possible source of these errors is a downgrade of libvirt — while newer versions of libvirt can always read XML generated by older versions, older versions of libvirt may be confused by XML elements added in a newer version.

A.19.10.2. XML syntax errors

Syntax errors are caught by the XML parser. The error message contains information for identifying the problem.

This example error message from the XML parser consists of three lines — the first line denotes the error message, and the two following lines contain the context and location of the XML code containing the error. The third line contains an indicator showing approximately where the error lies on the line above it:

error: (name_of_guest.xml):6: StartTag: invalid element name
<vcpu>2</vcpu><
-----------------^
Information contained in this message:
(name_of_guest.xml)

This is the file name of the document that contains the error. File names in parentheses are symbolic names to describe XML documents parsed from memory, and do not directly correspond to files on disk. File names that are not contained in parentheses are local files that reside on the target of the connection.

6

This is the line number in the XML file that contains the error.

StartTag: invalid element name

This is the error message from the libxml2 parser, which describes the specific XML error.

A.19.10.2.1. Stray < in the document

Symptom

The following error occurs:

error: (name_of_guest.xml):6: StartTag: invalid element name
<vcpu>2</vcpu><
-----------------^
Investigation

This error message shows that the parser expects a new element name after the < symbol on line 6 of a guest’s XML file.

Ensure line number display is enabled in your text editor. Open the XML file, and locate the text on line 6:

<domain type='kvm'>
   <name>name_of_guest</name>
<memory>524288</memory>
<vcpu>2</vcpu><

This snippet of a guest’s XML file contains an extra < in the document:

Solution

Remove the extra < or finish the new element.

A.19.10.2.2. Unterminated attribute

Symptom

The following error occurs:

error: (name_of_guest.xml):2: Unescaped '<' not allowed in attributes values
<name>name_of_guest</name>
--^
Investigation

This snippet of a guest’s XML file contains an unterminated element attribute value:

<domain type='kvm>
<name>name_of_guest</name>

In this case, 'kvm' is missing a second quotation mark. Attribute values must be opened and closed with quotation marks or apostrophes, similar to XML start and end tags.

Solution

Correctly open and close all attribute value strings.

A.19.10.2.3. Opening and ending tag mismatch

Symptom

The following error occurs:

error: (name_of_guest.xml):61: Opening and ending tag mismatch: clock line 16 and domain
</domain>
---------^
Investigation

The error message above contains three clues to identify the offending tag:

The message following the last colon, clock line 16 and domain, reveals that <clock> contains a mismatched tag on line 16 of the document. The last hint is the pointer in the context part of the message, which identifies the second offending tag.

Unpaired tags must be closed with />. The following snippet does not follow this rule and has produced the error message shown above:

<domain type='kvm'>
  ...
    <clock offset='utc'>

This error is caused by mismatched XML tags in the file. Every XML tag must have a matching start and end tag.

Other examples of mismatched XML tags

The following examples produce similar error messages and show variations of mismatched XML tags.

This snippet contains an mismatch error for <features> because there is no end tag (</name>):

<domain type='kvm'>
 ...
 <features>
   <acpi/>
   <pae/>
 ...
 </domain>

This snippet contains an end tag (</name>) without a corresponding start tag:

<domain type='kvm'>
  </name>
  ...
</domain>
Solution

Ensure all XML tags start and end correctly.

A.19.10.3. Logic and configuration errors

A well-formatted XML document can contain errors that are correct in syntax but libvirt cannot parse. Many of these errors exist, with two of the most common cases outlined below.

A.19.10.3.1. Vanishing parts

Symptom

Parts of the change you have made do not show up and have no effect after editing or defining the domain. The define or edit command works, but when dumping the XML once again, the change disappears.

Investigation

This error likely results from a broken construct or syntax that libvirt does not parse. The libvirt tool will generally only look for constructs it knows but ignore everything else, resulting in some of the XML changes vanishing after libvirt parses the input.

Solution

Validate the XML input before passing it to the edit or define commands. The libvirt developers maintain a set of XML schemas bundled with libvirt that define the majority of the constructs allowed in XML documents used by libvirt.

Validate libvirt XML files using the following command:

# virt-xml-validate libvirt.xml

If this command passes, libvirt will likely understand all constructs from your XML, except if the schemas cannot detect options that are valid only for a given hypervisor. For example, any XML generated by libvirt as a result of a virsh dump command should validate without error.

A.19.10.3.2. Incorrect drive device type

Symptom

The definition of the source image for the CD-ROM virtual drive is not present, despite being added:

# virsh dumpxml domain
<domain type='kvm'>
  ...
  <disk type='block' device='cdrom'>
    <driver name='qemu' type='raw'/>
    <target dev='hdc' bus='ide'/>
    <readonly/>
  </disk>
  ...
</domain>
Solution

Correct the XML by adding the missing <source> parameter as follows:

<disk type='block' device='cdrom'>
  <driver name='qemu' type='raw'/>
  <source file='/path/to/image.iso'/>
  <target dev='hdc' bus='ide'/>
  <readonly/>
</disk>

A type='block' disk device expects that the source is a physical device. To use the disk with an image file, use type='file' instead.

#1 2021-10-16 03:03:35

shirase
Member
Registered: 2017-11-14
Posts: 15  

[SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

I made this post in another thread where they had the same issue but it was marked as solved when the user only did a release downgrade so I’m posting it as a new topic for visibility.
I’m having this issue after dist-upgrading to current stable (Chimaera), which it worked fine previously on beowulf.

After running

sudo apt-get install --no-install-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils

I ran into this error

libvirt-daemon-system : Depends: libvirt-daemon (= 7.0.0-3+devuan3) but it is not installable
E: Unable to correct problems, you have held broken packages.

After apt searching libvirt-daemon it seems like it’s already installed and on the correct version.

apt search libvirt-daemon
Sorting... Done
Full Text Search... Done
libvirt-daemon/stable,now 7.0.0-3+devuan3 amd64 [installed]

Any ideas?

And here’s the debug output:

apt -s -o Debug::pkgProblemResolver=yes install libvirt-daemon-system
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  jq libjq1 libonig5 libvirt-clients libvirt-daemon-config-network
  libvirt-daemon-config-nwfilter libvirt-daemon-system-sysv mdevctl
Suggested packages:
  libvirt-login-shell auditd nfs-common open-iscsi pm-utils radvd systemtap
  zfsutils
The following NEW packages will be installed:
  jq libjq1 libonig5 libvirt-clients libvirt-daemon-config-network
  libvirt-daemon-config-nwfilter libvirt-daemon-system
  libvirt-daemon-system-sysv mdevctl
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Inst libvirt-daemon-system-sysv (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Inst libonig5 (6.9.6-1.1 Devuan:4.0/stable [amd64])
Inst libjq1 (1.6-2.1 Devuan:4.0/stable [amd64])
Inst jq (1.6-2.1 Devuan:4.0/stable [amd64])
Inst libvirt-clients (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Inst libvirt-daemon-config-network (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Inst libvirt-daemon-config-nwfilter (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Inst libvirt-daemon-system (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Inst mdevctl (0.81-1 Devuan:4.0/stable [all])
Conf libvirt-daemon-system-sysv (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Conf libonig5 (6.9.6-1.1 Devuan:4.0/stable [amd64])
Conf libjq1 (1.6-2.1 Devuan:4.0/stable [amd64])
Conf jq (1.6-2.1 Devuan:4.0/stable [amd64])
Conf libvirt-clients (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Conf libvirt-daemon-config-network (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Conf libvirt-daemon-config-nwfilter (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Conf libvirt-daemon-system (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Conf mdevctl (0.81-1 Devuan:4.0/stable [all])

Last edited by shirase (2021-10-22 01:05:50)

#2 2021-10-16 10:25:58

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Debug the resolver:

apt -s -o Debug::pkgProblemResolver=yes install libvirt-daemon-system

Please post all output. It would be useful if you could also edit the OP and add the full output there as well, along with the full command that lead to the error snippet you posted.


Brianna Ghey — Rest In Power

#3 2021-10-16 10:35:16

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

Debug the resolver:

apt -s -o Debug::pkgProblemResolver=yes install libvirt-daemon-system

Please post all output. It would be useful if you could also edit the OP and add the full output there as well, along with the full command that lead to the error snippet you posted.

The full command that I ran previously to the error was

sudo apt-get install --no-install-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils

And here’s the debug output,

apt -s -o Debug::pkgProblemResolver=yes install libvirt-daemon-system
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following additional packages will be installed:
  jq libjq1 libonig5 libvirt-clients libvirt-daemon-config-network
  libvirt-daemon-config-nwfilter libvirt-daemon-system-sysv mdevctl
Suggested packages:
  libvirt-login-shell auditd nfs-common open-iscsi pm-utils radvd systemtap
  zfsutils
The following NEW packages will be installed:
  jq libjq1 libonig5 libvirt-clients libvirt-daemon-config-network
  libvirt-daemon-config-nwfilter libvirt-daemon-system
  libvirt-daemon-system-sysv mdevctl
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Inst libvirt-daemon-system-sysv (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Inst libonig5 (6.9.6-1.1 Devuan:4.0/stable [amd64])
Inst libjq1 (1.6-2.1 Devuan:4.0/stable [amd64])
Inst jq (1.6-2.1 Devuan:4.0/stable [amd64])
Inst libvirt-clients (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Inst libvirt-daemon-config-network (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Inst libvirt-daemon-config-nwfilter (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Inst libvirt-daemon-system (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Inst mdevctl (0.81-1 Devuan:4.0/stable [all])
Conf libvirt-daemon-system-sysv (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Conf libonig5 (6.9.6-1.1 Devuan:4.0/stable [amd64])
Conf libjq1 (1.6-2.1 Devuan:4.0/stable [amd64])
Conf jq (1.6-2.1 Devuan:4.0/stable [amd64])
Conf libvirt-clients (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Conf libvirt-daemon-config-network (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Conf libvirt-daemon-config-nwfilter (7.0.0-3+devuan3 Devuan:4.0/stable [all])
Conf libvirt-daemon-system (7.0.0-3+devuan3 Devuan:4.0/stable [amd64])
Conf mdevctl (0.81-1 Devuan:4.0/stable [all])

Last edited by shirase (2021-10-16 10:42:23)

#4 2021-10-16 11:08:53

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

So did you try actually installing the package then?

shirase wrote:

The full command that I ran previously to the error was

sudo apt-get install --no-install-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils

What does that return with the resolver in debug mode?


Brianna Ghey — Rest In Power

#5 2021-10-16 22:06:19

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

So did you try actually installing the package then?

Yes but I still get the same error even with it installed, as if it’s not being recognized that it’s installed.

apt -s -o Debug::pkgProblemResolver=yes install --no-install-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'qemu-system-x86' instead of 'qemu-kvm'
dnsmasq is already the newest version (2.85-1).
gir1.2-spiceclientgtk-3.0 is already the newest version (0.39-1).
Starting pkgProblemResolver with broken count: 4
Starting 2 pkgProblemResolver with broken count: 4
Investigating (0) libvirt-daemon-system:amd64 < none -> 7.0.0-3+devuan3 @un puN Ib >
Broken libvirt-daemon-system:amd64 Depends on libvirt-daemon:amd64 < 7.0.0-3+devuan3 @ii pmR > (= 7.0.0-3+devuan3)
  Considering libvirt-daemon:amd64 1 as a solution to libvirt-daemon-system:amd64 10000
  Added libvirt-daemon:amd64 to the remove list
Investigating (0) libvirt-daemon-driver-lxc:amd64 < 7.0.0-3+devuan3 @ii mK Ib >
Broken libvirt-daemon-driver-lxc:amd64 Depends on libvirt-daemon:amd64 < 7.0.0-3+devuan3 @ii pmR > (= 7.0.0-3+devuan3)
  Considering libvirt-daemon:amd64 10000 as a solution to libvirt-daemon-driver-lxc:amd64 0
  Removing libvirt-daemon-driver-lxc:amd64 rather than change libvirt-daemon:amd64
Investigating (0) libvirt-daemon-driver-xen:amd64 < 7.0.0-3+devuan3 @ii mK Ib >
Broken libvirt-daemon-driver-xen:amd64 Depends on libvirt-daemon:amd64 < 7.0.0-3+devuan3 @ii pmR > (= 7.0.0-3+devuan3)
  Considering libvirt-daemon:amd64 10000 as a solution to libvirt-daemon-driver-xen:amd64 0
  Removing libvirt-daemon-driver-xen:amd64 rather than change libvirt-daemon:amd64
Investigating (0) libvirt-daemon-driver-vbox:amd64 < 7.0.0-3+devuan3 @ii mK Ib >
Broken libvirt-daemon-driver-vbox:amd64 Depends on libvirt-daemon:amd64 < 7.0.0-3+devuan3 @ii pmR > (= 7.0.0-3+devuan3)
  Considering libvirt-daemon:amd64 10000 as a solution to libvirt-daemon-driver-vbox:amd64 0
  Removing libvirt-daemon-driver-vbox:amd64 rather than change libvirt-daemon:amd64
Investigating (1) libvirt-daemon-system:amd64 < none -> 7.0.0-3+devuan3 @un puN Ib >
Broken libvirt-daemon-system:amd64 Depends on libvirt-daemon:amd64 < 7.0.0-3+devuan3 @ii pmR > (= 7.0.0-3+devuan3)
  Considering libvirt-daemon:amd64 10000 as a solution to libvirt-daemon-system:amd64 10000
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libvirt-daemon-system : Depends: libvirt-daemon (= 7.0.0-3+devuan3) but it is not installable
E: Unable to correct problems, you have held broken packages.

Both of these packages are installed but I still get that error.

sudo apt-get install --no-install-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'qemu-system-x86' instead of 'qemu-kvm'
dnsmasq is already the newest version (2.85-1).
gir1.2-spiceclientgtk-3.0 is already the newest version (0.39-1).
libvirt-clients is already the newest version (7.0.0-3+devuan3).
libvirt-clients set to manually installed.
libvirt-daemon-system is already the newest version (7.0.0-3+devuan3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libvirt-daemon-system : Depends: libvirt-daemon (= 7.0.0-3+devuan3) but it is not installable
E: Unable to correct problems, you have held broken packages.

#6 2021-10-20 23:52:39

jnr2820
Member
From: North Carolina, USA
Registered: 2021-10-15
Posts: 5  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

So far I’m not able to reproduce this on a clean 4.0 install.
I know this might be a dumb question, but what happens when you run these:

and

sudo apt reinstall libvirt-daemon

?

Also, I think I’ve seen some funny business like this when the local db doesn’t think that package exists and/or it is missing from your mirror. Changing the mirror and running ‘sudo apt clean && sudo apt update’ might also be something good to try. (This is the mirror I’m using if you need it for reference: «http://mishka.snork.ca/»)

Last edited by jnr2820 (2021-10-20 23:59:39)

#7 2021-10-21 02:16:20

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

jnr2820 wrote:

So far I’m not able to reproduce this on a clean 4.0 install.
I know this might be a dumb question, but what happens when you run these:

I changed mirrors from deb.devuan to pkgmaster.devuan, apt updated and apt cleaned, then ran your commands. apt install -f did nothing, and reinstalling libvirt-daemon reinstalled it normally, but I’m still getting the same errors. Seems like reinstalling may be the only fix, I will try a reinstall in a few days after I backup everything.

Last edited by shirase (2021-10-21 02:16:44)

#8 2021-10-21 06:14:09

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

How about

apt policy libvirt-daemon
aptitude why-not libvirt-daemon
aptitude -s install --no-install-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils

The last command may offer several possible solutions so be sure to go through them all.


Brianna Ghey — Rest In Power

#9 2021-10-21 23:27:56

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

How about

I’m not sure if the output is helpful or not so I’ll post it here to await further instruction/suggestions.

sudo apt policy libvirt-daemon
libvirt-daemon:
  Installed: 7.0.0-3+devuan3
  Candidate: 7.0.0-3+devuan3
  Version table:
 *** 7.0.0-3+devuan3 500
        500 http://pkgmaster.devuan.org/merged chimaera/main amd64 Packages
        100 /var/lib/dpkg/status
sudo aptitude why-not libvirt-daemon
i   libvirt-daemon     Recommends qemu-kvm | qemu-system (>= 0.9.1)          
p   qemu-system        Depends    qemu-system-x86                            
p   qemu-system-x86    Depends    qemu-system-common (= 1:6.1+dfsg-6~bpo11+1)
p   qemu-system-common Breaks     libvirt-daemon (< 7.2.0-1)                 
sudo aptitude -s install --without-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils
Note: selecting "qemu-system-x86" instead of the virtual package "qemu-kvm"
libvirt-daemon-system is already installed at the requested version (7.0.0-3+devuan3)
libvirt-clients is already installed at the requested version (7.0.0-3+devuan3)
virt-manager is already installed at the requested version (1:3.2.0-3)
gir1.2-spiceclientgtk-3.0 is already installed at the requested version (0.39-1)
dnsmasq is already installed at the requested version (2.85-1)
libvirt-daemon-system is already installed at the requested version (7.0.0-3+devuan3)
libvirt-clients is already installed at the requested version (7.0.0-3+devuan3)
virt-manager is already installed at the requested version (1:3.2.0-3)
gir1.2-spiceclientgtk-3.0 is already installed at the requested version (0.39-1)
dnsmasq is already installed at the requested version (2.85-1)
The following NEW packages will be installed:
  ipxe-qemu{a} libcapstone4{a} libdaxctl1{a} libexecs0{a} libfdt1{a} 
  libfuse3-3{a} libibverbs1{a} libndctl6{a} libpmem1{a} librdmacm1{a} 
  libslirp0{a} liburing1{a} libvdeplug2{a} qemu-system-data{a} 
  qemu-system-x86{b} qemu-utils seabios{a} 
The following packages are RECOMMENDED but will NOT be installed:
  ibverbs-providers ovmf qemu-block-extra qemu-system-gui 
0 packages upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2 MB of archives. After unpacking 62.9 MB will be used.
The following packages have unmet dependencies:
 qemu-system-x86 : Depends: qemu-system-common (= 1:6.1+dfsg-6~bpo11+1) but it is not going to be installed
The following actions will resolve these dependencies:

     Remove the following packages:                                
1)     libvirt-daemon [7.0.0-3+devuan3 (now, stable)]              
2)     libvirt-daemon-driver-lxc [7.0.0-3+devuan3 (now, stable)]   
3)     libvirt-daemon-driver-vbox [7.0.0-3+devuan3 (now, stable)]  
4)     libvirt-daemon-driver-xen [7.0.0-3+devuan3 (now, stable)]   
5)     libvirt-daemon-system [7.0.0-3+devuan3 (now, stable)]       

     Install the following packages:                               
6)     libspice-server1 [0.14.3-2.1 (stable)]                      
7)     qemu-system-common [1:6.1+dfsg-6~bpo11+1 (stable-backports)]

Accept this solution? [Y/n/q/?] 

#10 2021-10-22 01:05:03

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

How about

The last command provided a solution that resolved the issue. I believe after typing «n» to the first two solutions given, it was the third one that I typed «y» to, and it resolved the issue. Thanks for your help. I’m marking the topic as solved.

sudo aptitude install --without-recommends qemu-kvm libvirt-daemon-system libvirt-clients virt-manager gir1.2-spiceclientgtk-3.0 dnsmasq qemu-utils

#11 2021-10-22 02:44:24

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Just one question about something, upgrading gives the following message

The following packages have been kept back:
  qemu-system-common qemu-system-x86
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

And if I try to manually upgrade I get this, which puts me back at the original issue. So, will this issue resolve itself in the future or do I need to always hold those packages back?

sudo apt install -s qemu-system-common qemu-system-x86
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  augeas-lenses libaugeas0 libnetcf1 libvirglrenderer1
  libvirt-daemon-config-network libvirt-daemon-config-nwfilter
  libvirt-daemon-driver-qemu libvirt-daemon-system-sysv
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  samba vde2
Recommended packages:
  qemu-system-gui ovmf
The following packages will be REMOVED:
  libvirt-daemon libvirt-daemon-driver-lxc libvirt-daemon-driver-vbox
  libvirt-daemon-driver-xen libvirt-daemon-system
The following packages will be upgraded:
  qemu-system-common qemu-system-x86
2 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
Remv libvirt-daemon-system [7.0.0-3+devuan3]
Remv libvirt-daemon-driver-xen [7.0.0-3+devuan3]
Remv libvirt-daemon [7.0.0-3+devuan3] [libvirt-daemon-driver-vbox:amd64 libvirt-daemon-driver-lxc:amd64 ]
Remv libvirt-daemon-driver-lxc [7.0.0-3+devuan3] [libvirt-daemon-driver-vbox:amd64 ]
Remv libvirt-daemon-driver-vbox [7.0.0-3+devuan3]
Inst qemu-system-common [1:5.2+dfsg-11+deb11u1] (1:6.1+dfsg-6~bpo11+1 Devuan Backports:4.0/stable-backports [amd64])
Inst qemu-system-x86 [1:5.2+dfsg-11+deb11u1] (1:6.1+dfsg-6~bpo11+1 Devuan Backports:4.0/stable-backports [amd64])
Conf qemu-system-common (1:6.1+dfsg-6~bpo11+1 Devuan Backports:4.0/stable-backports [amd64])
Conf qemu-system-x86 (1:6.1+dfsg-6~bpo11+1 Devuan Backports:4.0/stable-backports [amd64])

#12 2021-10-22 15:23:43

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

So why does the Devuan libvirt-daemon package need stuff from backports?

And which other backports are installed?

aptitude search ~S~i~Astable-backports

(You might have to replace stable- with chimaera-.)


Brianna Ghey — Rest In Power

#13 2021-10-22 16:43:19

golinux
Administrator
Registered: 2016-11-25
Posts: 2,914  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

(You might have to replace stable- with chimaera-.)

Yes, in Devuan always use the release name in sources.list to avoid unintended consequences.

#14 2021-10-22 23:21:34

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

I’m not sure why the output said stable, I do use the release name in the sources.list.

apt info libvirt-daemon
Package: libvirt-daemon
Version: 7.0.0-3+devuan3
Priority: optional
Section: admin
Source: libvirt
Origin: Devuan
Maintainer: Andreas Messer <andi@bastelmap.de>
Installed-Size: 1,737 kB
Depends: libvirt-daemon-driver-qemu (= 7.0.0-3+devuan3), libvirt0 (= 7.0.0-3+devuan3), libblkid1 (>= 2.17.2), libc6 (>= 2.28), libdevmapper1.02.1 (>= 2:1.02.97), libeudev1 (>= 3.2.9), libgcc-s1 (>= 3.3.1), libglib2.0-0 (>= 2.31.8), libnetcf1 (>= 1:0.2.2), libparted2 (>= 3.1), libpcap0.8 (>= 1.5.1), libpciaccess0, libselinux1 (>= 3.1~), libxml2 (>= 2.9.2+really2.9.1+dfsg1-0.2)
Recommends: libvirt-daemon-driver-lxc (= 7.0.0-3+devuan3), libvirt-daemon-driver-vbox (= 7.0.0-3+devuan3), libvirt-daemon-driver-xen (= 7.0.0-3+devuan3), libxml2-utils, netcat-openbsd, qemu-kvm | qemu-system (>= 0.9.1)
Suggests: libvirt-daemon-driver-storage-gluster (= 7.0.0-3+devuan3), libvirt-daemon-driver-storage-iscsi-direct (= 7.0.0-3+devuan3), libvirt-daemon-driver-storage-rbd (= 7.0.0-3+devuan3), libvirt-daemon-driver-storage-zfs (= 7.0.0-3+devuan3), libvirt-daemon-system (= 7.0.0-3+devuan3), numad
Breaks: libvirt-clients (<< 6.9.0-2~), libvirt-daemon-driver-lxc (<< 6.9.0-2~), libvirt-daemon-system (<< 6.9.0-3~), libvirt-sanlock (<< 6.9.0-2~)
Replaces: libvirt-daemon-system (<< 6.9.0-3~)
Enhances: qemu-kvm, qemu-system, xen
Homepage: https://libvirt.org/
Download-Size: 471 kB
APT-Manual-Installed: yes
APT-Sources: https://pkgmaster.devuan.org/merged chimaera/main amd64 Packages
Description: Virtualization daemon
 Libvirt is a C toolkit to interact with the virtualization capabilities
 of recent versions of Linux (and other OSes). The library aims at providing
 a long term stable C API for different virtualization mechanisms. It currently
 supports QEMU, KVM, XEN, OpenVZ, LXC, and VirtualBox.
 .
 This package contains the daemon libvirtd to manage the hypervisors.
aptitude search ~S~i~Astable-backports
i A at-spi2-core                   - Assistive Technology Service Provider In
i   flatpak                        - Application deployment framework for des
i A gir1.2-javascriptcoregtk-4.0   - JavaScript engine library from WebKitGTK
i A gir1.2-webkit2-4.0             - Web content engine library for GTK - GOb
i   iproute2                       - networking and traffic control tools    
i A libatspi2.0-0                  - Assistive Technology Service Provider In
i A libbrlapi0.8                   - braille display access via BRLTTY - shar
i A libepoxy0                      - OpenGL function pointer management libra
i A libflatpak0                    - Application deployment framework for des
i A libgfapi0                      - GlusterFS gfapi shared library          
i A libgfrpc0                      - GlusterFS libgfrpc shared library       
i A libgfxdr0                      - GlusterFS libgfxdr shared library       
i A libglusterfs0                  - GlusterFS shared library                
i A libjavascriptcoregtk-4.0-18    - JavaScript engine library from WebKitGTK
i A libkcolorpicker0               - QToolButton-like widget with color selec
i A libkimageannotator-common      - Image Annotating Library (common data fi
i A libkimageannotator0            - Image Annotating Library (lib)          
i A libldap-2.4-2                  - OpenLDAP libraries                      
i A libldap-common                 - OpenLDAP common files for libraries     
i A liblouis-data                  - Braille translation library - data      
i A liblouis20                     - Braille translation library - shared lib
i A libvulkan1                     - Vulkan loader library                   
i A libwebkit2gtk-4.0-37           - Web content engine library for GTK      
i A linux-image-5.14.0-0.bpo.2-amd - Linux 5.14 for 64-bit PCs (signed)      
i   linux-image-amd64              - Linux for 64-bit PCs (meta-package)     
i A qemu-block-extra               - extra block backend modules for qemu-sys
i A qemu-system-data               - QEMU full system emulation (data files) 
i   qemu-utils                     - QEMU utilities                          
i   xbrlapi                        - Access software for a blind person using

That’s strange that it’s installed all that stuff from backports. Especially the kernel, I did not manually do that, I just thought that kernel was put into stable. Is there something I need to change in my sources to prevent it using backports by default? The only thing I manually installed in backports was flatpak.

Here’s my sources.list in case that is relevant to the issue.

deb https://pkgmaster.devuan.org/merged/ chimaera main non-free contrib 
deb-src https://pkgmaster.devuan.org/merged/ chimaera main non-free contrib 

# chimaera-security 
deb https://pkgmaster.devuan.org/merged/ chimaera-security main contrib non-free
deb-src https://pkgmaster.devuan.org/merged/ chimaera-security main contrib non-free

# chimaera-updates, previously known as 'volatile'
deb https://pkgmaster.devuan.org/merged/ chimaera-updates main contrib non-free
deb-src https://pkgmaster.devuan.org/merged/ chimaera-updates main contrib non-free

#backports
deb https://pkgmaster.devuan.org/merged/ chimaera-backports main contrib non-free
deb-src https://pkgmaster.devuan.org/merged/ chimaera-backports main contrib non-free

#15 2021-10-23 09:09:52

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

shirase wrote:

I’m not sure why the output said stable, I do use the release name in the sources.list.

That’s just how aptitude identifies the archive for the ~A search option.

shirase wrote:

Is there something I need to change in my sources to prevent it using backports by default?

I think we’ve found a problem.

The Debian bullseye-backports repository has a Release file that contains these lines:

NotAutomatic: yes
ButAutomaticUpgrades: yes

This confers a pin priority of 100 for all packages, which means they will not be installed unless explicitly targetted (either by version or with the —target option for apt) but any packages that are installed from backports will be kept updated from there.

But the Devuan chimaera-backports repository Release file does not have those lines.

Can we please see the output of

^ That will show the pin priority assigned to all active repositories. If the backports repository is at 500 rather than 100 then it is pinned wrong and a bug report is called for.

shirase wrote:

Here’s my sources.list in case that is relevant to the issue.

Note that the pkgmaster.devuan.org repositories are no longer recommended; see https://www.devuan.org/os/packages for the canonical list of official sources.


Brianna Ghey — Rest In Power

#16 2021-10-23 09:48:20

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

Can we please see the output of

^ That will show the pin priority assigned to all active repositories. If the backports repository is at 500 rather than 100 then it is pinned wrong and a bug report is called for.

You’re right it’s at 500. Is there something I can do in the meantime on my end for a fix? Or is it just up to the developers?
Also I switched my sources back to deb.devuan, but when following your link there’s a link there to a mirror list and pkgmaster is at the top, it’s not clear that it’s not recommended though. Here’s the mirror list I’m talking about.
https://pkgmaster.devuan.org/mirror_list.txt

apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://repo.nextdns.io/deb stable/main amd64 Packages
     release o=NextDNS,a=stable,l=NextDNS,c=main,b=amd64
     origin repo.nextdns.io
 500 http://deb.devuan.org/merged chimaera-backports/non-free amd64 Packages
     release v=4.0,o=Devuan Backports,a=stable-backports,n=chimaera-backports,l=Devuan Backports,c=non-free,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera-backports/contrib amd64 Packages
     release v=4.0,o=Devuan Backports,a=stable-backports,n=chimaera-backports,l=Devuan Backports,c=contrib,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera-backports/main amd64 Packages
     release v=4.0,o=Devuan Backports,a=stable-backports,n=chimaera-backports,l=Devuan Backports,c=main,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera-security/main amd64 Packages
     release v=4.0,o=Devuan,a=stable-security,n=chimaera-security,l=Devuan-Security,c=main,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera/contrib amd64 Packages
     release v=4.0,o=Devuan,a=stable,n=chimaera,l=Devuan,c=contrib,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera/non-free amd64 Packages
     release v=4.0,o=Devuan,a=stable,n=chimaera,l=Devuan,c=non-free,b=amd64
     origin deb.devuan.org
 500 http://deb.devuan.org/merged chimaera/main amd64 Packages
     release v=4.0,o=Devuan,a=stable,n=chimaera,l=Devuan,c=main,b=amd64
     origin deb.devuan.org
Pinned packages:

#17 2021-10-23 09:57:15

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

shirase wrote:

Is there something I can do in the meantime on my end for a fix?

Create a file at /ect/apt/preferences.d/fix with this content:

Package: *
Pin: release n=chimaera-backports
Pin-Priority: 100

Then run apt update (as root) and check the pinning to see if it’s fixed.

I would also recommend downgrading as many backports as possible, especially the QEMU packages. You’ll have to use apt install package=version (replace package with the actual name of the package and replace version with the version number from chimaera) for each package. There’s probably a quicker way to do that but I don’t know of any.

And please remember to submit a bug report to Devuan about this. See https://www.chiark.greenend.org.uk/~sgtatham/bugs.html for a general guide to bug reporting; it might be good to include a link to this thread for background.

EDIT: in respect of pkgmaster.devuan.org, the advice to use the deb.devuan.org redirector is to avoid loading the specific mirror unduly (AFAIUI).

Last edited by Head_on_a_Stick (2021-10-23 10:50:03)


Brianna Ghey — Rest In Power

#18 2021-10-23 14:50:04

golinux
Administrator
Registered: 2016-11-25
Posts: 2,914  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

pkgmaster.devuan.org is the source from which all other mirrors are synced. Individual users pulling from it can disrupt the syncing and cause delays elsewhere in the pool.

#19 2021-10-23 23:14:40

shirase
Member
Registered: 2017-11-14
Posts: 15  

Re: [SOLVED] libvirt-daemon/qemu-kvm won’t install on chimaera

Head_on_a_Stick wrote:

I would also recommend downgrading as many backports as possible, especially the QEMU packages. You’ll have to use apt install package=version (replace package with the actual name of the package and replace version with the version number from chimaera) for each package. There’s probably a quicker way to do that but I don’t know of any.

The way you described to downgrade the packages didn’t work in this instance because it was only looking for the package in the backports repo.
So if anyone else has this bug and comes across this thread, the way I downgraded the packages was to point each package back to the stable repo.
sudo apt install package/chimaera —no-install-recommends (replacing package with the actual name of the package)
The —no-install-recommends is optional but I put it so that it doesn’t pull in packages that arent necessary.
Thanks again for your help and I’ve submitted a bug report.

Понравилась статья? Поделить с друзьями:
  • Lg f1256md ошибка ue
  • Lg smart tv код ошибки 105
  • Libvic dll ошибка
  • Lg wd 80154 n ошибка ie
  • Lg f1222ndr5 ошибка oe