Skip to content

Commit

Permalink
podvm: change default cpu_model for CentOS
Browse files Browse the repository at this point in the history
as x86_64 v2 is needed for CentOS 9 Stream

Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
  • Loading branch information
snir911 committed Oct 11, 2023
1 parent d9f94c6 commit 90ccfc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions podvm/qcow2/centos/qemu-centos.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ locals {
machine_type = "${var.os_arch}" == "x86_64" && "${var.is_uefi}" ? "q35" : "${var.machine_type}"
use_pflash = "${var.os_arch}" == "x86_64" && "${var.is_uefi}" ? "true" : "false"
firmware = "${var.os_arch}" == "x86_64" && "${var.is_uefi}" ? "${var.uefi_firmware}" : ""
cpu_model = "${var.os_arch}" == "x86_64" ? "Skylake-Client" : ""
}

source "qemu" "centos" {
Expand All @@ -23,6 +24,7 @@ source "qemu" "centos" {
vm_name = "${var.qemu_image_name}"
shutdown_command = "sudo shutdown -h now"
machine_type = "${local.machine_type}"
cpu_model = "${local.cpu_model}"
use_pflash = "${local.use_pflash}"
firmware = "${local.firmware}"
}
Expand Down

0 comments on commit 90ccfc3

Please sign in to comment.