1
0
mirror of https://github.com/krislamo/preseed synced 2024-09-20 04:30:36 +00:00
preseed/vmseed.txt

133 lines
3.9 KiB
Plaintext
Raw Normal View History

2020-02-25 05:58:16 +00:00
#### QEMU/KVM Virtual Machine Seed for Debian Buster
2020-02-25 05:06:34 +00:00
2020-02-25 06:07:08 +00:00
# Only show critical messages
2020-02-25 05:06:34 +00:00
d-i debconf/priority string critical
2020-02-25 06:07:08 +00:00
# Just after preseeding is read, reset automatic network settings
d-i preseed/early_command string kill-all-dhcp; netcfg
2020-02-24 03:29:25 +00:00
### Localization
2020-02-25 05:58:16 +00:00
2020-02-24 03:29:25 +00:00
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select us
### Network configuration
2020-02-25 05:52:59 +00:00
# Auto select network device.
2020-02-24 03:29:25 +00:00
d-i netcfg/choose_interface select auto
2020-02-25 05:52:59 +00:00
# Configure network manually
2020-02-25 05:23:10 +00:00
d-i netcfg/disable_autoconfig boolean true
2020-02-24 03:29:25 +00:00
# Static network configuration.
d-i netcfg/get_ipaddress string 192.168.1.15
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/confirm_static boolean true
2020-02-24 03:29:25 +00:00
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
2020-02-25 05:52:59 +00:00
# Set hostname
d-i netcfg/hostname string debian-base
2020-02-24 03:29:25 +00:00
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
### Mirror settings
2020-02-25 05:58:16 +00:00
2020-02-24 03:29:25 +00:00
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
### Account setup
2020-02-25 05:58:16 +00:00
2020-02-25 05:52:59 +00:00
# Don't set a root password
d-i passwd/root-login boolean false
2020-02-24 03:29:25 +00:00
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
2020-02-25 05:58:16 +00:00
# Create a normal user account.
d-i passwd/user-fullname string Kris Lamoureux
d-i passwd/username string kris
2020-02-24 03:29:25 +00:00
#d-i passwd/user-password-crypted password [crypt(3) hash]
### Clock and time zone setup
2020-02-25 05:58:16 +00:00
2020-02-24 03:29:25 +00:00
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string US/Eastern
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
### Partitioning
2020-02-25 05:52:59 +00:00
# User LVM to partition
2020-02-24 03:29:25 +00:00
d-i partman-auto/method string lvm
2020-02-25 05:52:59 +00:00
# Use max space for LVM volume group
2020-02-24 03:29:25 +00:00
d-i partman-auto-lvm/guided_size string max
2020-02-25 05:52:59 +00:00
# Remove previous LVM configuration if exists
2020-02-24 03:29:25 +00:00
d-i partman-lvm/device_remove_lvm boolean true
2020-02-25 05:52:59 +00:00
# Remove previous software RAID
2020-02-24 03:29:25 +00:00
d-i partman-md/device_remove_md boolean true
2020-02-25 05:52:59 +00:00
# Confirm writing LVM partitions
2020-02-24 03:29:25 +00:00
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
2020-02-25 05:52:59 +00:00
# Put all files in one partition
2020-02-24 03:29:25 +00:00
d-i partman-auto/choose_recipe select atomic
2020-02-25 05:52:59 +00:00
# This makes partman automatically partition without confirmation
2020-02-24 03:29:25 +00:00
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
# This makes partman automatically partition without confirmation.
d-i partman-md/confirm boolean true
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
### Package selection
2020-02-25 05:58:16 +00:00
# Install SSH server
tasksel tasksel/first multiselect ssh-server
2020-02-24 03:29:25 +00:00
2020-02-25 05:52:59 +00:00
# Upgrade packages after debootstrap
d-i pkgsel/upgrade select full-upgrade
2020-02-24 03:29:25 +00:00
2020-02-25 05:52:59 +00:00
# Disable popularity-contest
popularity-contest popularity-contest/participate boolean false
2020-02-24 03:29:25 +00:00
2020-02-25 05:52:59 +00:00
# Force MBR install regardless of existing OS
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string /dev/vda
2020-02-24 03:29:25 +00:00
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
2020-02-25 05:58:16 +00:00
# Just before install finishes, install SSH keys into root
2020-02-24 05:57:57 +00:00
d-i preseed/late_command string \
2020-02-25 05:05:14 +00:00
mkdir -p /target/root/.ssh; \
wget -O /target/root/.ssh/authorized_keys \
https://raw.githubusercontent.com/krislamo/bootstrap/master/authorized_keys;