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
nixos/proxmox-image: allow building UEFI images #182759
Conversation
Example flake building different image types: https://github.com/otopetrik/proxmox-nixos-image-build-check |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1024 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Hello @illustris, it looks like you have committed the latest change to this file and authored almost all the changes since this pull request was created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been trying to find time to do this myself. Thanks! I tried building and booting different combinations of bios and partitionTableType. Looks good.
In addition to the (optional) changes in this review, please mention this change in the release notes.
8299b5e
to
d69ceab
Compare
Thanks for the review. Example repository updated to use cloud-init and terraform to check that resulting images are working. |
Hello @SuperSandro2000, it looks like you are the last one to merge a proxmox-image pull request. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Allow building other than Legacy-BIOS-only Proxmox images. Default is unchanged. To build UEFI proxmox image use: proxmox.qemuConf.bios = "ovmf"; (default is "seabios") To build image bootable using both "seabios" and "ovmf" use: partitionTableType = "hybrid"; BIOS can be switched in Proxmox between "seabios" and "ovmf" and VM still boots. (GRUB2-only, systemd-boot does not boot under "seabios") To build systemd-boot UEFI image: proxmox.qemuConf.bios = "ovmf"; boot.loader.systemd-boot.enable = true;
d69ceab
to
4729d5d
Compare
Changes applied. |
It has been two weeks since the last revision, and no new comments. |
Should have received the backport label, since it touched the release notes post branch-off. Caused conflicts.... Backported in #203777. |
Description of changes
Allow building other than Legacy-BIOS-only Proxmox images.
Default remains unchanged.
To build UEFI proxmox image use:
proxmox.qemuConf.bios = "ovmf";
(default is "seabios")
To build image bootable using both "seabios" and "ovmf" use:
diskPartitioning = "hybrid";
BIOS can be switched in Proxmox between "seabios" and "ovmf" and VM still boots.
(GRUB2-only, systemd-boot does not boot under "seabios")
To build systemd-boot UEFI image:
proxmox.qemuConf.bios = "ovmf";
boot.loader.systemd-boot.enable = true;
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes