Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run aarch64 guests on Linux without KVM #3156

Open
msgilligan opened this issue Jan 27, 2025 · 4 comments
Open

Ability to run aarch64 guests on Linux without KVM #3156

msgilligan opened this issue Jan 27, 2025 · 4 comments
Labels
component/qemu QEMU enhancement New feature or request

Comments

@msgilligan
Copy link
Contributor

Description

It should be possible to run aarch64 guest VMs on aarch64 Linux without support for KVM. There should be a way to set the QEMU options to support this. This would allow running Lima on ubuntu-24.04-arm GitHub Actions runners and also inside aarch64 Linux Lima instances on pre-M3 macOS systems.

Here is an example GitHub Actions workflow that should work: https://github.com/nixos-lima/nixos-lima-config-sample/blob/b02a4c9cffaeb646feda5ad8940c9ade7599cb32/.github/workflows/ubuntu-arm.yml
This job fails with the following message in the log:

{"level":"debug","msg":"qemu[stderr]: Could not access KVM kernel module: No such file or directory","time":"2025-01-26T22:10:43Z"}
@AkihiroSuda AkihiroSuda added enhancement New feature or request component/qemu QEMU labels Jan 28, 2025
@afbjorklund
Copy link
Member

afbjorklund commented Jan 28, 2025

You want to be able to opt-in to running in "slow mode" (qemu-system), even on the native architecture?

Override the "accel" used

Similar to cpu type et al

Or should there just be more validation on /dev/kvm etc to check if it is actually working, instead of letting qemu test it?

@msgilligan
Copy link
Contributor Author

I just want to be able to run aarch64 Lima VMs inside GitHub ubuntu-24.04-arm instances in the most efficient manner possible. Currently, I can't get one to run at all.

I'm seeing similar issues trying to run nested aarch64 Lima VMs on an M1 Mac.

Shouldn't it be possible to run these without nested hardware virtualization?

@afbjorklund
Copy link
Member

It would be possible to make the accelerator configurable. As a workaround until then, you could run x86_64?

@msgilligan
Copy link
Contributor Author

As a workaround until then, you could run x86_64?

That's exactly what I'm already doing. (It hurts me to my soul, though. I'm trying to be an aarch64-maximalist!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/qemu QEMU enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants