Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312439
D4137.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D4137.diff
View Options
diff --git a/packer/debian_buster.qemu.json b/packer/debian_buster.qemu.json
new file mode 100644
--- /dev/null
+++ b/packer/debian_buster.qemu.json
@@ -0,0 +1,72 @@
+{
+ "variables": {
+ "DISK_SIZE": "5120",
+ "IMAGE_TIMESTAMP": "{{isotime \"20060102-1504\"}}",
+ "PACKER_BOX_NAME": "swh-debian-10.6-amd64-{{ user `IMAGE_TIMESTAMP` }}"
+ },
+ "builders": [
+ {
+ "headless": false,
+ "type": "qemu",
+ "format": "qcow2",
+ "accelerator": "kvm",
+ "net_device": "virtio-net",
+ "disk_interface": "virtio",
+ "memory": 2048,
+ "cpus": 2,
+
+ "boot_command": [
+ "<esc><wait>",
+ "install <wait>",
+ "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/buster-preseed.cfg <wait>",
+ "debian-installer=en_US.UTF-8 <wait>",
+ "auto <wait>",
+ "locale=en_US.UTF-8 <wait>",
+ "kbd-chooser/method=us <wait>",
+ "keyboard-configuration/xkb-keymap=us <wait>",
+ "netcfg/get_hostname={{ .Name }} <wait>",
+ "netcfg/get_domain=vagrantup.com <wait>",
+ "fb=false <wait>",
+ "debconf/frontend=noninteractive <wait>",
+ "console-setup/ask_detect=false <wait>",
+ "console-keymaps-at/keymap=us <wait>",
+ "grub-installer/bootdev=/dev/vda <wait>",
+ "<enter><wait>"
+ ],
+
+ "boot_wait": "5s",
+ "disk_size": "{{ user `DISK_SIZE` }}",
+ "ssh_username": "vagrant",
+ "ssh_password": "vagrant",
+ "ssh_port": 22,
+ "ssh_wait_timeout": "1000s",
+ "output_directory": "output",
+ "http_directory": "http",
+ "iso_urls": [
+ "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.6.0-amd64-netinst.iso"
+ ],
+ "iso_checksum": "2af8f43d4a7ab852151a7f630ba596572213e17d3579400b5648eba4cc974ed0",
+ "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
+ "vm_name": "{{ user `PACKER_BOX_NAME` }}"
+ }],
+ "provisioners": [
+ {
+ "type": "shell",
+ "expect_disconnect": "true",
+ "execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'",
+ "scripts": [
+ "scripts/post-install.sh"
+ ]
+ }
+ ],
+
+ "post-processors": [
+ [
+ {
+ "type": "vagrant",
+ "compression_level": 9,
+ "output": "builds/{{ user `PACKER_BOX_NAME` }}.qcow2"
+ }
+ ]
+ ]
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 10:53 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3224133
Attached To
D4137: packer: Add template to build qemu/libvirt images
Event Timeline
Log In to Comment