Skip to content

Commit 0bcd0c1

Browse files
jbtrystramdustymabe
andcommitted
testiso: increase memory for PXE tests
The PXE test fails due to memory exhaustion while trying to fit the initramfs and rootfs in memory, leading to initramfs failures. Increase the memory for the testiso VM. Co-authored-by: Dusty Mabe <[email protected]>
1 parent 6dd9f69 commit 0bcd0c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mantle/cmd/kola/testiso.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,14 @@ func testPXE(ctx context.Context, inst platform.Install, outdir string) (time.Du
810810
if err != nil {
811811
return 0, errors.Wrapf(err, "creating QemuBuilder")
812812
}
813+
814+
// increase the memory for pxe tests with appended rootfs in the initrd
815+
// we were bumping up into the 4GiB limit in RHCOS/c9s
816+
// pxe-offline-install.rootfs-appended.bios tests
817+
if inst.PxeAppendRootfs && builder.MemoryMiB < 5120 {
818+
builder.MemoryMiB = 5120
819+
}
820+
813821
inst.Builder = builder
814822
completionChannel, err := inst.Builder.VirtioChannelRead("testisocompletion")
815823
if err != nil {

0 commit comments

Comments
 (0)