From e866286a4411138c49e329b7e71f67d9b187edba Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 10 Mar 2017 18:37:04 +0100 Subject: Templates for Centos 7.3 and Ubuntu 16.04 These were tested with qemu (2.8.0), virtualbox (5.1.16) and vmplayer (12.5.2-4638234). Using the qemu builder is preferable as it creates a qcow2 file directly. The unattended install is configured to install the necessary packages for ansible which will be needed to provision the VM. The rest is still pretty minimal. --- http/ubuntu-16.04/preseed.cfg | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 http/ubuntu-16.04/preseed.cfg (limited to 'http/ubuntu-16.04/preseed.cfg') diff --git a/http/ubuntu-16.04/preseed.cfg b/http/ubuntu-16.04/preseed.cfg new file mode 100644 index 0000000..598790b --- /dev/null +++ b/http/ubuntu-16.04/preseed.cfg @@ -0,0 +1,51 @@ +d-i debian-installer/locale string en_US +d-i time/zone string UTC + +d-i keyboard-configuration/xkb-keymap select de + +d-i partman-basicfilesystems/choose_label string gpt +d-i partman-basicfilesystems/default_label string gpt +d-i partman-basicfilesystems/no_swap boolean false +d-i partman-partitioning/choose_label string gpt +d-i partman-partitioning/default_label string gpt +d-i partman/choose_label string gpt +d-i partman/default_label string gpt +d-i partman-auto/method string regular +d-i partman-auto/expert_recipe string \ + scheme :: \ + 32 32 32 free \ + $gptonly{ } \ + $primary{ } \ + $bios_boot{ } \ + method{ biosgrub } . \ + 1 0 -1 ext4 \ + $gptonly{ } \ + $primary{ } \ + method{ format } \ + format{ } \ + use_filesystem{ } \ + filesystem{ ext4 } \ + label{ SLX_SYS } \ + mountpoint{ / } . +d-i partman-partitioning/confirm_write_new_label boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean true +d-i partman/confirm_nooverwrite boolean true + +d-i base-installer/excludes string laptop-detect +d-i passwd/make-user boolean false +d-i passwd/root-login boolean true +d-i passwd/root-password-crypted password $6$6yzbOJJy5auuBh9$XUAtAt/ErLkz6.1t8J4UpyZPPUbKjGO1uATaZaxmG02IhJbOwnJMqI6MTJw.SzbBvy8THCmmoia1tVMfXhGVJ1 +d-i user-setup/allow-password-weak boolean true + +d-i pkgsel/include string curl openssh-server sudo ansible +d-i pkgsel/language-packs multiselect + +d-i finish-install/reboot_in_progress note + +d-i preseed/early_command string \ + mkdir -p /usr/lib/post-base-installer.d && \ + echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel && \ + chmod +x /usr/lib/post-base-installer.d/90skip-tasksel + +d-i preseed/late_command string sed -i 's,^PermitRootLogin.*,PermitRootLogin yes,' /target/etc/ssh/sshd_config -- cgit v1.2.3-55-g7522