Skip to content

Examples

Richard Spindler edited this page Apr 21, 2025 · 1 revision

Examples

Get usage/help information:

./guige.sh --help

Install required packages:

./guige.sh --action installrequired

Create an Ubuntu 22.04 ISO (UEFI - default - ZFS and LVM install options):

./guige.sh --action createiso --release 22.04

Create an Ubuntu 22.04 ISO (BIOS - LVM install option only):

./guige.sh --action createiso --release 22.04 --options bios

Create a test (and call it test) Ubuntu KVM VM (requires an Ubuntu 22.04 ISO to have been created)

./guige.sh --action createkvmvm --vmname test  --release 22.04
To start the VM and connect to console run the following commands:

sudo virsh start test ; sudo virsh console test

iso['delete']} a test KVM VM named test

./guige.sh --action deletekvmvm --vmname test

Create a KVM VM and specify the amount of RAM and number of CPUs

./guige.sh --action createkvmvm --vmname test  --release 22.04 --vmram 2G --vmcpus 4

Download base ISO (jammy)

./guige.sh --action getiso

Create ISO (performs all steps):

./guige.sh --action createiso

Run the previous command but in test mode (don't execute commands) to produce output suitable for creating a script:

./guige.sh --action createiso --testmode

Use docker to create amd64 ISOs on Apple Silicon:

./guige.sh --action createdockeriso --arch amd64

Just do autoinstall config and create ISO (assumes an ISO has been previously create and we are just updating the autoinstall config), enabling updates and installing additional packages (requires networkduring OS install)

./guige.sh --action justiso --options verbose --postinstall distupgrade

Build ISO using daily build (this is useful for ARM where daily builds tend to have more hardware support, e.g. being virtualised on Apple Silicon)

./guige.sh --action createiso --build daily-live

Create an ISO with a static IP configuration:

./guige.sh --action createiso --options verbose --ip 192.168.1.211 --cidr 24 --dns 8.8.8.8 --gateway 192.168.1.254

Create NFS export for ISO for server install via iDRAC:

./guige.sh --action createexport --bmcip 192.168.11.238

Create Ansible code to deploy ISO to Dell Server (but don't deploy):

./guige.sh --action createansible --bmcip 192.168.11.238 --bmcusername root --bmcpassword XXXXXXXX --arch amd64

Deploy ISO to Dell Server using Ansible:

./guige.sh --action runansible --bmcip 192.168.11.238 --bmcusername root --bmcpassword XXXXXXXX --arch amd64 --bootserverip 192.168.11.5

Deploy ISO to Dell Server using racadm:

./guige.sh --action runracadm --bmcip 192.168.11.238 --bmcusername root --bmcpassword XXXXXXXX --arch amd64 --bootserverip 192.168.11.5

Create an Ubuntu 23.04 ISO, using the daily-live server image as a basis, set the default username and password, and copy the local SSH keys into the cloud-init configuration if present:

./guige.sh --action createiso --release 23.04 --options verbose,sshkeys --build daily-live --username uadmin --password uadmin

List ISOs with efi in name:

./guige.sh --action listallisos --search efi

Clone this wiki locally