1 #### Contents of the preconfiguration file (for wheezy)
3 # Locale sets language and country.
4 d-i debian-installer/locale string en_US.UTF-8
8 d-i keyboard-configuration/xkb-keymap select us
10 ### Network configuration
11 # netcfg will choose an interface that has link if possible. This makes it
12 # skip displaying a list if there is more than one interface.
13 d-i netcfg/choose_interface select auto
15 # If you have a slow dhcp server and the installer times out waiting for
16 # it, this might be useful.
17 #d-i netcfg/dhcp_timeout string 60
19 # Static network configuration.
20 #d-i netcfg/get_nameservers string 192.168.1.1
21 #d-i netcfg/get_ipaddress string 192.168.1.42
22 #d-i netcfg/get_netmask string 255.255.255.0
23 #d-i netcfg/get_gateway string 192.168.1.1
24 #d-i netcfg/confirm_static boolean true
26 # Any hostname and domain names assigned from dhcp take precedence over
27 # values set here. However, setting the values still prevents the questions
28 # from being shown, even if values come from dhcp.
29 #d-i netcfg/get_hostname string vagrant
30 #d-i netcfg/get_domain string vagrantup.com
32 # If non-free firmware is needed for the network or other hardware, you can
33 # configure the installer to always try to load it, without prompting. Or
34 # change to false to disable asking.
35 #d-i hw-detect/load_firmware boolean true
38 # Use the following settings if you wish to make use of the network-console
39 # component for remote installation over SSH. This only makes sense if you
40 # intend to perform the remainder of the installation manually.
41 #d-i anna/choose_modules string network-console
42 #d-i network-console/password password r00tme
43 #d-i network-console/password-again password r00tme
46 # If you select ftp, the mirror/country string does not need to be set.
47 #d-i mirror/protocol string ftp
48 d-i mirror/country string manual
49 d-i mirror/http/hostname string http.debian.net
50 d-i mirror/http/directory string /debian
51 d-i mirror/http/proxy string
54 #d-i mirror/suite string testing
55 # Suite to use for loading installer components (optional).
56 #d-i mirror/udeb/suite string testing
58 ### Clock and time zone setup
59 # Controls whether or not the hardware clock is set to UTC.
60 d-i clock-setup/utc boolean true
62 # You may set this to any valid setting for $TZ; see the contents of
63 # /usr/share/zoneinfo/ for valid values.
64 d-i time/zone string UTC
66 # Controls whether to use NTP to set the clock during the install
67 d-i clock-setup/ntp boolean true
68 # NTP server to use. The default is almost always fine here.
69 #d-i clock-setup/ntp-server string ntp.example.com
72 # If the system has free space you can choose to only partition that space.
73 #d-i partman-auto/init_automatically_partition select biggest_free
75 # Alternatively, you can specify a disk to partition. The device name must
76 # be given in traditional non-devfs format.
77 # Note: A disk must be specified, unless the system has only one disk.
78 # For example, to use the first SCSI/SATA hard disk:
79 #d-i partman-auto/disk string /dev/sda
80 # In addition, you'll need to specify the method to use.
81 # The presently available methods are: "regular", "lvm" and "crypto"
82 d-i partman-auto/method string lvm
84 # If one of the disks that are going to be automatically partitioned
85 # contains an old LVM configuration, the user will normally receive a
86 # warning. This can be preseeded away...
87 d-i partman-lvm/device_remove_lvm boolean true
88 # The same applies to pre-existing software RAID array:
89 d-i partman-md/device_remove_md boolean true
91 # And the same goes for the confirmation to write the lvm partitions.
92 d-i partman-lvm/confirm boolean true
93 d-i partman-lvm/confirm_nooverwrite boolean true
96 d-i partman/choose_partition select finish
97 d-i partman-auto-lvm/guided_size string max
99 # You can choose one of the three predefined partitioning recipes:
100 # - atomic: all files in one partition
101 # - home: separate /home partition
102 # - multi: separate /home, /usr, /var, and /tmp partitions
103 d-i partman-auto/choose_recipe select atomic
104 d-i partman/default_filesystem string ext3
106 # Or provide a recipe of your own...
107 # The recipe format is documented in the file devel/partman-auto-recipe.txt.
108 # If you have a way to get a recipe file into the d-i environment, you can
110 #d-i partman-auto/expert_recipe_file string /hd-media/recipe
112 # If not, you can put an entire recipe into the preconfiguration file in one
113 # (logical) line. This example creates a small /boot partition, suitable
114 # swap, and uses the rest of the space for the root partition:
115 #d-i partman-auto/expert_recipe string \
118 # $primary{ } $bootable{ } \
119 # method{ format } format{ } \
120 # use_filesystem{ } filesystem{ ext3 } \
121 # mountpoint{ /boot } \
123 # 500 10000 1000000000 ext3 \
124 # method{ format } format{ } \
125 # use_filesystem{ } filesystem{ ext3 } \
128 # 64 512 300% linux-swap \
129 # method{ swap } format{ } \
132 #The preseed line that "selects finish" needs to be in a certain order in your preseed, the example-preseed does not follow this.
133 #http://ubuntuforums.org/archive/index.php/t-1504045.html
135 # This makes partman automatically partition without confirmation, provided
136 # that you told it what to do using one of the methods above.
137 d-i partman/confirm_write_new_label boolean true
138 d-i partman/confirm boolean true
139 d-i partman/confirm_nooverwrite boolean true
142 ### Base system installation
143 # Select the initramfs generator used to generate the initrd for 2.6 kernels.
144 #d-i base-installer/kernel/linux/initramfs-generators string yaird
146 # The kernel image (meta) package to be installed; "none" can be used if no
147 # kernel is to be installed.
148 #d-i base-installer/kernel/image string linux-image-2.6-486
151 # Skip creation of a root account (normal user account will be able to
153 #d-i passwd/root-login boolean false
154 # Alternatively, to skip creation of a normal user account.
155 #d-i passwd/make-user boolean false
157 # Root password, either in clear text
158 d-i passwd/root-password password vagrant
159 d-i passwd/root-password-again password vagrant
160 # or encrypted using an MD5 hash.
161 #d-i passwd/root-password-crypted password [MD5 hash]
163 # To create a normal user account.
164 d-i passwd/user-fullname string Vagrant User
165 d-i passwd/username string vagrant
166 # Normal user's password, either in clear text
167 d-i passwd/user-password password vagrant
168 d-i passwd/user-password-again password vagrant
169 # or encrypted using an MD5 hash.
170 #d-i passwd/user-password-crypted password [MD5 hash]
171 # Create the first user with the specified UID instead of the default.
172 #d-i passwd/user-uid string 1010
173 d-i user-setup/encrypt-home boolean false
174 d-i user-setup/allow-password-weak boolean true
176 # The user account will be added to some standard initial groups. To
177 # override that, use this.
178 d-i passwd/user-default-groups string audio cdrom video admin
181 # You can choose to install non-free and contrib software.
182 #d-i apt-setup/non-free boolean true
183 #d-i apt-setup/contrib boolean true
184 # Uncomment this if you don't want to use a network mirror.
185 #d-i apt-setup/use_mirror boolean false
186 # Select which update services to use; define the mirrors to be used.
187 # Values shown below are the normal defaults.
188 #d-i apt-setup/services-select multiselect security, volatile
189 #d-i apt-setup/security_host string security.debian.org
190 #d-i apt-setup/volatile_host string volatile.debian.org
193 # By default the installer requires that repositories be authenticated
194 # using a known gpg key. This setting can be used to disable that
195 # authentication. Warning: Insecure, not recommended.
196 #d-i debian-installer/allow_unauthenticated string true
198 ### Package selection
199 tasksel tasksel/first multiselect standard
200 # If the desktop task is selected, install the kde and xfce desktops
201 # instead of the default gnome desktop.
202 #tasksel tasksel/desktop multiselect kde, xfce
204 # Individual additional packages to install
205 d-i pkgsel/include string openssh-server ntp acpid gpm sudo bzip2 rsync emacs23-nox vim
207 # Whether to upgrade packages after debootstrap.
208 # Allowed values: none, safe-upgrade, full-upgrade
209 #d-i pkgsel/upgrade select safe-upgrade
211 # Some versions of the installer can report back on what software you have
212 # installed, and what software you use. The default is not to report back,
213 # but sending reports helps the project determine what software is most
214 # popular and include it on CDs.
215 popularity-contest popularity-contest/participate boolean false
217 ### Boot loader installation
218 # Grub is the default boot loader (for x86). If you want lilo installed
219 # instead, uncomment this:
220 #d-i grub-installer/skip boolean true
221 # To also skip installing lilo, and install no bootloader, uncomment this
223 #d-i lilo-installer/skip boolean true
225 # This is fairly safe to set, it makes grub install automatically to the MBR
226 # if no other operating system is detected on the machine.
227 d-i grub-installer/only_debian boolean true
229 # Avoid that last message about the install being complete.
230 d-i finish-install/reboot_in_progress note
232 # This is how to make the installer shutdown when finished, but not
233 # reboot into the installed system.
234 #d-i debian-installer/exit/halt boolean true
235 # This will power off the machine instead of just halting it.
236 #d-i debian-installer/exit/poweroff boolean true
238 ### Preseeding other packages
239 # Depending on what software you choose to install, or if things go wrong
240 # during the installation process, it's possible that other questions may
241 # be asked. You can preseed those too, of course. To get a list of every
242 # possible question that could be asked during an install, do an
243 # installation, and then run these commands:
244 # debconf-get-selections --installer > file
245 # debconf-get-selections >> file
247 # Controlled server environment with minimal dependencies:
248 di base-installer/install-recommends false
251 #### Advanced options
252 ### Running custom commands during the installation
253 # d-i preseeding is inherently not secure. Nothing in the installer checks
254 # for attempts at buffer overflows or other exploits of the values of a
255 # preconfiguration file like this one. Only use preconfiguration files from
256 # trusted locations! To drive that home, and because it's generally useful,
257 # here's a way to run any shell command you'd like inside the installer,
260 # This first command is run as early as possible, just after
261 # preseeding is read.
262 # Prevent packaged version of VirtualBox Guest Additions being installed:
263 #d-i preseed/early_command string sed -i \
264 # '/in-target/idiscover(){/sbin/discover|grep -v VirtualBox;}' \
265 # /usr/lib/pre-pkgsel.d/20install-hwpackages
267 # This command is run just before the install finishes, but when there is
268 # still a usable /target directory. You can chroot to /target and use it
269 # directly, or use the apt-install and in-target commands to easily install
270 # packages and run commands in the target system.
271 d-i preseed/late_command string \
272 echo %vagrant ALL=NOPASSWD:ALL > /target/etc/sudoers.d/vagrant; \
273 in-target chmod 0440 /etc/sudoers.d/vagrant