-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Add support for booting as Xen dom0 on EFI systems #60485
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
Conversation
Added another commit, some updates:
I'll remove the [WIP] bit from the title now, only outstanding question I have is whether Xen 4.5 should get EFI support, or just be removed or marked broken. Is there a specific reason it's still in nixpkgs? It would be nice to add NixOS tests for Xen booting, but from what I understand it would likely require some effort to get the test driver to talk to the Xen dom0 VM nested within the outer QEMU VM. |
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/43 |
Can you add a test for this? |
@danbst No, as per my previous comment:
From what I remember, apparently Linux just doesn't run drivers for any QEMU devices if it has detected that it is a Xen guest; it doesn't expect to be simultaneously a QEMU and Xen guest. This includes the driver for the |
If xen 4.5 is outstanding old and doesn't receive updates, then yes, lets remove it. Maybe in separate PR? |
cc @oxij |
Yes, sure, let's remove 4.5. It's overdue.
|
Why the PR is closed? 🤔 |
Based on #12230, aims to fix #12225.
Progress
Notes, Issues, Questions
xen.cfg
file in the same directory as it, on the ESP, that contains paths to the kernel and initrd (also on the ESP) as well as the Xen and kernel command lines.This basically assumes grub is only used for EFI booting on the system, not both EFI and BIOS booting -- all the Xen entries will use the Xen EFI binary if it is avaiable. I think this could be solved by usinggrub_platform
within the menu entry to switch between the xen.efi and xen.gz methods?A configuration that can boot Xen using either is still possible, using both BIOS-only grub + systemd-boot.install-grub.pl
are probably due some extra scrutiny.