Last active
December 24, 2017 02:12
-
-
Save hytdsh/a16b3440556db98c4893173fd4330018 to your computer and use it in GitHub Desktop.
preseed.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### Localization | |
### | |
d-i debian-installer/locale string en_US.UTF-8 | |
#d-i debian-installer/language string en | |
#d-i debian-installer/country string JP | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/xkb-keymap select jp | |
### | |
### Network configuration | |
### | |
d-i netcfg/choose_interface select auto | |
d-i netcfg/link_wait_timeout string 10 | |
d-i netcfg/dhcp_timeout string 60 | |
d-i netcfg/dhcpv6_timeout string 60 | |
#d-i netcfg/get_hostname string 00HOSTNAME <<<<<NEED TO CHANGE | |
d-i netcfg/get_domain string | |
# If you want to force a hostname, regardless of what either the DHCP | |
# server returns or what the reverse DNS entry for the IP is, uncomment | |
# and adjust the following line. | |
#d-i netcfg/hostname string somehost | |
### | |
### Mirror settings | |
### | |
# Ubuntu - Yamagata Univ. | |
#d-i mirror/country string manual | |
#d-i mirror/http/hostname string linux.yz.yamagata-u.ac.jp | |
#d-i mirror/http/directory string /pub/linux/ubuntu-archive | |
#d-i mirror/http/proxy string | |
#d-i apt-setup/services-select multiselect security | |
#d-i apt-setup/security_host string linux.yz.yamagata-u.ac.jp | |
#d-i apt-setup/security_path string /pub/linux/ubuntu-archive | |
# Ubuntu - JAIST ftp.jaist.ac.jp as HTTP server | |
#d-i mirror/country string manual | |
#d-i mirror/http/hostname string ftp.jaist.ac.jp | |
#d-i mirror/http/directory string /ubuntu | |
#d-i mirror/http/proxy string | |
#d-i apt-setup/services-select multiselect security | |
#d-i apt-setup/security_host string ftp.jaist.ac.jp | |
#d-i apt-setup/security_path string /ubuntu | |
# Debian - Yamagata Univ. | |
#d-i mirror/country string manual | |
#d-i mirror/http/hostname string linux.yz.yamagata-u.ac.jp | |
#d-i mirror/http/directory string /pub/linux/debian | |
#d-i mirror/http/proxy string | |
#d-i apt-setup/services-select multiselect security | |
#d-i apt-setup/security_host string linux.yz.yamagata-u.ac.jp | |
#d-i apt-setup/security_path string /pub/linux/debian | |
# Debian - JAIST ftp.jaist.ac.jp as HTTP server | |
#d-i mirror/country string manual | |
#d-i mirror/http/hostname string ftp.jaist.ac.jp | |
#d-i mirror/http/directory string /debian | |
#d-i mirror/http/proxy string | |
#d-i apt-setup/services-select multiselect security | |
#d-i apt-setup/security_host string ftp.jaist.ac.jp | |
#d-i apt-setup/security_path string /debian | |
### | |
### Account setup | |
### | |
# root login for vagrant | |
d-i passwd/root-login boolean true | |
d-i passwd/root-password password vagrant | |
d-i passwd/root-password-again password vagrant | |
# normal user for vagrant | |
d-i passwd/make-user boolean true | |
d-i passwd/user-fullname string Vagrant User | |
d-i passwd/username string vagrant | |
d-i passwd/user-password password vagrant | |
d-i passwd/user-password-again password vagrant | |
d-i user-setup/allow-password-weak boolean true | |
### | |
### Clock and time zone setup | |
### | |
d-i user-setup/encrypt-home boolean false | |
d-i clock-setup/utc boolean true | |
d-i time/zone string Asia/Tokyo | |
d-i clock-setup/ntp boolean true | |
# NTP server to use. The default is almost always fine here. | |
#d-i clock-setup/ntp-server string ntp.example.com (or ntp.ubuntu.com etc) | |
### | |
### Partitioning | |
### | |
## Partitioning example | |
# If the system has free space you can choose to only partition that space. | |
# This is only honoured if partman-auto/method (below) is not set. | |
# Alternatives: custom, some_device, some_device_crypto, some_device_lvm. | |
#d-i partman-auto/init_automatically_partition select biggest_free | |
# Alternatively, you may specify a disk to partition. If the system has only | |
# one disk the installer will default to using that, but otherwise the device | |
# name must be given in traditional, non-devfs format (so e.g. /dev/sda | |
# and not e.g. /dev/discs/disc0/disc). | |
# For example, to use the first SCSI/SATA hard disk: | |
#d-i partman-auto/disk string /dev/sda | |
# In addition, you'll need to specify the method to use. | |
# The presently available methods are: | |
# - regular: use the usual partition types for your architecture | |
# - lvm: use LVM to partition the disk | |
# - crypto: use LVM within an encrypted partition | |
d-i partman-auto/method string lvm | |
# If one of the disks that are going to be automatically partitioned | |
# contains an old LVM configuration, the user will normally receive a | |
# warning. This can be preseeded away... | |
d-i partman-lvm/device_remove_lvm boolean true | |
# The same applies to pre-existing software RAID array: | |
d-i partman-md/device_remove_md boolean true | |
# And the same goes for the confirmation to write the lvm partitions. | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
# For LVM partitioning, you can select how much of the volume group to use | |
# for logical volumes. | |
#d-i partman-auto-lvm/guided_size string max | |
#d-i partman-auto-lvm/guided_size string 10GB | |
#d-i partman-auto-lvm/guided_size string 50% | |
# You can choose one of the three predefined partitioning recipes: | |
# - atomic: all files in one partition | |
# - home: separate /home partition | |
# - multi: separate /home, /var, and /tmp partitions | |
d-i partman-auto/choose_recipe select atomic | |
# This makes partman automatically partition without confirmation, provided | |
# that you told it what to do using one of the methods above. | |
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 | |
### | |
# ONLY base packages | |
tasksel tasksel/first multiselect | |
# Individual additional packages to install | |
d-i pkgsel/include string man less openssh-server sudo build-essential | |
#d-i pkgsel/include string openssh-server build-essential | |
# Policy for applying updates. May be "none" (no automatic updates), | |
# "unattended-upgrades" (install security updates automatically), or | |
# "landscape" (manage system with Landscape). | |
d-i pkgsel/update-policy select none | |
### | |
### make user "vagrant" sudoers | |
### | |
d-i preseed/late_command string \ | |
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >/target/etc/sudoers.d/vagrant; \ | |
in-target chmod 440 /etc/sudoers.d/vagrant; | |
### | |
### Boot loader installation | |
### | |
d-i grub-installer/only_debian boolean true | |
d-i grub-installer/with_other_os boolean true | |
d-i grub-installer/bootdev string default | |
### | |
### Finish | |
### | |
# Avoid that last message about the install being complete. | |
d-i finish-install/reboot_in_progress note | |
# Poweroff instead of reboot | |
#d-i debian-installer/exit/poweroff boolean true |
for Vagrant(and Packer) requirements https://www.vagrantup.com/docs/boxes/base.html
user account: vagrant/vagrant, with password-less sudoers
root password: vagrant
+openssh-server
+sudo (minimal debian does not include sudo)
+man (for minimal debian)
+less (for minimal debian)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ref: https://help.ubuntu.com/stable/installation-guide/example-preseed.txt