Kmod-kvm-amd installation

  1. Why installation of kmod-kvm-amd with opkg fails (while via imagebuilder it works fine):
# opkg install kmod-kvm-amd                                                     
Unknown package 'kmod-kvm-amd'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.167-1-59d1431675acc6823a33c7eb2323daeb) for kmod-irqbypass
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-irqbypass found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.167-1-59d1431675acc6823a33c7eb2323daeb) for kmod-kvm-x86
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-kvm-x86 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.15.167-1-59d1431675acc6823a33c7eb2323daeb) for kmod-kvm-amd
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-kvm-amd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-kvm-amd.
  1. Why installation of kmod-kvm-amd via imagebuilder is not listed in opkg, thoug it works fine:
# opkg list | grep kvm                        
<no output here>

# ls -l /lib/modules/5.15.167/kvm-amd.ko
-rw-r--r-- 1 root root 147K 2024-09-23 15:34 /lib/modules/5.15.167/kvm-amd.ko
# lsmod | grep kvm                      
kvm_amd                77824  0
kvm                   417792  1 kvm_amd
irqbypass              12288  1 kvm

https://openwrt.org/faq/cannot_satisfy_dependencies

This not an answer. I'm using 23.05.5, freshly built with imagebuilder.

Moreover, I have no “Cannot satisfy the following dependencies for...” or “The installed version of package kernel is not compatible, require...”

Which device is this?
Did you already run opkg update before the opkg install ?

% wget https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-imagebuilder-23.05.5-x86-64.Linux-x86_64.tar.xz
% tar xf openwrt-imagebuilder-23.05.5-x86-64.Linux-x86_64.tar.xz
% cd openwrt-imagebuilder-23.05.5-x86-64.Linux-x86_64
% make PROFILE=generic image
OpneWrt # ls -l /lib/modules 
OpneWrt # uname -r
5.15.167
OpneWrt # opkg list-installed | grep kernel
kernel - 5.15.162-1-59d1431675acc6823a33c7eb2323daeb

What the hell is going on?

If you use the image builder why don't you make the image with kvm included?

it was because of stalled /overlay/upper/usr/lib/opkg/status, my own issues, don't take in mind

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.