Kickstart entries - Ubuntu Linux
The Kickstart Entries tab lets you modify the contents of the kickstart file, which is a text file used in unattended installations of Ubuntu Linux.
For more information, see the following sections:
When you define an Ubuntu Linux system package, your input on the system package tabs is automatically converted into text in the first edit box at the top of the Kickstart Entries tab.
You can add entries to the Kickstart file and customize the file by editing existing entries.
Task | Procedure |
---|---|
To leave existing Kickstart entries unchanged and add entries | To leave the automatically generated entries in the first edit box unchanged and add entries for configuration elements that are not covered by the system package tabs, do the following:
|
To change existing Kickstart entries | To modify the automatically generated entries in the first edit box and add entries, do the following:
|
Portion of a Kickstart file for Ubuntu Linux 12/14
text
timezone --utc Africa/Abidjan
lang fr_FR
key --skip
keyboard us
network --bootproto dhcp --device NET_DEVICE --hostname HOST_NAME
url --url http://DATA_STORE_IP/DATA_STORE.VIRTUAL_DIR/UBUNTU12
firewall --disabled
zerombr
clearpart --all
bootloader --location=mbr
part / --size 1 --grow --fstype ext4 --ondisk sda
rootpw --iscrypted ROOT_PASSWORD
auth --useshakow --enablemd5
rebooot
%packages
@french-support
...
New in 23.2 TrueSight Server Automation supports the new YAML format for the kickstart file.
Portion of a Kickstart file for Ubuntu Linux 22.04
---
autoinstall:
version: 1
user-data:
disable_root: false
chpasswd:
expire: false
list:
- root:??ROOT_PASSWORD??
runcmd:
[sh /root/post-install.sh]
identity:
hostname: ??HOST_NAME??
username: root
password: ??ROOT_PASSWORD??
keyboard:
layout: us
locale: en_US.UTF-8
timezone: Africa/Abidjan
ssh:
allow-pw: true
authorized-keys: []
install-server: true
network:
network:
version: 2
renderer: networkd
ethernets:
ens32:
dhcp4: yes
storage:
layout:
name: direct
packages: []
mouse: null
late-commands:
- |
cat <<EOF | sudo tee /target/root/post-install.sh
#!/bin/bash
touch /root/provscript
rmmod floppy
sed -i '1i ' /etc/hostname
echo "rmmod floppy" >> /root/provscript
echo 127.0.0.1 >> /etc/hosts
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
sysctl -p
echo "cd /root" >> /root/provscript
echo "rmmod floppy" >> /root/provscript
echo "dpkg -i rscd.deb">> /root/provscript
echo "apt-get install -qq lib32z1">> /root/provscript
echo "cd /root" >> /root/provscript
echo "tar -xvf /root/bmilinux.tar">> /root/provscript
echo "chmod +x /root/bmilinux">> /root/provscript
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root">> /root/provscript
echo "/root/bmilinux PROV_SOCKET_APP_SERVER_IP ??MAC_ADDRESS?? >> /root/bmilinux.log" >> /root/provscript
echo "rm -f /root/bmilinux" >> /root/provscript
echo "rm -f /root/bmilinux.tar" >> /root/provscript
echo "rm -f /root/libblssl.so.1.0.0" >> /root/provscript
echo "rm -f /root/libblcrypto.so.1.0.0" >> /root/provscript
echo "rm -f /root/random.byt" >> /root/provscript
echo "exit 0" >> /root/provscript
cd /root;wget -nc -v -a /root/http.log http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/bmilinux.tar
cd /root;wget -nc -v -a /root/http.log http://??DATA_STORE_IP??/??DATA_STORE.VIRTUAL_DIR??/??RSCD_DIR??/rscd.deb
cd /root
sh /root/provscript
exit 0
EOF
- curtin in-target --target /target chmod 755 /root/post-install.sh
Proceed to the Post-install configuration - Ubuntu Linux tab.