Now the problem is that debian hasn't any 5.4 source and headers packages. Is there a method or tool to convert these packages to debian packages so that I can use them on Debian ? That's because I prefer Debian over Ubuntu. Thanks.
The libvirt developers explained to me what's wrong. In my system the file kvm.h is missing. I should install the kernel headers file if I want it. I could do this if the kernel in use was 6.1,but I'm forced to use 5.4. I can't install the kernel headers for the kernel 5.4 on top of debian...
Not useful suggestion for me. I'm not a coder,such as I'm not a pro system admin : this is only an hobby for me. I try to do the best I can,but I can't solve bugs for which a solution has not been found yet and that involves the writing of a piece of code.
I don't remember if I have already told you that if I want to virtualize a guest OS using only qemu + kvm without libvirt,I can. It will work. I have already tested it. But I want to fix libvirt because it is comfortable to use.
today I see you a little bit out of focus,man. I know already that kvm is supported on arm 32 bit. I've already shown it to you that it is :
# qemu-system-arm -accel help
Accelerators supported in QEMU binary:
kvm
tcg
Refocus here :
[Tue, 29 Aug 2023 10:10:11 virt-manager 2141] DEBUG (createvm:494) UEFI found, setting it as default.
[Tue, 29 Aug 2023 10:10:11 virt-manager 2141] DEBUG (createvm:728) Guest type set to os_type=hvm, arch=armv7l, dom_type=kvm
[Tue, 29 Aug 2023 10:10:11 virt-manager 2141] DEBUG...
There is a good news. I hadn't added my user account to the kvm group :) ; now I did it and the error changed :
root@chromarietto:~# virsh domcapabilities --machine virt --emulatorbin /usr/local/bin/qemu-system-arm
2023-08-29 10:17:59.110+0000: 1763: error : virHostCPUGetKVMMaxVCPUs:1228 ...
Focus here. This is the problem :
virsh domcapabilities --machine virt --emulatorbin /usr/local/bin/qemu-system-arm
error: failed to get emulator capabilities
error: KVM is not supported on this platform: Function not implemented