Skip to content

Commit

Permalink
Merge pull request #41 from Ranjandas/x86-compatibility
Browse files Browse the repository at this point in the history
fix cpu_model
  • Loading branch information
trainmanrun authored Jun 26, 2024
2 parents 1b30c4c + 7da2cfe commit 787f231
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packer/distro-vars/rocky9-aarch64.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# We are using Rocky 9 here as RHEL release < 9 won't boot on M Series Macbooks
source_image_url="https://dl.rockylinux.org/pub/rocky/9.4/images/aarch64/Rocky-9-GenericCloud-Base-9.4-20240509.0.aarch64.qcow2"
source_image_checksum="4475b93bc0c0808697774ea7f77a465052d7d5259266618a3153eecf1780b6a3"
source_image_checksum="file:https://dl.rockylinux.org/pub/rocky/9.4/images/aarch64/Rocky-9-GenericCloud-Base-9.4-20240509.0.aarch64.qcow2.CHECKSUM"
2 changes: 1 addition & 1 deletion packer/hashibox.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ variable "source_image_checksum" {
locals {
qemu_binary = "${var.arch == "aarch64" ? "qemu-system-aarch64" : "qemu-system-x86_64"}"
accelerator = "hvf"
cpu_model = "${var.arch == "aarch64" ? "cortex-a57" : "qemu64"}"
cpu_model = "${var.arch == "aarch64" ? "cortex-a57" : "host"}"
machine_type = "${var.arch == "aarch64" ? "virt" : "pc"}"
efi_boot = "${var.arch == "aarch64" ? true : false}"
efi_firmware_code = "${var.arch == "aarch64" ? "/opt/homebrew/share/qemu/edk2-aarch64-code.fd" : ""}"
Expand Down
4 changes: 2 additions & 2 deletions packer/variables.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
consul_version = "1.18"
nomad_version = "1.7"
consul_version = "1.19"
nomad_version = "1.8"

0 comments on commit 787f231

Please sign in to comment.