{ "variables": { "accelerator": "kvm" }, "builders": [ { "communicator": "none", "type": "qemu", "accelerator": "{{ user `accelerator` }}", "use_default_display": true, "iso_url": "https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-virt-3.16.2-x86_64.iso", "iso_checksum": "6c7cb998ec2c8925d5a1239410a4d224b771203f916a18f8015f31169dd767a2", "http_directory": "./files", "vm_name": "alpine-virt-3.16.img", "disk_size": "92M", "format": "raw", "qemu_img_args": { "create": ["-o", "preallocation=off"] }, "disk_interface": "virtio", "disk_discard": "unmap", "boot_wait": "15s", "boot_key_interval": "20ms", "boot_keygroup_interval": "100ms", "boot_command": [ "root", "ifconfig lo up", "ifconfig eth0 up && udhcpc -i eth0", "wget -q http://{{ .HTTPIP }}:{{ .HTTPPort }}/alpine.conf && setup-alpine -e -f alpine.conf", "wget -q http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh && chmod +x install.sh && ./install.sh", "poweroff" ] } ] }