Skip to content

virNetClientProgramDispatchError:170 : Failed to open file '/usr/share/libvirt/cpu_map/arm_Ampere-1.xml': No such file or directory

Software environment

  • Operating system: Fedora 43
  • Architecture: aarch64
  • kernel version: 6.15.0-0.rc0.20250401git08733088b566.8.fc43
  • libvirt version: 11.2.0-1.fc43
  • Hypervisor and version: qemu 9.2.2-2.fc43, probably TCG

Description of problem

libvirt fails to launch a transient domain with the strange error:

2025-04-03 18:46:19.539+0000: 34730: error : virNetClientProgramDispatchError:170 : Failed to open file '/usr/share/libvirt/cpu_map/arm_Ampere-1.xml': No such file or directory

Steps to reproduce

  1. Run libguestfs-test-tool

Additional information

<domain type="qemu" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
  <name>guestfs-rxfp5fuy7dq1t3j7</name>
  <memory unit="MiB">1280</memory>
  <currentMemory unit="MiB">1280</currentMemory>
  <cpu>
    <model>cortex-a57</model>
  </cpu>
  <vcpu>1</vcpu>
  <clock offset="utc">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
  </clock>
  <os firmware="efi">
    <type machine="virt">hvm</type>
    <kernel>/builddir/build/BUILD/libguestfs-1.55.8-build/libguestfs-1.55.8/tmp/.guestfs-1000/appliance.d/kernel</kernel>
    <initrd>/builddir/build/BUILD/libguestfs-1.55.8-build/libguestfs-1.55.8/tmp/.guestfs-1000/appliance.d/initrd</initrd>
    <cmdline>panic=1 console=ttyAMA0 earlyprintk=pl011,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=UUID=7b408fb5-061a-4299-b918-436dcbb2d1b6 selinux=0 guestfs_verbose=1 TERM=vt100</cmdline>
  </os>
  <on_reboot>destroy</on_reboot>
  <devices>
    <rng model="virtio">
      <backend model="random">/dev/urandom</backend>
    </rng>
    <controller type="scsi" index="0" model="virtio-scsi"/>
    <disk device="disk" type="file">
      <source file="/builddir/build/BUILD/libguestfs-1.55.8-build/libguestfs-1.55.8/tmp/libguestfsTEJE84/scratch1.img"/>
      <target dev="sda" bus="scsi"/>
      <driver name="qemu" type="raw" cache="unsafe"/>
      <address type="drive" controller="0" bus="0" target="0" unit="0"/>
    </disk>
    <disk type="file" device="disk">
      <source file="/builddir/build/BUILD/libguestfs-1.55.8-build/libguestfs-1.55.8/tmp/libguestfsTEJE84/overlay2.qcow2"/>
      <target dev="sdb" bus="scsi"/>
      <driver name="qemu" type="qcow2" cache="unsafe"/>
      <address type="drive" controller="0" bus="0" target="1" unit="0"/>
    </disk>
    <serial type="unix">
      <source mode="connect" path="/tmp/libguestfs4xM4Nz/console.sock"/>
      <target port="0"/>
    </serial>
    <channel type="unix">
      <source mode="connect" path="/tmp/libguestfs4xM4Nz/guestfsd.sock"/>
      <target type="virtio" name="org.libguestfs.channel.0"/>
    </channel>
    <controller type="usb" model="none"/>
    <memballoon model="none"/>
  </devices>
  <qemu:commandline>
    <qemu:env name="TMPDIR" value="/builddir/build/BUILD/libguestfs-1.55.8-build/libguestfs-1.55.8/tmp"/>
  </qemu:commandline>
</domain>

Full build log is here:

https://koji.fedoraproject.org/koji/taskinfo?taskID=131067385

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information