[SOLVED] Qemu error after latest update

avidesh

Member
Dec 28, 2023
50
2
8
I updated proxmox today with the latest patch release. my Home Assistant VM fails to start with the following error.
Code:
/usr/bin/kvm: error while loading shared libraries: librbd.so.1: cannot open shared object file: No such file or directory
command '/usr/bin/kvm --version' failed: exit code 127
TASK ERROR: Detected old QEMU binary ('unknown', at least 6.0 is required)
I wonder what I did wrong.

how to debug and resolve this issue?
appreciate any guidance.

additional information
Code:
proxmox-ve: 9.0.0 (running kernel: 6.14.11-1-pve)
pve-manager: 9.0.6 (running version: 9.0.6/49c767b70aeb6648)
proxmox-kernel-helper: 9.0.4
proxmox-kernel-6.14.11-1-pve-signed: 6.14.11-1
proxmox-kernel-6.14: 6.14.11-1
proxmox-kernel-6.14.8-2-pve-signed: 6.14.8-2
ceph-fuse: 19.2.3-pve1
corosync: 3.1.9-pve2
criu: 4.1.1-1
frr-pythontools: 10.3.1-1+pve4
ifupdown2: 3.3.0-1+pmx10
intel-microcode: 3.20250512.1
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libproxmox-acme-perl: 1.7.0
libproxmox-backup-qemu0: 2.0.1
libproxmox-rs-perl: 0.4.1
libpve-access-control: 9.0.3
libpve-apiclient-perl: 3.4.0
libpve-cluster-api-perl: 9.0.6
libpve-cluster-perl: 9.0.6
libpve-common-perl: 9.0.9
libpve-guest-common-perl: 6.0.2
libpve-http-server-perl: 6.0.4
libpve-network-perl: 1.1.6
libpve-rs-perl: 0.10.10
libpve-storage-perl: 9.0.13
libspice-server1: 0.15.2-1+b1
lvm2: 2.03.31-2+pmx1
lxc-pve: 6.0.4-2
lxcfs: 6.0.4-pve1
novnc-pve: 1.6.0-3
proxmox-backup-client: 4.0.14-1
proxmox-backup-file-restore: 4.0.14-1
proxmox-backup-restore-image: 1.0.0
proxmox-firewall: 1.1.2
proxmox-kernel-helper: 9.0.4
proxmox-mail-forward: 1.0.2
proxmox-mini-journalreader: 1.6
proxmox-offline-mirror-helper: 0.7.1
proxmox-widget-toolkit: 5.0.5
pve-cluster: 9.0.6
pve-container: 6.0.9
pve-docs: 9.0.8
pve-edk2-firmware: 4.2025.02-4
pve-esxi-import-tools: 1.0.1
pve-firewall: 6.0.3
pve-firmware: 3.16-4
pve-ha-manager: 5.0.4
pve-i18n: 3.5.2
pve-qemu-kvm: 10.0.2-4
pve-xtermjs: 5.5.0-2
qemu-server: 9.0.19
smartmontools: 7.4-pve1
spiceterm: 3.4.0
swtpm: 0.8.0+pve2
vncterm: 1.9.0
zfsutils-linux: 2.3.4-pve1
 
Last edited:
I tried to reinstall
Code:
apt install pve-qemu-kvm qemu-server --reinstall
response was ok
Code:
Summary:                         
  Upgrading: 0, Installing: 0, Reinstalling: 2, Removing: 0, Not Upgrading: 0
  Download size: 32.2 MB / 32.6 MB
  Space needed: 0 B / 90.1 GB available

Get:1 http://download.proxmox.com/debian/pve trixie/pve-no-subscription amd64 pve-qemu-kvm amd64 10.0.2-4 [32.2 MB]
Fetched 32.2 MB in 5s (7,107 kB/s)       
(Reading database ... 59372 files and directories currently installed.)
Preparing to unpack .../pve-qemu-kvm_10.0.2-4_amd64.deb ...
Unpacking pve-qemu-kvm (10.0.2-4) over (10.0.2-4) ...
Preparing to unpack .../qemu-server_9.0.19_amd64.deb ...
Unpacking qemu-server (9.0.19) over (9.0.19) ...
Setting up pve-qemu-kvm (10.0.2-4) ...
Setting up qemu-server (9.0.19) ...
Processing triggers for dbus (1.16.2-2) ...
Processing triggers for pve-ha-manager (5.0.4) ...
Processing triggers for pve-manager (9.0.6) ...
Processing triggers for man-db (2.13.1-1) ...
However when I try to check the version I get an error
Code:
root@aadpve:~# qemu-system-x86_64 --version
qemu-system-x86_64: error while loading shared libraries: librbd.so.1: cannot open shared object file: No such file or directory
 
unable to create new VMs either.
Code:
/usr/bin/kvm: error while loading shared libraries: librbd.so.1: cannot open shared object file: No such file or directory
command '/usr/bin/kvm --version' failed: exit code 127
TASK ERROR: internal error: cannot get pve version for invalid string 'unknown' at /usr/share/perl5/PVE/QemuServer/Machine.pm line 239.
 
I suppose you could try
Bash:
apt install --reinstall librbd1
Some information from my system and example steps to troubleshoot something like this
Bash:
# ldd /usr/bin/qemu-system-x86_64 | grep "rbd"
        librbd.so.1 => /lib/librbd.so.1 (0x00007c621f000000)

# ls -l /lib/librbd.so.1
lrwxrwxrwx 1 root root 16 Jul 29 05:46 /lib/librbd.so.1 -> librbd.so.1.19.0

# dpkg -S $(readlink -f /lib/librbd.so.1)
librbd1: /usr/lib/librbd.so.1.19.0

I'd also recommend you check this
Bash:
apt install debsums
debsums -ax
 
Last edited:
  • Like
Reactions: avidesh
going through system log following lines repeat a lot
Code:
pvestatd[1099]: warning: failed querying supported tcg flags: QEMU flag querying VM exited with code 127 at /usr/share/perl5/PVE/QemuServer.pm line 3121.
Sep 01 09:18:00 aadpve pvestatd[1099]: warning: failed querying supported kvm flags: QEMU flag querying VM exited with code 127 at /usr/share/perl5/PVE/QemuServer.pm line 3121.
Sep 01 09:18:00 aadpve pvestatd[1099]: CPU flag detection failed, will try again after delay
 
I suppose you could try
Bash:
apt install --reinstall librbd1
Some information from my system and example steps to troubleshoot something like this
Bash:
# ldd /usr/bin/qemu-system-x86_64 | grep "rbd"
        librbd.so.1 => /lib/librbd.so.1 (0x00007c621f000000)

# ls -l /lib/librbd.so.1
lrwxrwxrwx 1 root root 16 Jul 29 05:46 /lib/librbd.so.1 -> librbd.so.1.19.0

# dpkg -S $(readlink -f /lib/librbd.so.1)
librbd1: /usr/lib/librbd.so.1.19.0

I'd also recommend you check this
Bash:
apt install debsums
debsums -ax
here is what I see as output of debsums-ax
Code:
root@aadpve:~# debsums -ax
debsums: changed file /etc/issue (observed:019c0de882037416eee2a9afa63472fe expected:d0c7919a5e2641d60400de08201a49e2) (from base-files package)
debsums: missing file /usr/share/doc/libradosstriper1/changelog.Debian.gz (from libradosstriper1 package)
debsums: missing file /usr/share/doc/libradosstriper1/changelog.gz (from libradosstriper1 package)
debsums: missing file /usr/share/doc/libradosstriper1/copyright (from libradosstriper1 package)
debsums: changed file /etc/lvm/lvm.conf (observed:24d0e9741263adbeb91a7a61e94ee435 expected:0845a64ba1c04c3a4c2348df50ebbef7) (from lvm2 package)
debsums: changed file /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js (observed:6265b3075f6541a1f652421f0d96d416 expected:3efba99877e25a6264336d5294289e91) (from proxmox-widget-toolkit package)
debsums: changed file /etc/apt/sources.list.d/pve-enterprise.sources (observed:b4f2f6212df8ed238ec8eef58c70e1bc expected:f1c80b1b9dd1a5d9b07168a43657d35a) (from pve-manager package)
 
I suppose you could try
Bash:
apt install --reinstall librbd1
Some information from my system and example steps to troubleshoot something like this
Bash:
# ldd /usr/bin/qemu-system-x86_64 | grep "rbd"
        librbd.so.1 => /lib/librbd.so.1 (0x00007c621f000000)

# ls -l /lib/librbd.so.1
lrwxrwxrwx 1 root root 16 Jul 29 05:46 /lib/librbd.so.1 -> librbd.so.1.19.0

# dpkg -S $(readlink -f /lib/librbd.so.1)
librbd1: /usr/lib/librbd.so.1.19.0

I'd also recommend you check this
Bash:
apt install debsums
debsums -ax
this helped. the VM is now up and running again. what was wrong?
 
I'm guessing the library was missing for some reason. You could have verified with my commands.
 
Last edited: