Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
0fe9733
Prepare 1877
5kt Nov 21, 2025
50f9d49
Add rel-1877-dev branch to workflow triggers
toanju Nov 21, 2025
87e6550
fixup: build workflow is now from 1877
toanju Nov 21, 2025
b5a82ed
ci: avoid using potentially missing xargs during emergency debugprinting
anokfireball Nov 21, 2025
d8391a3
Add demo iso
5kt Nov 25, 2025
7804549
Merge pull request #153 from gardenlinux/1877iso
5kt Nov 25, 2025
e6170f1
update package version of libvirtd and cloud hypervisor
toanju Nov 28, 2025
cd34a76
Merge pull request #154 from gardenlinux/bump-versions
toanju Nov 28, 2025
83876ef
bump to 1877.8
toanju Dec 5, 2025
6662893
update libvirt and cloud hypervisor packages
toanju Dec 5, 2025
3cfe3df
Update libvirt and cloud hypervisor packages
toanju Dec 10, 2025
4952d64
Preload debug container
5kt Dec 11, 2025
81bc868
Update features/_usi/initrd.include/usr/bin/persist
toanju Dec 12, 2025
7c1db2a
Update features/_usi/file.include/etc/systemd/system/dbgimport.service
toanju Dec 12, 2025
38b73e4
Pull in oras from a more recent version of GL
5kt Dec 16, 2025
5298e97
Merge pull request #157 from gardenlinux/rel-1877-oras
5kt Dec 16, 2025
a0e94ba
Cloud Hypervisor: Update version from 48.0-6 to 48.0-7
toanju Dec 16, 2025
3ee6e43
Add presets and improve build output
toanju Dec 17, 2025
b23d127
1877 does not have cut available using awk
toanju Dec 17, 2025
215271d
bump libvirtd to libvirt_11.3.0-32gl0+bp1877
toanju Dec 17, 2025
4535bb5
Update to Garden Linux 1877.9
toanju Jan 5, 2026
250ff56
Use custom 1877.9.x version
5kt Jan 8, 2026
3d3cdb0
disable efi pstore
5kt Jan 5, 2026
9de58bc
Merge pull request #162 from gardenlinux/customver
toanju Jan 8, 2026
f3add87
bump libvirt and cloud hypervisor
toanju Jan 12, 2026
6bb2b44
Bump Version to 1877.9.2
toanju Jan 12, 2026
b9618d7
Fix versioning
toanju Jan 12, 2026
e9e2a20
Update edk2 version
toanju Jan 13, 2026
d0f0ee1
Bump Version to 1877.9.3
toanju Jan 14, 2026
346fe02
Update packges
toanju Jan 16, 2026
5766488
Bump Version to 1877.9.4
toanju Jan 16, 2026
092e6ec
Bump libvirt and cloud hypervisor
toanju Jan 26, 2026
63fc187
Bump version to 1877.9.5
toanju Jan 26, 2026
a96c167
Bump libvirt and cloud hypvervior
toanju Jan 27, 2026
d55a5e6
Bump version to 1877.9.6
toanju Jan 27, 2026
dddc800
Upgrade to 1877.10
toanju Jan 30, 2026
b3e6649
Test dev build in 1877 branch
toanju Jan 30, 2026
2f2334d
Merge pull request #166 from gardenlinux/bump-version
toanju Feb 2, 2026
74b5160
Update libvirt
toanju Feb 2, 2026
96d8f81
Merge pull request #167 from gardenlinux/update-libvirt
toanju Feb 2, 2026
f7272af
Update khost feature for CAPI image
toanju Feb 3, 2026
c3d2f40
Merge pull request #168 from gardenlinux/fixup-khost
toanju Feb 3, 2026
1ea1352
1877.10.1
toanju Feb 3, 2026
ff5406e
Update cloud hypervisor
toanju Feb 4, 2026
992cde3
Merge pull request #172 from gardenlinux/update-packages-1877
toanju Feb 4, 2026
1f1b422
Update version to 1877.10.2
toanju Feb 4, 2026
fed15f3
ci: directly trigger test from nightly, drop ORAS image tag parsing
anokfireball Feb 4, 2026
bb5096b
ci: centralize image tag computation in reusable script
anokfireball Feb 4, 2026
1645aea
update libvirt and cloud hypervisor
toanju Feb 12, 2026
1ecf960
Merge pull request #175 from gardenlinux/bump-packages
toanju Feb 12, 2026
4ac5994
Update to 1877.10.3
toanju Feb 12, 2026
0adbdd9
ci: disable libvirt TLS/TCP sockets for CI tests
anokfireball Jan 27, 2026
76c7369
Merge pull request #177 from gardenlinux/fix-tls-socket-1877
toanju Feb 13, 2026
b163611
Bump libvirt and cloud hypervisor
toanju Feb 19, 2026
2ec3151
Update to 1877.10.4
toanju Feb 19, 2026
2cdc2ac
[usi] add further presets
toanju Feb 23, 2026
dea4c8c
Update to 1877.13
toanju Feb 23, 2026
2b665be
Merge pull request #181 from gardenlinux/disable-update-timer-service
toanju Feb 23, 2026
607c960
Merge pull request #182 from gardenlinux/bump-gl-1877
toanju Feb 23, 2026
a220301
ci: cancel dev workflow before cleanup
anokfireball Feb 13, 2026
ff0b137
Update to 1877.13.1
toanju Feb 23, 2026
1acf531
fix: replace gpg --dearmor with direct .asc file usage for apt keys
anokfireball Feb 26, 2026
22834d4
root-hints: improve installation to disk
toanju Feb 26, 2026
899c425
Merge pull request #186 from gardenlinux/backport-gpg-fix-to-rel-1877…
toanju Feb 26, 2026
69c98fc
Merge pull request #185 from gardenlinux/improve-root-hints-1877
toanju Feb 26, 2026
527f7f4
bump libvirt and cloud hypervisor packages
toanju Feb 26, 2026
12afb57
Merge pull request #187 from gardenlinux/bump-packages
toanju Feb 26, 2026
f116c03
Update to 1877.13.2
toanju Feb 26, 2026
2e15fd3
sci: load kvm modules via modules-load.d to fix libvirtd boot race
anokfireball Mar 4, 2026
9db096e
Update packages
toanju Mar 5, 2026
feb5ebb
Update to 1877.13.3
toanju Mar 5, 2026
ea6903f
CI: create folder for virt-secret-init-encryption.service
toanju Mar 6, 2026
480c820
Revert "CI: create folder for virt-secret-init-encryption.service"
toanju Mar 6, 2026
ded4a06
bump libvirtd packge
toanju Mar 6, 2026
971c397
Update to 1877.13.4
toanju Mar 6, 2026
f73a9ab
Update libvirt and cloud hypervisor packages
toanju Mar 13, 2026
1fc0128
Merge pull request #192 from gardenlinux/bump-packages-1877
toanju Mar 13, 2026
c4e65fc
Update to 1877.13.5
toanju Mar 13, 2026
7c0d116
Update libvirt and cloud hypervior
toanju Mar 18, 2026
40eef81
Merge pull request #193 from gardenlinux/bump-packages
toanju Mar 18, 2026
a0b7389
Update to 1877.13.6
toanju Mar 18, 2026
48338c2
Update packages libvirt and cloud hypervisor
toanju Mar 19, 2026
d77c6a2
Merge pull request #194 from gardenlinux/bump-packages
toanju Mar 19, 2026
6d5b90a
Update to 1877.13.7
toanju Mar 19, 2026
ff0fba4
Update upload_oci.yml
5kt Mar 24, 2026
5a24251
Merge pull request #196 from gardenlinux/ocifix
toanju Mar 24, 2026
0a55f58
Update cloud hypervisor package
toanju Mar 23, 2026
e5bbbdb
bump build_flavors_matrix.yml ref and update gl-oci tool usage
toanju Mar 24, 2026
cb857ca
Merge pull request #195 from gardenlinux/bump-packages
toanju Mar 24, 2026
5917a4b
Update to 1877.13.8
toanju Mar 24, 2026
c8047d8
Load kvm_* only when the proper cpu is present
5kt Mar 25, 2026
817356a
Merge pull request #203 from gardenlinux/kvmmod-1877
toanju Mar 26, 2026
2f983fb
Remove cronjobs
5kt Mar 25, 2026
708cdac
Merge pull request #204 from gardenlinux/no-cron
toanju Mar 26, 2026
ac625a5
Add preset to disable ipmievd
5kt Mar 26, 2026
663c3ce
mask systemd-repart for _usi
5kt Mar 26, 2026
62bb1b1
Update libvirt and cloud hypervisor
toanju Mar 26, 2026
9fef864
Merge pull request #209 from gardenlinux/bump-packages
toanju Mar 26, 2026
4fa4a04
Merge pull request #208 from gardenlinux/repart-1877
toanju Mar 26, 2026
e28e9fc
Merge pull request #207 from gardenlinux/ipmievd-1877
toanju Mar 26, 2026
947cb29
Update to 1877.13.9
toanju Mar 26, 2026
ced4967
fix ipmievd preset (#211)
toanju Mar 27, 2026
790e26d
Bump cloud hypervisor package
toanju Mar 27, 2026
66ee02e
Update to 1877.13.10
toanju Mar 27, 2026
a9af970
Update cloud hypervisor
toanju Mar 30, 2026
ffb62fa
Merge pull request #213 from gardenlinux/bump-chv
toanju Mar 30, 2026
1af5633
Update to 1877.13.11
toanju Mar 30, 2026
57eb015
Bump packages libvirt and cloud hypervisor
toanju Mar 31, 2026
bc1992c
Merge pull request #214 from gardenlinux/bump-packages
toanju Mar 31, 2026
4624643
Update to 1877.13.12
toanju Mar 31, 2026
f8e4f50
Update refs to 1877.14
toanju Apr 14, 2026
9bc007b
Merge pull request #216 from gardenlinux/bump-to-1877-14
toanju Apr 15, 2026
85db532
remove whitespace from flavors
toanju Apr 16, 2026
9229e13
Merge pull request #218 from gardenlinux/cleanup-flavors
toanju Apr 16, 2026
166c392
Add ignition from package repo
toanju Apr 15, 2026
1105f4a
Merge pull request #217 from gardenlinux/add-ignition
toanju Apr 17, 2026
cf86244
Update libvirt and cloud hypervisor packages
toanju Apr 23, 2026
d2cbd10
Merge pull request #221 from gardenlinux/bump-packages
toanju Apr 23, 2026
b06f541
Update to 1877.14.1
toanju Apr 24, 2026
0daaefd
Update to 1877.16.1
toanju Apr 30, 2026
b8bb1ba
Update to 1877.17.1
toanju May 9, 2026
7559857
sci: Set nfs max_session_slots=512
fwiesel Mar 5, 2026
40dde77
Add EU funding logo to README
toanju May 19, 2026
36a9edc
Merge pull request #224 from gardenlinux/update-readme
toanju May 19, 2026
25ac752
Merge pull request #223 from gardenlinux/backport-nfs-session-slots
toanju May 19, 2026
03f7e91
Upgrade packages cloud hypervisor and libvirt
toanju May 19, 2026
cbee99a
Merge pull request #225 from gardenlinux/update-packages-1877
toanju May 19, 2026
35d5647
Update to 1877.17.2
toanju May 19, 2026
ed40b18
Update to 1877.19
toanju May 29, 2026
6f52ae0
Merge pull request #227 from gardenlinux/update-to-1877-19
toanju May 29, 2026
504f702
add chost _pxe flavor
toanju May 29, 2026
6ea9b23
Merge pull request #231 from gardenlinux/add-flavor-1877
toanju May 29, 2026
96c3b93
Update to 1877.19.2
toanju May 29, 2026
bb9a0e6
fix(pxe): use - for stdin for sha256 check
toanju Jun 2, 2026
364be63
Merge pull request #233 from gardenlinux/fixup-pxe-1877
toanju Jun 3, 2026
28cb693
Update to 1877.19.3
toanju Jun 3, 2026
b21411a
Renaming of the repository
toanju Jun 11, 2026
4af4d5f
chore: add renovate.json for base branch config merge
anokfireball Jun 11, 2026
d0f6208
Merge pull request #241 from gardenlinux/fix/renovate-json-rel-1877-dev
toanju Jun 11, 2026
84a05a2
Merge pull request #240 from gardenlinux/renaming-1877
toanju Jun 11, 2026
b8cdccf
Pin dependencies (#249)
renovate[bot] Jun 15, 2026
1961e0e
Update sigstore/cosign-installer action to v4 (#254)
renovate[bot] Jun 16, 2026
35f1bb0
Update actions/checkout action to v6 (#252)
renovate[bot] Jun 16, 2026
428e89a
Update oras-project/setup-oras action to v2 (#253)
renovate[bot] Jun 16, 2026
1f14f13
Update cri-tools version to 1.35 (#250) (#261)
toanju Jun 16, 2026
1b8a4b2
Update to 1877.19.4
toanju Jun 16, 2026
5d53f18
renovate: automate SCI package updates for rel-1877-dev (#264)
anokfireball Jun 18, 2026
046987c
Update actions/checkout action to v7 (#268)
renovate[bot] Jun 22, 2026
afdd9c9
Remove packageRules from renovate.json (#275)
toanju Jun 22, 2026
9f148aa
Update SCI custom packages (#272)
renovate[bot] Jun 22, 2026
55baf7b
Update to 1877.19.5
toanju Jun 22, 2026
9626c9c
Update SCI custom packages (#287)
renovate[bot] Jun 30, 2026
3587572
Update to 1877.19.6
toanju Jun 30, 2026
8a34aae
Update SCI custom packages (#289)
renovate[bot] Jul 6, 2026
926147a
Prepare 1877.20 (#293)
toanju Jul 7, 2026
2c008b8
Update to 1877.20.0
toanju Jul 7, 2026
030ca71
Improve sci exec.config (#297)
toanju Jul 13, 2026
6d4723f
Update oras-project/setup-oras digest to 1d808f7 (#295)
renovate[bot] Jul 14, 2026
3538866
Update SCI custom packages (#300)
renovate[bot] Jul 14, 2026
a8ab0b5
Apply systemd presets (#299) (#303)
toanju Jul 15, 2026
5bad46c
Update version to 1877.20.1 (#304)
toanju Jul 15, 2026
fc81a7d
fix(ci): try to improve performance
anokfireball Jul 16, 2026
3f57b12
Update Group GitHub Actions (#310)
renovate[bot] Aug 11, 2026
cba5e75
Bump to 1877.21.0 (#314)
toanju Aug 11, 2026
54f8e89
Add modified gardenlinux-update tool for in-place update testing (#315)
toanju Aug 12, 2026
dfbd8e7
Rename UKI in persist script (#316) (#319)
toanju Aug 20, 2026
ee35912
Use not encoded version strings (#320)
toanju Aug 24, 2026
422d7e5
Update SCI custom packages (#321)
renovate[bot] Aug 24, 2026
182a029
Update to 1877.22.0 (#324)
toanju Aug 24, 2026
0e522dd
Update SCI custom packages (#326)
renovate[bot] Aug 25, 2026
1f468b9
Update to 1877.23.0 (#325)
toanju Aug 26, 2026
c4131c6
Update to 1877.24.0 (#333)
toanju Sep 16, 2026
a237947
Update SCI custom packages (#337)
renovate[bot] Sep 16, 2026
1537c79
Update dependency gardenlinux/package-cloud-hypervisor-gl to v52.1+26…
renovate[bot] Sep 18, 2026
030aa06
backport 1877 (#344)
toanju Sep 21, 2026
295b3bd
Bump version to 1877.25.0 (#347)
toanju Sep 28, 2026
4b87622
Update oras-project/setup-oras digest to 005458a (#349)
renovate[bot] Oct 1, 2026
863cfac
Add control plane feature (#351) (#352)
toanju Oct 1, 2026
8034b1a
Update dependency gardenlinux/package-libvirt to v12.2.0+260918-1gl0 …
renovate[bot] Oct 13, 2026
7627eff
Track upstream 1877 release 1877.26.0 (#364)
github-actions[bot] Oct 14, 2026
c609246
Add CODEOWNERS file to the repository (#359) (#368)
toanju Oct 14, 2026
c1441ff
Update SCI custom packages (#370)
renovate[bot] Oct 14, 2026
9cc4ba4
Pin ubuntu image in all workflows (#372) (#379)
toanju Oct 23, 2026
c65cc26
Remove qemu from production image (#377)
toanju Oct 23, 2026
396b2c4
Updated to 1877.26.1 (#380)
toanju Oct 23, 2026
1a895c2
Update Group GitHub Actions (#375)
renovate[bot] Oct 26, 2026
08b4e45
Pin renovate image for github actions (#388) (#390)
toanju Oct 29, 2026
44b5310
Update to upstream release 1877.27 (#387)
toanju Oct 29, 2026
0b77eee
Update oras-project/setup-oras digest to 5e2f248 (#383)
renovate[bot] Oct 29, 2026
f882c1b
Update VERSION to 1877.28.0 (#394)
toanju Oct 29, 2026
1507644
Update dependency gardenlinux/package-edk2-cloud-hypervisor-gl to v20…
renovate[bot] Oct 29, 2026
332c9d6
fixup dev image (#397)
toanju Oct 30, 2026
4258d61
Disable hpe watchdog (#398)
toanju Oct 30, 2026
d0be064
Update SCI custom packages (#403)
renovate[bot] Nov 4, 2026
eae4140
1877: bump version to 1877.28.2 (#406)
toanju Nov 4, 2026
e946732
Update sigstore/cosign-installer action to v4.1.3 (#409)
renovate[bot] Nov 13, 2026
495f963
Update dependency gardenlinux/package-edk2-cloud-hypervisor-gl to v20…
renovate[bot] Nov 13, 2026
7b4aeb4
Update oras-project/setup-oras digest to ac73509 (#426)
renovate[bot] Nov 24, 2026
1da0a2f
Pin dependencies (#430)
renovate[bot] Nov 25, 2026
8b16b3d
chore(deps): update dependency sigstore/cosign to v3.1.6 (#433)
renovate[bot] Nov 26, 2026
8e60b96
Track upstream 1877 release 1877.30.0 (#436)
github-actions[bot] Nov 26, 2026
701a51f
Update workflows to use least privilege permissions (#439)
toanju Nov 27, 2026
bb8c285
ci: make the nested-VM live-migration waits tunable
fwiesel Nov 11, 2026
8ff9d72
refactor: render the templates with envsubst
fwiesel Nov 13, 2026
dac7a52
test: configure ssh once and bound the calls
fwiesel Nov 13, 2026
4a2e9c2
test: stop the migrated guest when its scenario ends
fwiesel Nov 13, 2026
8678ec6
ci: handle an inactive libvirt network for local runs
fwiesel Nov 13, 2026
0ac156d
refactor: separate the guest, hypervisor build, and setup actions
fwiesel Nov 13, 2026
fbad456
fix: remove obsolete runner home traversal permission
fwiesel Nov 25, 2026
9047d86
test: boot a CirrOS guest image
fwiesel Nov 13, 2026
e01493c
test: log in to the nested guest as cirros
fwiesel Nov 13, 2026
1027f5d
test: share the guest disk and seed over virtiofs (#424)
fwiesel Nov 25, 2026
aa74b98
ci: unify the hypervisor migration tests into one action (#441)
fwiesel Nov 30, 2026
fb5c976
Align with main
toanju Nov 30, 2026
a6a3927
fix(ci): declare the disk format in the CloudHypervisor domain XML (#…
fwiesel Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 68 additions & 25 deletions .github/actions/test/integration/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,48 @@ inputs:
runs:
using: "composite"
steps:
- name: Install oras
uses: oras-project/setup-oras@ac735097e22fe643015b0d19645f7c9a69942128 # v2
with:
version: 1.2.2

- name: Install butane
shell: bash
run: |
BUTANE_VERSION="0.29.0"
curl -LO "https://github.com/coreos/butane/releases/download/v${BUTANE_VERSION}/butane-x86_64-unknown-linux-gnu"
chmod +x "butane-x86_64-unknown-linux-gnu"
sudo mv "butane-x86_64-unknown-linux-gnu" /usr/local/bin/butane

# TODO https://github.com/actions/cache
- name: Set ENV
shell: bash
env:
REPO: ghcr.io/gardenlinux/gardenlinux-ccloud
REPO: ghcr.io/gardenlinux/gardenlinux-sci
TAG: ${{ inputs.image_tag }}
ESP_SIZE: 2 # GiB
DISK_SIZE: 8 # GiB
run: |
run: | # zizmor: ignore[github-env] TAG is validated; remaining values are constants.
if ! [[ "$TAG" =~ ^[a-zA-Z0-9_][a-zA-Z0-9_.-]{0,127}$ ]]; then
echo "Error: image_tag must be a valid OCI tag" >&2
exit 1
fi
echo "REPO=$REPO" >> $GITHUB_ENV
echo "TAG=$TAG" >> $GITHUB_ENV
echo "ESP_SIZE=$ESP_SIZE" >> $GITHUB_ENV
echo "DISK_SIZE=$DISK_SIZE" >> $GITHUB_ENV

- name: Validate image tag
shell: bash
run: |
echo "Verifying image $TAG exists in GHCR..."
if ! digest=$(oras resolve "$REPO:$TAG" 2>&1); then
echo "Error: Image tag '$TAG' not found in $REPO"
echo "Resolve output: $digest"
exit 1
fi
echo "Image tag present in GHCR (digest: ${digest:0:12}...)"

- name: Pull ORAS artifacts
shell: bash
run: |
Expand All @@ -38,7 +66,7 @@ runs:

- name: Set up a raw disk image
shell: bash
run: |
run: | # zizmor: ignore[github-env] Paths derive from validated TAG, runner metadata, and losetup.
ESP_END="${ESP_SIZE}GiB"
DISK_IMG="${RUNNER_TEMP}/${TAG}.img"
echo "DISK_IMG=$DISK_IMG" >> $GITHUB_ENV
Expand Down Expand Up @@ -95,38 +123,53 @@ runs:
- name: Generate ignition
shell: bash
run: |
ssh-keygen -t ed25519 -f "/opt/ssh_host_ed25519_key" -N "" -C "user" -q
chmod 600 /opt/ssh_host_ed25519_key
SSH_KEY=$(cat /opt/ssh_host_ed25519_key.pub)
echo "SSH_KEY=$SSH_KEY" >> $GITHUB_ENV
sed -i "s|SSH_KEY_GOES_HERE|$SSH_KEY|g" ./.github/actions/test/integration/build/dev-user-butane.yaml
set -Eeuo pipefail
: "${SSH_KEY:?the shared test SSH key is not set}"
: "${TAG:?the image tag is not set}"

# The hypervisor root password belongs to this image, so derive it here
# instead of importing the one the nested guest uses.
PASSWORD=$(openssl passwd "password")
echo "PASSWORD=$PASSWORD" >> $GITHUB_ENV
sed -i "s|PASSWORD_GOES_HERE|$PASSWORD|g" ./.github/actions/test/integration/build/dev-user-butane.yaml
sed -i "s|TAG_GOES_HERE|${{ inputs.image_tag }}|g" ./.github/actions/test/integration/build/dev-user-butane.yaml
butane --pretty --strict ./.github/actions/test/integration/build/dev-user-butane.yaml > "/opt/${TAG}.ign"
export PASSWORD

- name: Download ubuntu cloud image
shell: bash
run: |
wget -q "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img" -O /opt/ubuntu.qcow2
envsubst '${SSH_KEY} ${PASSWORD} ${TAG}' \
< ./.github/actions/test/integration/build/dev-user-butane.yaml \
> ./.github/actions/test/integration/build/dev-user-butane-hv1.yaml

- name: Generate raw ubuntu image for CHV
shell: bash
run: |
qemu-img convert -p -f qcow2 -O raw /opt/ubuntu.qcow2 /opt/ubuntu.raw
yq '.storage.files += load("./.github/actions/test/integration/build/root-hints.yaml")' ./.github/actions/test/integration/build/dev-user-butane.yaml \
| envsubst '${SSH_KEY} ${PASSWORD} ${TAG}' \
> ./.github/actions/test/integration/build/dev-user-butane-hv2.yaml

butane --pretty --strict ./.github/actions/test/integration/build/dev-user-butane-hv1.yaml > "/opt/${TAG}-hv1.ign"
butane --pretty --strict ./.github/actions/test/integration/build/dev-user-butane-hv2.yaml > "/opt/${TAG}-hv2.ign"

- name: Generate ubuntu cloud-init
- name: Prepare the HyperVisor directory
shell: bash
run: |
sed -i "s|SSH_KEY_GOES_HERE|$SSH_KEY|g" ./.github/actions/test/integration/build/user-data
sed -i "s|PASSWORD_GOES_HERE|$PASSWORD|g" ./.github/actions/test/integration/build/user-data
genisoimage -output /opt/ubuntu-cloud-init-ds.iso -volid cidata -joliet -rock ./.github/actions/test/integration/build/meta-data ./.github/actions/test/integration/build/user-data
set -Eeuo pipefail
HV_DIR=/opt/hv
KEY=/opt/ssh_host_ed25519_key
[ -s "$KEY" ] || { echo "the shared test SSH key is missing: $KEY" >&2; exit 1; }

install -d "$HV_DIR"
sudo install -m 0644 "/opt/${TAG}.qcow2" /var/lib/libvirt/images/HV1.qcow2
sudo install -m 0644 "/opt/${TAG}.qcow2" /var/lib/libvirt/images/HV2.qcow2
sudo install -m 0644 "/opt/${TAG}-hv1.ign" /var/lib/libvirt/images/HV1.ign
sudo install -m 0644 "/opt/${TAG}-hv2.ign" /var/lib/libvirt/images/HV2.ign

render_hv() {
local name=$1 mac=$2
HV_NAME=$name MAC=$mac NETWORK=${HV_NETWORK:-default} \
envsubst '${HV_NAME} ${MAC} ${NETWORK}' \
< ./.github/actions/test/integration/build/hv.xml > "$HV_DIR/$name.xml"
}
render_hv HV1 52:54:00:12:34:56
render_hv HV2 52:54:00:65:43:21

# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: gardenlinux-ccloud-${{ inputs.image_tag }}
# name: gardenlinux-sci-${{ inputs.image_tag }}
# path: /opt/${{ inputs.image_tag }}.*
# retention-days: 1
# overwrite: true
23 changes: 12 additions & 11 deletions .github/actions/test/integration/build/dev-user-butane.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
variant: fcos
version: 1.3.0
version: 1.7.0
passwd:
users:
- name: root
password_hash: "PASSWORD_GOES_HERE"
password_hash: "${PASSWORD}"
storage:
files:
- path: /etc/ssh/sshd_config
Expand All @@ -20,7 +20,7 @@ storage:
- path: /etc/ssh/authorized_keys
mode: 0600
contents:
inline: "SSH_KEY_GOES_HERE"
inline: "${SSH_KEY}"
- path: /etc/hosts
mode: 0644
overwrite: true
Expand All @@ -37,12 +37,6 @@ storage:
# custom
192.168.122.2 hv1
192.168.122.3 hv2
- path: /opt/persist/root-hints.yaml
mode: 0644
contents:
inline: |
hints:
- size: lt 500G
# turn off hugepages, not required for this test
# also SIGNIFICANTLY reduces test runtime
- path: /opt/persist/hugepages.env
Expand All @@ -55,9 +49,9 @@ storage:
contents:
inline: |
# pull the image from GHCR instead of keppel
OCI_REPO=ghcr.io/gardenlinux/gardenlinux-ccloud
OCI_REPO=ghcr.io/gardenlinux/gardenlinux-sci
# point to a custom tag to download for the persist step
OCI_TAG=TAG_GOES_HERE
OCI_TAG=${TAG}
# Enable unlimited core dumps for all systemd services
- path: /etc/systemd/system.conf.d/10-core.conf
mode: 0644
Expand Down Expand Up @@ -85,3 +79,10 @@ storage:
kernel.core_pattern=|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h
kernel.core_pipe_limit=16
fs.suid_dumpable=2
# Disable libvirt sockets not required for CI tests
systemd:
units:
- name: libvirtd-tls.socket
mask: true
- name: libvirtd-tcp.socket
mask: true
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>HV_NAME_GOES_HERE</name>
<name>${HV_NAME}</name>
<memory unit='GiB'>6</memory>
<vcpu>4</vcpu>
<memoryBacking>
<!-- virtiofs needs a shared memory backend. -->
<source type='memfd' />
<access mode='shared' />
</memoryBacking>
<vcpu>2</vcpu>
<os firmware='efi'>
<type arch='x86_64'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE_4M.fd</loader>
Expand All @@ -14,24 +19,31 @@
<devices>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' />
<source file='/var/lib/libvirt/images/HV_NAME_GOES_HERE.qcow2' />
<target dev='hda' bus='ide' />
<source file='/var/lib/libvirt/images/${HV_NAME}.qcow2' />
<target dev='vda' bus='virtio' />
</disk>
<!-- The raw guest disk and seed are shared from the runner.
The QEMU qcow2 disk stays local for storage migration. -->
<filesystem type='mount' accessmode='passthrough'>
<driver type='virtiofs' />
<source dir='/opt/guest-images' />
<target dir='guest-images' />
</filesystem>
<interface type='network'>
<mac address='MAC_GOES_HERE' />
<source network='default' />
<mac address='${MAC}' />
<source network='${NETWORK}' />
<model type='virtio' />
</interface>
<console type='pty'>
<target type='serial' port='0' />
</console>
<serial type='file'>
<source path='/var/log/HV_NAME_GOES_HERE.log' />
<source path='/var/log/${HV_NAME}.log' />
<target port='0' />
</serial>
</devices>
<qemu:commandline>
<qemu:arg value='-fw_cfg' />
<qemu:arg value='name=opt/com.coreos/config,file=/var/lib/libvirt/images/hv.ign' />
<qemu:arg value='name=opt/com.coreos/config,file=/var/lib/libvirt/images/${HV_NAME}.ign' />
</qemu:commandline>
</domain>
2 changes: 0 additions & 2 deletions .github/actions/test/integration/build/meta-data

This file was deleted.

6 changes: 6 additions & 0 deletions .github/actions/test/integration/build/root-hints.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- path: /opt/persist/root-hints.yaml
mode: 0644
contents:
inline: |
hints:
- size: lt 500G
18 changes: 0 additions & 18 deletions .github/actions/test/integration/build/user-data

This file was deleted.

Loading
Loading