AutomatedInstallsWithPreseed
Attachment 'preseed_kvm.cfg'
Download 1 # Preseed file for KVM virtual machines running Ubuntu Server
2 # tried to keep it pretty lean and pretty generic
3 # Frank Heimes
4
5 # General configuration
6 d-i debconf/priority string critical
7 d-i auto-install/enable boolean true
8
9 # use -proposed udebs
10 ### d-i apt-setup/proposed boolean true
11
12 d-i pkgsel/update-policy select none
13
14 # Localization
15 d-i debian-installer/language string en
16 d-i debian-installer/country string US
17 d-i debian-installer/locale string en_US.UTF-8
18
19 # HW clock
20 d-i clock-setup/utc boolean true
21 # Timezone
22 d-i time/zone string US/Eastern
23
24 #
25 # Mirror preseed file for the Debian Installer
26 #
27 d-i mirror/country string manual
28 d-i mirror/protocol string http
29 d-i mirror/http/hostname string ports.ubuntu.com
30 d-i mirror/http/directory string /
31
32 # Use a http proxy
33 ### d-i mirror/http/proxy string http://myproxy.example.com:3128
34 # Use no proxy
35 d-i mirror/http/proxy string
36
37 # Ubuntu release to install
38 d-i mirror/suite string xenial
39
40 # user setup
41 d-i passwd/user-fullname string ubuntu
42 d-i passwd/username string ubuntu
43 # specify password in clear (don’t do that)
44 ### d-i passwd/user-password password ubuntu
45 ### d-i passwd/user-password-again password ubuntu
46 ### d-i user-setup/allow-password-weak boolean true
47 # specify encrypted password (use 'mkpasswd -m sha-512' to generate)
48 d-i passwd/user-password-crypted password $6$qAvoG9qPd08PD1I$uVlTe7FISFrQ4Klcfs95YMUahYNWtOSRU7pQGgo6PpA.eyK/5xnvDk7963XzzJe5Wq8T6HsIX2MP0Sb8qmSM8.
49 # encrypt fs
50 d-i user-setup/encrypt-home boolean false
51
52 # Enable login as root
53 ### d-i passwd/root-login boolean true
54 # Root password
55 ### d-i passwd/root-password-crypted password $6$EUF2Ps/BoU5qy.C$cngxbtxDmCH8lXTMX6YqCtPjEfa3rBWL7l8btCBiESU.KCvKnzukZl9f.AYzOPZiotisgge7WMB/Bi/BKcj/x.
56 # enable shadow passwords
57 d-i passwd/shadow boolean true
58
59 # do not enable live installer, use normal d-i instead
60 d-i live-installer/enable boolean false
61
62 # qcow2 image as defined in xml
63 d-i partman-auto/disk string /dev/vda
64 d-i partman-auto/method string regular
65
66 # optional lines to clean-up old RAIDs and LVMs ....
67 d-i partman-md/device_remove_md boolean true
68 d-i partman-lvm/device_remove_lvm boolean true
69 d-i partman-lvm/device_remove_lvm_span boolean true
70 d-i partman-lvm/confirm boolean true
71 d-i partman-lvm/confirm_nooverwrite boolean true
72
73 d-i partman-partitioning/confirm_write_new_label boolean true
74 d-i partman/choose_partition select finish
75 d-i partman/confirm boolean true
76 d-i partman/confirm_nooverwrite boolean true
77
78 # Use restricted software?
79 apt-mirror-setup apt-setup/restricted boolean true
80 # Use software from the "universe" component?
81 apt-mirror-setup apt-setup/universe boolean true
82 # Use software from the "multiverse" component?
83 apt-mirror-setup apt-setup/multiverse boolean true
84 # Use backported software?
85 apt-mirror-setup apt-setup/backports boolean false
86 # Use software from the "partner" repository?
87 apt-mirror-setup apt-setup/partner boolean false
88 # Enable source repositories in APT?
89 apt-setup-udeb apt-setup/enable-source-repositories boolean false
90
91 # Software selection
92 d-i tasksel/first multiselect standard system utilities, OpenSSH server, Basic Ubuntu server
93
94 # Should kexec-tools handle reboots?
95 kexec-tools kexec-tools/load_kexec boolean false
96 # Should kdump-tools be enabled by default?
97 kdump-tools kdump-tools/use_kdump boolean false
98
99 # After installation, install some packages - use a single line only! (keep it minimalistic)
100 d-i preseed/late_command string in-target sed -i s/prohibit-password/yes/g /etc/ssh/sshd_config; apt-install screen vim
101
102 # Perform the automatic action after installation
103 d-i finish-install/reboot_in_progress note
104 # Perform a poweroff instead of a reboot (allows to change boot order)
105 d-i debian-installer/exit/poweroff boolean true
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.