Skip to content

Commit cb9ffbd

Browse files
committed
chore: specify number of CPU cores
1 parent 2f0f1be commit cb9ffbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qemu-arm64-nix.pkr.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ build {
6868

6969
source "qemu" "cloudimg" {
7070
boot_wait = "2s"
71-
cpus = 12
71+
cpus = 8
7272
disk_image = true
7373
disk_size = "15G"
7474
format = "qcow2"
7575
headless = true
7676
http_directory = "http"
7777
iso_checksum = "file:https://cloud-images.ubuntu.com/focal/current/SHA256SUMS"
7878
iso_url = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img"
79-
memory = 20000
79+
memory = 40000
8080
qemu_binary = "qemu-system-aarch64"
8181
qemuargs = [
8282
["-machine", "virt"],
83-
["-cpu", "host"],
83+
# ["-cpu", "host"],
8484
["-device", "virtio-gpu-pci"],
8585
["-drive", "if=pflash,format=raw,id=ovmf_code,readonly=on,file=/usr/share/AAVMF/AAVMF_CODE.fd"],
8686
["-drive", "if=pflash,format=raw,id=ovmf_vars,file=AAVMF_VARS.fd"],

0 commit comments

Comments
 (0)