Packer
Hashicorp Packer
Getting Started
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_checksum": "946a6077af6f5f95a51f82fdc44051c7aa19f9cfc5f737954845a6050543d7c2",
"iso_url": "http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso",
"iso_checksum_type": "sha256",
"output_directory": "output-ubuntu-14.04",
"vm_name": "ubuntu-14.04",
"disk_size": 15000,
"headless": "true",
"http_directory": "http",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" initrd=/install/initrd.gz",
" auto-install/enable=true",
" debconf/priority=critical",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"ssh_timeout": "60m",
"ssh_username": "ubuntu",
"ssh_password": "ubuntu",
"shutdown_command": "sudo systemctl poweroff",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", 512],
["modifyvm", "{{.Name}}", "--cpus", 1]
]
}
],
"provisioners": [
]
} ```
und der Datei `preseed.cfg` im Unterverzeichnis `http` mit folgendem InhaltPreseeding only locale sets language, country and locale.
Keyboard selection.
Clock and time zone setup
Avoid that last message about the install being complete.
This is fairly safe to set, it makes grub install automatically to the MBR
if no other operating system is detected on the machine.
This one makes grub-installer install to the MBR if it also finds some other
OS, which is less safe as it might not be able to boot that other OS.
Mirror settings
If you select ftp, the mirror/country string does not need to be set.
Partitioning
This makes partman automatically partition without confirmation.
Account setup
The installer will warn about weak passwords. If you are sure you know
what you're doing and want to override it, uncomment this.
Package selection
disable automatic package updates
Last updated