Skip to content

Commit 48ba5d6

Browse files
committed
packer: increase qemu disk size, set shutdown command
the build runs out of space with only 1G, furthermore it was doing a hard reset without any sync, so many files touched in the cloud.sh script were empty on the image
1 parent 50fa3c8 commit 48ba5d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packer/hcl2/source-qemu.pkr.hcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ source "qemu" "x86_64" {
22
accelerator = "kvm"
33
boot_wait = "5s"
44
disk_interface = "virtio"
5-
disk_size = "1000M"
5+
disk_size = "2000M"
66
format = "qcow2"
77
http_directory = "http"
88
iso_checksum = "sha256:d95d40e1eb13a7776b5319a05660792fddd762662eaecee5df6b8feb3aa9b391"
99
iso_url = "https://alpha.de.repo.voidlinux.org/live/20200722/void-live-x86_64-5.7.10_1-20200722.iso"
1010
ssh_password = "void"
1111
ssh_timeout = "20m"
1212
ssh_username = "void"
13+
shutdown_command = "echo 'void' | sudo -S shutdown -P now"
1314
}

0 commit comments

Comments
 (0)