Quelques info sur la progression du projet. On commence pour les tests en boot classique, mais on passera rapidement en boot EFI
C'est du travail en cours
On a installé un serveur tftp et un serveur apache
apt install tftpd-hpa apache2
Pour la partie PXE on s'est basé sur cette documentation
https://wiki.debian-fr.xyz/PXE_avec_support_EFI
On utilise une appliance pour le DHCP, sur laquelle nous n'avons que peu d'options de configuration. Nous avons modifié les options suivantes
Filename : pxelinux.0
Next server : 192.168.1.1
Root path : /var/lib/tftpboot
Tftp server name : pxe.example.fr
On a modifié le fichier suivant
/var/lib/tftpboot/ubuntu-installer/amd64/boot-screens/txt.cfg
On appelle un fichier preseed
ub-18.04-preseed.cfg via le serveur apache que l'on a installé plus haut, on passe en fr_FR.UTF-8, de fait toute l'installation et la configuration de la machine sera en français
default install
label install
menu label ^Install
menu default
kernel ubuntu-installer/amd64/linux
append vga=788 initrd=ubuntu-installer/amd64/initrd.gz locale=fr_FR.UTF-8 preseed/url=https://pxe.example.fr/ub-18.04-preseed.cfg --- quiet
label cli
menu label ^Command-line install
kernel ubuntu-installer/amd64/linux
append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=788 initrd=ubuntu-installer/amd64/initrd.gz preseed/url=https://pxe.example.fr/ub-18.04-preseed.cfg --- quiet
Le contenu du fichier
ub-18.04-preseed.cfg
* On défini un utilisateur de base qui est admin avec son mot de passe. C'est ici que l'on ajoutera le compte ansible plus tard.
* On formate automatiquement et on chiffre le disque
* On installe un serveur openssh pour s'y connecter par la suite et toujours pour Ansible
# Enable extras.ubuntu.com.
# To create a normal user account.
d-i passwd/user-fullname string Compte Admin
d-i passwd/username string compte-admin
# or encrypted using a crypt(3) hash.
d-i passwd/user-password-crypted password $6$61fdif.......
# package management.
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string fr.archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
# Suite to install.
d-i mirror/suite string bionic
# Conf issue de http://people.canonical.com/~mtrudel/preseed/crypto.cfg
# Partitioning
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/method string crypto
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select boot-crypto
d-i partman-auto-lvm/new_vg_name string crypt
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
#Timezone
d-i time/zone string EU/Paris
d-i apt-setup/extras boolean true
# Install the Ubuntu desktop.
tasksel tasksel/first multiselect ubuntu-desktop, openssh-server, vim
# On live DVDs, don't spend huge amounts of time removing substantial
# application packages pulled in by language packs. Given that we clearly
# have the space to include them on the DVD, they're useful and we might as
# well keep them installed.
ubiquity ubiquity/keep-installed string icedtea6-plugin openoffice.org