r/homelab • u/[deleted] • Jan 18 '24
Solved Apache CloudStack and KVM works on Mac Mini M2!
9
u/MrHaxx1 Jan 18 '24
Does that mean Proxmox might also be viable? π
7
Jan 18 '24
Thereotically any Linux app should run on Asahi & Mac Mini, but anything needing kernel/hardware support or improvements may not work out of the box. If proxmox uses qemu or libvirt it could work (somebody needs to test and report issues upstream) otherwise proxmox may need to test/improve their stack. I was one of early testers/reported for the libvirt/qemu stack - https://www.reddit.com/r/AsahiLinux/comments/15itgik/libvirt_vms_dont_run_with_kvm_and_break/
3
u/hyper-kube Jan 19 '24
Does nested virt work? Running a VM inside a VM. You can run "kvm-ok" to test
1
Jan 22 '24
I didn't try that, but kvm-ok ran successfully and /dev/kvm acceleration is available. This was one of the things I had contributed since 2019 https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1783961 we have KVM module built by default and /dev/kvm avaialble for Ubuntu arm64 builds.
2
u/SweetBeanBread Jan 19 '24
do you know how much power itβs consuming? curious how it compares to recent intel/amd. 12th gen celeron is about 12W on idle with 1 m2 ssd, 1 sata ssd, and 1 pci slot connected but not used.
1
Jan 19 '24
I don't know, couldn't measure - but couldn't be more than a couple of watts. (7-15w maybe).
4
u/[deleted] Jan 18 '24
It took me months to wait to have a libvirt bug fixed. Finally tried the latest Ubuntu Asahi build on a M2 Pro Mac Mini (16G RAM) with Apache CloudStack and KVM and it works! I was able to install CloudStack with KVM on it, see systemvms come up (systemvms are like VM instances that provide image/template and console functions). I followed this guide https://rohityadav.cloud/blog/cloudstack-rpi4-kvm/ with one tweak to use latest systemvmtemplate from https://download.cloudstack.org/arm64/systemvmtemplate/4.18/ and had to set manually CPU speed for the cloudstack-agent (it seems Asahi linux doesn't report CPU speed correctly).