#
#asahi · 2023-07-24 08:30
rycloudroot@macmini:~# virsh define s.xml error: Failed to define domain from s.xml error: unsupported configuration: Emulator '/usr/bin/qemu-system-aarch64' does not support virt type 'kvm'
#asahi · 2023-07-24 08:30
rycloudgtk initialization failed
#asahi · 2023-07-24 08:30
rycloudI got: root@macmini:~# taskset -c 0-3 qemu-system-aarch64 -machine virt,accel=kvm -cpu host
#asahi · 2023-07-24 08:29
mazrycloud: try "taskset -c 0-3 qemu-system-aarch64 -machine virt,accel=kvm -cpu host" and post the resulting error
#asahi · 2023-07-24 08:29
j`eywithout that, we dont know what it's doing
#asahi · 2023-07-24 08:29
j`eyrycloud: can you find the qemu command line?
#asahi · 2023-07-24 08:27
ryclouderror: unsupported configuration: Emulator '/usr/bin/qemu-system-aarch64' does not support virt type 'kvm'
#asahi · 2023-07-24 08:27
rycloudroot@macmini:~# kvm-ok INFO: /dev/kvm exists KVM acceleration can be used root@macmini:~# virsh version Compiled against library: libvirt 9.0.0 Using library: libvirt 9.0.0 Using API: QEMU 9.0.0 Running hypervisor: QEMU 7.2.0 root@macmini:~# uname -a Linux macmini 6.3.0-13-asahi #1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 14 19:48:48 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux root@macmini:~# qemu-system-aarch64 --version QEMU emulator version 7.2.0 (Debian 1:7
#asahi · 2023-07-24 08:27
rycloudHi again maz waldi all I upgraded my mac mini to Ubuntu server 23.04 which has qemu 7.2, still same issue.
#asahi · 2023-07-24 08:14
j`ey:-)
#asahi · 2023-07-24 08:13
mazj`ey: thanks. I nominate you as my official decoder! :D
#asahi · 2023-07-24 08:13
j`ey(pin qemu = use the taskset command)
#asahi · 2023-07-24 08:13
mazthe rpi stuff is probably asking for 40bit IPA, which will not work on a mini.
#asahi · 2023-07-24 08:12
waldij`ey: ah! yes, that seems to work better then
#asahi · 2023-07-24 08:12
mazalso, you need to pin QEMU on a single cluster, it will get upsset if vcpu threads cross cluster boundaries.
#asahi · 2023-07-24 08:11
j`ey(on line 12)
#asahi · 2023-07-24 08:11
j`eyyou might need -cpu host ?
#asahi · 2023-07-24 08:10
waldimaz: https://paste.debian.net/1286771/
#asahi · 2023-07-24 08:06
rycloudI'll try this out, thanks all - really nice community
#asahi · 2023-07-24 08:06
mazwaldi: can you *please* describe the error your seeing with 8.0.3?
#asahi · 2023-07-24 08:05
rycloudAh great!
#asahi · 2023-07-24 08:04
mazDebian carries 7.2.2, which works fine on M1 mini, M1 Ultra, M2 and M2 Pro.
#asahi · 2023-07-24 08:04
waldirycloud: yep, 22.04 is too old. they are at 23.04 or 23.10, both have qemu >> 7
#asahi · 2023-07-24 08:04
rycloudah okay
#asahi · 2023-07-24 08:03
waldierr, no. only some package called qemu
#asahi · 2023-07-24 08:03
rycloudI installed qemu-kvm waldi and I see this is available still https://packages.ubuntu.com/jammy-updates/qemu-system-arm
#asahi · 2023-07-24 08:03
waldirycloud: qemu is not longer supported on ubuntu? this package is in universe
#asahi · 2023-07-24 08:03
rycloudah okay maz - is there a specific version I should try and try - copy
#asahi · 2023-07-24 08:03
mazrycloud: see above. at least 7.0.
#asahi · 2023-07-24 08:02
rycloudIs there a known version/build of qemu working?
#asahi · 2023-07-24 08:02
mazrycloud: you need to upgrade your QEMU. this version is too buggy to support the small IPA limit on M1 mini (it would work on an M1 pro though).
#asahi · 2023-07-24 08:02
rycloudroot@macmini:~# virsh version Compiled against library: libvirt 8.0.0 Using library: libvirt 8.0.0 Using API: QEMU 8.0.0 Running hypervisor: QEMU 6.2.0
#asahi · 2023-07-24 08:02
rycloudThanks maz dottedmag
#asahi · 2023-07-24 08:01
rycloudI got this - root@macmini:~# qemu-system-arm --version QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.12) Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers root@macmini:~# qemu-system-aarch64 --version QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.12) Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
#asahi · 2023-07-24 08:01
mazanything before that is busted.
#asahi · 2023-07-24 08:01
mazfor the record, the first version of QEMU that has a chance to run with KVM on M1 is 7.0.
#asahi · 2023-07-24 08:01
mazI run KVM 24/7 on M1/M2, and if things don't work, I really want to know.
#asahi · 2023-07-24 08:00
mazwaldi: if you get errors, please give me a detailed bug report.
#asahi · 2023-07-24 07:59
waldieven the 8.0.3 from arch-arm only gives me some IPA error
#asahi · 2023-07-24 07:58
mazthere is no way this is going to run on M1.
#asahi · 2023-07-24 07:58
dottedmagThough my memory is hazy, I haven't seen that code for a long time.
#asahi · 2023-07-24 07:58
mazOMG: "QEMU 6.2.0"
#asahi · 2023-07-24 07:58
dottedmagThis sounds more like libvirt issue, really. IIRC it runs qemu-system-$arch at startup trying to guess the capabilities, and it might be passing an argument that is not supported on aarch64.
#asahi · 2023-07-24 07:56
mazor "qemu-system-aarch64 --version", which hopefully returns the same thing.
#asahi · 2023-07-24 07:55
maz(run "qemu-system-arm --version")
#asahi · 2023-07-24 07:54
mazrycloud: what is the version of your QEMU?
#asahi · 2023-07-24 07:54
mazit could also be an old QEMU build that doesn't grok the IPA limitations of M1.
#asahi · 2023-07-24 07:51
rycloudFor my purpose, I'm trying to get Apache CloudStack to support Asahi Linux kernel with M1 Mac mini; so I need to use libvirtd and can't use qemu directly
#asahi · 2023-07-24 07:51
rycloudThe same actually works fine on Ubuntu 22.04 arm64 on a Raspberry Pi4 - so I'm not sure if it's an issue with qemu or with the kernel
#asahi · 2023-07-24 07:50
rycloudThanks j`ey _jannau__ - I'm using Ubuntu Asahi from here, logged an issue with more details - https://github.com/UbuntuAsahi/ubuntu-asahi/issues/51

plus ›