The officially official Devuan Forum!

You are not logged in.

#1 2022-05-04 04:44:23

greenant
Member
Registered: 2022-05-04
Posts: 13  

Chimaera install as KVM guest with virsh-install - kernel mismatch

We have been installing KVM machines with Devuan Beowulf successfully but similar settings for Chimaera fail with a kernel mismatch.

The installer throws the error in the log:

no packages matching running kernel 5.10.0-9-amd64 in archive

and the following error in the installer

   ┌────────────────┤ [!!] Download installer components ├─────────────────┐    
   │                                                                       │    
   │                        No kernel modules found                        │    
   │ No kernel modules were found. This probably is due to a mismatch      │    
   │ between the kernel used by this version of the installer and the      │    
   │ kernel version available in the archive.                              │    
   │                                                                       │    
   │ You should make sure that your installation image is up-to-date, or - │    
   │ if that's the case - try a different mirror, preferably               │    
   │ deb.devuan.org.                                                       │    
   │                                                                       │    
   │     <Go Back>                                          <Continue> 

We have tried with the following:

virt-install \
  --virt-type kvm \
  --name=guest \
  --description=desc \
  --vcpus=2,maxvcpus=8 \
  --ram=2048 \
  --disk path=/dev/zvol/zpool1/images/guest,size=40G,format=zfs,io=threads,cache=writeback \
  --memorybacking source.type=memfd,access.mode=shared \
  --location='https://pkgmaster.devuan.org/devuan/dists/chimaera/main/installer-amd64/' \
  --initrd-inject=/zpool1/kvm/preseed/cfg_devuan_chimaera/preseed.cfg \
  --network network=$net_in,mac=$mac_in \
  --os-type=linux \
  --os-variant=debiantesting \
  --graphics=none \
  --extra-args 'console=ttyS0'

We also tried updating the osinfo database:

apt install libosinfo-bin
apt install osinfo-db-tool
wget -O "/tmp/osinfo-db.tar.xz" "https://releases.pagure.org/libosinfo/osinfo-db-20220214.tar.xz"
osinfo-db-import --local "/tmp/osinfo-db.tar.xz"

and using `--os-variant=debian11` but got the same kernel mismatch issue

Any suggestions as to how we can get a Chimaera installation automated with virt-install?

Offline

#2 2022-05-04 04:59:30

greenant
Member
Registered: 2022-05-04
Posts: 13  

Re: Chimaera install as KVM guest with virsh-install - kernel mismatch

We have found a workaround using the netist CD image:

Download the netinst image and mount

cd /zpool1/kvm/ISO
wget -N https://mirror.leaseweb.com/devuan/devuan_chimaera/installer-iso/devuan_chimaera_4.0.0_amd64_netinstall.iso
mount -t iso9660 -o loop ./devuan_chimaera_4.0.0_amd64_netinstall.iso ./mount/

use an alternative location and specify the cdrom disk

--location='/zpool1/kvm/ISO/mount/,kernel=boot/isolinux/linux,initrd=boot/isolinux/initrd.gz' \
--disk path=/dev/loop0,device=cdrom,readonly=on

Offline

Board footer