Add Packer configuration to build a minimal Alpine 3.23 UEFI VM for XCP-ng tests - #523
Draft
glehmann wants to merge 1 commit into
Draft
Add Packer configuration to build a minimal Alpine 3.23 UEFI VM for XCP-ng tests#523glehmann wants to merge 1 commit into
glehmann wants to merge 1 commit into
Conversation
| "<wait3>", | ||
| "ifconfig eth0 up && udhcpc -i eth0<enter><wait5>", | ||
| # "USE<leftShiftOn>-<leftShiftOff>EFI=1 SWAP<leftShiftOn>-<leftShiftOff>SIZE=0 ERASE<leftShiftOn>-<leftShiftOff>DISKS=/dev/xvda setup-alpine -f http://{{.HTTPIP}}:{{.HTTPPort}}/answers.txt<enter>", | ||
| "USE<leftShiftOn>-<leftShiftOff>EFI=1 SWAP<leftShiftOn>-<leftShiftOff>SIZE=0 ERASE<leftShiftOn>-<leftShiftOff>DISKS=/dev/xvda setup-alpine -f https://raw.githubusercontent.com/xcp-ng/xcp-ng-tests/refs/heads/gln/packer-alpine-uefi-xcpng-loun/packer/http_files/answers.txt<enter>", |
Contributor
There was a problem hiding this comment.
The value of -f flag should be generic, isn't it?
What do you think of using an hcl variable to enable configuration here?
| "rc-update add xe-guest-utilities default<enter>", | ||
| # "rc-service xe-guest-utilities start<enter>", | ||
| # Remove log files | ||
| "find /var/log -type f -exec truncate -s 0 {} \\;<enter>", |
Contributor
There was a problem hiding this comment.
Those commands look similar to what I can see in cleanup.sh. Is it normal?
Btw, I don't see any occurrence of calling the cleanup script. Is there an implicit mechanism of Packer?
glehmann
force-pushed
the
gln/limit-vdi-write-cap-umro
branch
from
May 12, 2026 13:16
e9ab3bf to
f2fef78
Compare
glehmann
force-pushed
the
gln/packer-alpine-uefi-xcpng-loun
branch
2 times, most recently
from
May 12, 2026 13:23
701ce24 to
e14efd4
Compare
glehmann
force-pushed
the
gln/limit-vdi-write-cap-umro
branch
from
May 12, 2026 13:23
f2fef78 to
fdd3cbf
Compare
glehmann
force-pushed
the
gln/packer-alpine-uefi-xcpng-loun
branch
3 times, most recently
from
May 13, 2026 13:58
f7496e0 to
cddcf93
Compare
glehmann
force-pushed
the
gln/packer-alpine-uefi-xcpng-loun
branch
10 times, most recently
from
May 22, 2026 15:29
8b37359 to
6586ff8
Compare
glehmann
force-pushed
the
gln/packer-alpine-uefi-xcpng-loun
branch
3 times, most recently
from
June 4, 2026 20:29
780e213 to
9e3771a
Compare
glehmann
force-pushed
the
gln/packer-alpine-uefi-xcpng-loun
branch
from
June 8, 2026 09:43
9e3771a to
aacd6d4
Compare
…CP-ng tests The image is built with the vatesfr/packer-plugin-xenserver plugin targeting a local XCP-ng host. It produces a zstd-compressed XVA with: - Alpine Linux 3.23.4 (x86_64), UEFI boot (grub + GPT) - 1 vCPU, 256 MiB RAM, 512 MiB disk, no swap - xe-guest-utilities installed from the Alpine community repo - XCP-ng CI public SSH keys authorised for root - Post-processed by xva_bridge.py to set bridge=xenbr0 and zstd compression Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
glehmann
force-pushed
the
gln/packer-alpine-uefi-xcpng-loun
branch
from
June 10, 2026 08:57
aacd6d4 to
ae2b564
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The image is built with the vatesfr/packer-plugin-xenserver plugin targeting a
local XCP-ng host. It produces a zstd-compressed XVA with:
Signed-off-by: Gaëtan Lehmann gaetan.lehmann@vates.tech
This PR is part of a tree containing 19 PRs:
mastermaster