Attempt to build Debian 8 Box

This commit is contained in:
Jan Dittberner 2016-02-26 18:33:27 +01:00
parent 6be90fa095
commit e5b1594023
3 changed files with 86 additions and 6 deletions

View file

@ -2,15 +2,36 @@
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Debian",
"iso_url": "http://cdimage.debian.org/debian-cd/7.7.0/i386/iso-cd/debian-7.7.0-i386-netinst.iso",
"iso_checksum": "55312b562c4559187bb175959eacb783ab3ab15ff882bd6ad171e8159850a767",
"iso_url": "http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-8.3.0-i386-netinst.iso",
"iso_checksum": "f270d1ffa0f9472464bfc0fffa7ac3ddc89abb5786eb02454f26e49f143b01d6",
"iso_checksum_type": "sha256",
"ssh_username": "demo",
"ssh_password": "babelbox",
"ssh_wait_timeout": "30s",
"ssh_wait_timeout": "1800s",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
"disk_size": 8192,
"disk_size": 10240,
"headless": false,
"http_directory": "http"
"http_directory": "http",
"boot_command": [
"<esc><wait>",
"install <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"netcfg/get_hostname={{ .Name }} <wait>",
"netcfg/get_domain=demo.local <wait>",
"fb=false <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"boot_wait": "5s",
"vm_name": "babelbox-jessie",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
]
}]
}

59
http/preseed.cfg Normal file
View file

@ -0,0 +1,59 @@
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/supported-locales multiselect en_US.UTF-8, de_DE.UTF-8
d-i keyboard-configuration/xkb-keymap select us
d-i netcfg/choose_interface select auto
d-i mirror/country string manual
d-i mirror/http/hostname string http.debian.net
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i passwd/root-login boolean false
d-i passwd/user-fullname string Babelbox Demo User
d-i passwd/username string demo
d-i passwd/user-password-crypted password $6$M0jXQ0qT0W$4aZR9JeivSUot1WpUv5elFOEz2lZ6D4a67NMu40OR3ocHeDQIN.bkBV/JAGINgZ9tp.yLQL7wGGhLM2ZJZ9Mp/
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean false
d-i time/zone string Europe/Berlin
debconf debconf/frontend string Noninteractive
d-i partman-auto/disk string /dev/sda
d-i partman-lvm/purge_lvm_from_device boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
#d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string \
root :: \
5000 50 5000 ext4 \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint { / } \
label { root } \
. \
250 50 100% linux-swap \
$primary{ } \
method{ swap } \
format{ } \
.
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i base-installer/install-recommends boolean false
d-i apt-setup/use_mirror boolean true
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
d-i pkgsel/include string parted openssh-server acpid sudo
d-i pkgsel/upgrade select none
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard
grub-pc grub-pc/install_devices multiselect /dev/sda
grub-installer grub-installer/choose_bootdev select /dev/sda
d-i finish-install/reboot_in_progress note
d-i preseed/early_command string sed -i \
'/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
/usr/lib/pre-pkgsel.d/20install-hwpackages

View file

@ -2,7 +2,7 @@
set -e
cd http
wget -c -N http://cdimage.debian.org/debian-cd/current/i386/iso-dvd/debian-7.7.0-i386-DVD-1.iso
wget -c -N http://cdimage.debian.org/debian-cd/current/i386/iso-dvd/debian-8.3.0-i386-DVD-1.iso
cd ..
packer build debian-babelbox.json