Skip to content

Commit

Permalink
arm64: increase VM RAM to fix ldconfig.service crashes
Browse files Browse the repository at this point in the history
See: flatcar/Flatcar#1493

Signed-off-by: Adrian Vladu <[email protected]>
  • Loading branch information
ader1990 committed Jul 5, 2024
1 parent 5c9351d commit ffdcc10
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions platform/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ func CreateQEMUCommand(board, uuid, biosImage, consolePath, confPath, diskImageP
// coreos-assembler folks as they utilize something
// similar in cosa run
var qmBinary string
vmMemSizeMB := "3072"
combo := runtime.GOARCH + "--" + board
switch combo {
case "amd64--amd64-usr":
Expand All @@ -308,31 +309,31 @@ func CreateQEMUCommand(board, uuid, biosImage, consolePath, confPath, diskImageP
"qemu-system-x86_64",
"-machine", "accel=kvm",
"-cpu", "host",
"-m", "2512",
"-m", vmMemSizeMB,
}
case "amd64--arm64-usr":
qmBinary = "qemu-system-aarch64"
qmCmd = []string{
"qemu-system-aarch64",
"-machine", "virt",
"-cpu", "cortex-a57",
"-m", "2512",
"-m", vmMemSizeMB,
}
case "arm64--amd64-usr":
qmBinary = "qemu-system-x86_64"
qmCmd = []string{
"qemu-system-x86_64",
"-machine", "pc-q35-2.8",
"-cpu", "kvm64",
"-m", "2512",
"-m", vmMemSizeMB,
}
case "arm64--arm64-usr":
qmBinary = "qemu-system-aarch64"
qmCmd = []string{
"qemu-system-aarch64",
"-machine", "virt,accel=kvm,gic-version=3",
"-cpu", "host",
"-m", "2512",
"-m", vmMemSizeMB,
}
default:
panic("host-guest combo not supported: " + combo)
Expand Down

0 comments on commit ffdcc10

Please sign in to comment.