Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Forked from j4zzcat/dnsmasq.conf
Created January 30, 2022 01:00
Show Gist options
  • Save ThinGuy/a9a9e5067ebce469be06f289c900ff91 to your computer and use it in GitHub Desktop.
Save ThinGuy/a9a9e5067ebce469be06f289c900ff91 to your computer and use it in GitHub Desktop.
Preseed file for network console installation, ubuntu 19.10
interface=eth1
bind-interfaces
domain=pxe.local
dhcp-range=eth1,192.168.100.51,192.168.100.55,255.255.255.0,8h
dhcp-option=3,192.168.100.2 # gateway
dhcp-option=6,192.168.100.2 # dns
enable-tftp
tftp-root=/srv/tftp
dhcp-vendorclass=BIOS,PXEClient:Arch:00000
dhcp-vendorclass=UEFI32,PXEClient:Arch:00006
dhcp-vendorclass=UEFI,PXEClient:Arch:00007
dhcp-vendorclass=UEFI64,PXEClient:Arch:00009
dhcp-boot=net:BIOS,pxelinux.0
dhcp-boot=net:UEFI,grubnetx64.efi.signed
dhcp-boot=net:UEFI64,grubnetx64.efi.signed
# This file should be placed in /var/www/html/seed
# Assuming that the ubuntu-19.10-server-amd64.iso is mounted to /var/www/html/iso
d-i debconf/priority select critical
d-i auto-install/enabled boolean true
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string boris
d-i network-console/password password 123
d-i network-console/password-again password 123
d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.100.50
d-i mirror/http/directory string /iso
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select us
d-i pkgsel/install-language-support boolean false
d-i preseed/early_command string anna-install network-console
# This file should be placed in /srv/tftp/ubuntu-installer/amd64/boot-screens
prompt 0
timeout 10
# This file should be placed in /srv/tftp/ubuntu-installer/amd64/boot-screens
# Assuming that the netboot image was created with: cp -R /var/www/html/iso/install/netboot/* /srv/tftp
default install
label install
menu label ^Install
menu default
kernel ubuntu-installer/amd64/linux
append vga=788 initrd=ubuntu-installer/amd64/initrd.gz --- auto=true hostname=boris url=http://192.168.100.50/seed/network-console.seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment