#
✕ nick:GavinP[m]
#asahi · 2022-03-21 13:13
GavinP[m]If you want more control, you can run `qemu-system-aarch64` in macOS yourself and set it up that way. But, as someone who has done that, believe me that UTM makes it much easier to actually use VMs in practice. (Spice client, enables macOS VM hardware acceleration for you, and more)
#asahi · 2022-03-21 13:12
GavinP[m]life-the-user: Tbh, I've never run arch on UTM but countless Debian VMs have worked fine. Also, in general the UTM team is pretty good in my experience, so if they have an Arch Linux ARM on their gallery I imagine it should work OOB fine
#asahi · 2022-03-21 13:04
GavinP[m]life-the-user: In that case I would recommend just using UTM with Arch Linux ARM. https://mac.getutm.app/gallery/archlinux-arm
#asahi · 2022-03-21 13:03
GavinP[m]life-the-user: This is definitely possible, but as I am pretty sure others have said there is no point installing Asahi Linux in a VM on macOS. qemu (and GUI based frontends e.g. UTM) already work really well on Apple Silicon. So you can run pretty much any arm64 (aarch64) distro
#asahi · 2022-03-21 13:00
GavinP[m]Currently building a debian based distro from inside a debian VM with KVM and it's nuts
#asahi · 2022-03-21 12:59
GavinP[m]Axenntio: Can confirm
#asahi · 2022-03-21 12:38
GavinP[m]Lu Evers: Right, that's a bit annoying. Hopefully something that can be resolved, as I don't enjoy doing `pacman -U` as much as the next person
#asahi · 2022-03-21 12:37
GavinP[m]Lu Evers: Yes, you're right! Also had to install that. Missed it when going through my history :D
#asahi · 2022-03-21 12:36
GavinP[m]Lu Evers: I'm not sure, I had trouble with that package too and ended up downloading the tar itself and installing with `pacman -U`
#asahi · 2022-03-21 12:33
GavinP[m]Lu Evers: did you follow all the steps I did here: https://matrix.to/#/!JcbuoCKvYoPyMtKLPi:matrix.org/$XEnCczFYU3gPmf4B_gQ0vlXqqO7saeXqT1UTZQCnmWY?via=matrix.org&via=mozilla.org&via=tchncs.de
#asahi · 2022-03-21 12:19
GavinP[m]So, not sure if I got lucky with some solar flare or we still have a package discrepancy between us. ;)
#asahi · 2022-03-21 12:18
GavinP[m]enchiladasconpinguino: FYI, I also ran `systemd-detect-virt` from inside my Debian VM and I get `kvm` back
#asahi · 2022-03-21 12:15
GavinP[m]Lu Evers: Hm, same as mine except for the 4K (I don't think that should make a difference though, qemu and friends are working fine also on 16K pages). What is the output of `sudo pacman -Qi libvirt | grep Version`?
#asahi · 2022-03-21 11:57
GavinP[m]Lu Evers: enchiladasconpinguino seems to have this issue too, but it worked OOB for me. Can you run `uname -r` please?
#asahi · 2022-03-21 11:50
GavinP[m]enchiladasconpinguino: My exact steps after installing Asahi Linux yesterday:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/qkaLTLshVHJjFPtZSHjnwYdt)
#asahi · 2022-03-21 11:44
GavinP[m]LuEvers[m]: For me it does
#asahi · 2022-03-21 11:36
GavinP[m]Please do let me know if I can provide anything else to help, I want to indeed make sure it is working as I think it is :D
#asahi · 2022-03-21 11:35
GavinP[m]enchiladasconpinguino
#asahi · 2022-03-21 11:35
GavinP[m]uploaded an image: (46KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/TdEcIEwdHEiijShjFygPfXWr/image.png >
#asahi · 2022-03-21 11:30
GavinP[m]enchiladasconpinguino[m]: I mean, I've got the most basic Arch setup from the official installer as of about 24 hours ago and libvirt works fine. :D
#asahi · 2022-03-21 11:27
GavinP[m]enchiladasconpinguino: If you want I'm happy to screenshare or something to make sure my setup is indeed working fine, maybe you'll spot something?
#asahi · 2022-03-21 11:27
GavinP[m]maz: If you scroll up you'll see that enchiladasconpinguino and I have been talking about this. It all worked fine for me with latest packages from default repos
#asahi · 2022-03-21 11:26
GavinP[m]mps: Thanks! I've got quite a bit of experience with qemu on macOS for aarch64 so it was relatively easy to get one running on Asahi Linux. I guess I was just surprised by how easy it was in the end ;)
#asahi · 2022-03-21 11:25
GavinP[m]enchiladasconpinguino: I'd love to help out more if I can, it was all quite a vanilla qemu / libvirt setup that just worked
#asahi · 2022-03-21 11:23
GavinP[m]enchiladasconpinguino: Ah yes, just did some googling and it seems they are the same!
#asahi · 2022-03-21 11:21
GavinP[m]enchiladasconpinguino: Okay, I went with edk2 as I had previously used that before
#asahi · 2022-03-21 11:21
GavinP[m]j`ey: I have been talking a bit about both. :) But all good, it seems VMs are running really well for me on Asahi Linux
#asahi · 2022-03-21 11:20
GavinP[m]enchiladasconpinguino: The only thing I had to do on top to get it working was ensure I had aarch64 bios in the right directory, as mentioned in my earlier message
#asahi · 2022-03-21 11:18
GavinP[m]enchiladasconpinguino: No patches, just pacman from the default repo
#asahi · 2022-03-21 11:18
GavinP[m]j`ey: Sure, but it means that this ARM CPU supports the ARM Virtualization Extensions, or something else?
#asahi · 2022-03-21 11:16
GavinP[m]j`ey: Very cool, I can see why! :) Awesome job you guys have done!
#asahi · 2022-03-21 11:16
GavinP[m]Amazing, thanks!
#asahi · 2022-03-21 11:16
GavinP[m]enchiladasconpinguino: [ 0.000000] CPU features: detected: Virtualization Host Extensions
#asahi · 2022-03-21 11:15
GavinP[m]enchiladasconpinguino:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/pYvPBkElRgbZbbpPmvHQIPjA)
#asahi · 2022-03-21 11:15
GavinP[m]I also researched that KVM for ARM has been in the Linux Kernel for a longtime now. Does anyone know if the M1 supports arm virtualization extensions? I guess since we build with KVM enabled it does. Anyway to check this?
#asahi · 2022-03-21 11:13
GavinP[m]https://archlinux.org/packages/extra/any/edk2-armvirt/). Debian running well inside libvirt and I guess it's using KVM then.
#asahi · 2022-03-21 11:13
GavinP[m]enchiladasconpinguino: Thanks for your responses on QEMU / KVM. It was getting late here, back now. I seem to have it working no problem on the latest published build of Asahi Linux. It has `domain type="kvm"` in the XML also. Virt-manager also reports it as `Hypervisor: KVM`. I just installed `qemu libvirt virt-manager qemu-arch-extra`, and then needed to source ARM UEFI files (which I got here
#asahi · 2022-03-21 02:43
GavinP[m]* go here?
#asahi · 2022-03-21 02:43
GavinP[m]I am wondering if KVM is fully using my CPUs though. Debian is up and running fine, a bit sluggish. `lscpu` obviously reports back nothing on 'Virtualization'. I'm a bit new to Virtualization on Linux so appreciate any input. Would more work be required to take advantage of some extra virtualization technology the M1 chips have? Or are we already as far as we can go here
#asahi · 2022-03-21 02:14
GavinP[m]Seems to be running fine
#asahi · 2022-03-21 02:14
GavinP[m]As an update on my virtualization question, I'm currently going through the installation of an aarch64 Debian buster VM using KVM and libvirt, let's see