{ "variables": { "iso": "https://mirror.rackspace.com/archlinux/iso/latest/archlinux-2020.09.01-x86_64.iso", "disk_size": "16384" }, "builders": [ { "name": "archlinux-alis-virtualbox", "type": "virtualbox-iso", "guest_os_type": "ArchLinux_64", "guest_additions_mode": "attach", "headless": false, "http_directory": ".", "vboxmanage": [ ["modifyvm", "{{.Name}}", "--memory", "2048"], ["modifyvm", "{{.Name}}", "--vram", "128"], ["modifyvm", "{{.Name}}", "--cpus", "2"], ["modifyvm", "{{.Name}}", "--firmware", "efi"] ], "disk_size": "{{user `disk_size`}}", "hard_drive_interface": "sata", "iso_url": "{{user `iso`}}", "iso_checksum": "sha1:95ebacd83098b190e8f30cc28d8c57af0d0088a0", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_wait_timeout": "60m", "boot_wait": "5s", "boot_command": [ "", "curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/alis.conf", "curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/alis.sh", "sed -i \"s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\\\"ext4\\\"/\" ./alis.conf", "sed -i \"s/LVM=.*/LVM=\\\"false\\\"/\" ./alis.conf", "sed -i \"s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\\\"archlinux\\\"/\" ./alis.conf", "sed -i \"s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\\\"archlinux\\\"/\" ./alis.conf", "sed -i \"s/BOOTLOADER=.*/BOOTLOADER=\\\"grub\\\"/\" ./alis.conf", "sed -i \"s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\\\"\\\"/\" ./alis.conf", "chmod +x ./alis.sh", "./alis.shy", "" ], "shutdown_command": "systemctl poweroff" } ], "post-processors": [ { "type": "vagrant", "output": "archlinux-alis-{{.BuildName}}.box" } ] }