-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat(vmm): cloud-hypervisor support #1838
Comments
I didn't look into it, but since cloud-hypervisor is based on VMM, and nanos supports AWS Firecracker which is also based on VMM, I think it shouldn't be much work to get nanos to boot under cloud-hypervisor (we also support booting in PVH mode). The ACPI issue you mentioned might be relevant. |
Well probably on Firecracker it works ( Hence nanos, from what I understand, being unable to process MP detection without ACPI support, (couldn't find anything related to MP Floating Pointer Structure/MP Configuration Table parsing), falls back to single CPU by default (no matter the VM config you provide to it)
|
The pvh_start32 assembly code is a 32-bit entry point for the kernel, used by hypervisors such as QEMU (with the microvm machine type) and cloud-hypervisor (https://github.com/cloud-hypervisor/cloud-hypervisor). The current code was missing the initialization of the stack, which prevents the kernel from booting under cloud-hypervisor. This change adds the code to set the stack pointer register and to map the memory area to be used as initial stack during boot; this allows booting under cloud-hypervisor. Closes #1838.
With #1855, Nanos is able to boot under cloud-hypervisor. |
From a quick test with the official releases, now it boots fine. May test with a CH custom release including the fixed crate ... Thank you. |
Tested also with the latest CH main branch that includes the updated crate, and indeed nanos boots correctly with all provided cpu(s). |
Was trying to play around with nanos on https://github.com/cloud-hypervisor/cloud-hypervisor , but it looks like there are some issues. Assuming it's not a local problem on my environment, still troubleshooting, do we know what is preventing nanos to work there?
i.e:
While looking around stumbled across cloudius-systems/osv@4fa1483, jic it's relevant in here.
The text was updated successfully, but these errors were encountered: