Skip to content

Subiquity Client

Richard Spindler edited this page Oct 2, 2021 · 2 revisions

Subiquity is the OS deployment technology Ubuntu based Linux. It has replaced the traditional Preseed deployment method as of 20.04. Subiquity uses the live CD images for installation. It uses the cloud-init style yaml configuration files, thus the method is ci.

Server commands are run on the Deployment Server. The client configuration commands are run on the Deployment Server, and the client creation commands are run on the host.

The commands are split into three types:

  • Server configuration
    • Creating OS deployment repositories from the OS installation media (ISOs)
  • Client creation
    • Creating client VMs.
  • Client configuration
    • Creating client profiles
      • PXE / DHCP / BOOTP configuration
      • Install configurations
      • Post install scripts

This section refers to the client related commands. For the server related commands refer to the Subiquity Server Examples.

For some VM examples of client creation commands refer to either the VirtualBox Examples or VMware Fusion Examples.

Subiquity Client Examples

List Subiquity clients:

./modest.rb --action list --method ci 

Create a subiquity client client that uses UEFI PXE boot that uses biosdevnames and eth1 as a network device:

./modest.rb --action create --name r630p2 --ip 192.168.11.115 --mac 20:47:47:95:8d:85 --service ubuntu_2
0_04_3_live_x86_64 --verbose --defaults --nic eth1 --rootdisk sda --biostype efi --biosdevnames

Create a subiquity client client that uses BIOS PXE boot that uses biosdevnames and eth0 as a network device:

./modest.rb --action create --name r630p2 --ip 192.168.11.114 --mac 20:47:47:95:8d:84 --service ubuntu_2
0_04_3_live_x86_64 --verbose --defaults --nic eth0 --rootdisk sda

Delete Subiquity client:

./modest.rb --action delete --name r630p2

Subiquity Client Usage Examples

Create a subiquity client client that uses UEFI PXE boot that uses biosdevnames and eth1 as a network device:

./modest.rb --action create --name r630p2 --ip 192.168.11.115 --mac 20:47:47:95:8d:85 --service ubuntu_2
0_04_3_live_x86_64 --verbose --defaults --nic eth1 --rootdisk sda --biostype efi --biosdevnames

Information:  Setting option access to none
Information:  Setting option acl to private
Information:  Setting option action to create
Information:  Setting option admingid to 1000
Information:  Setting option admingroup to wheel
Information:  Setting option adminhome to /home/administrator
Information:  Setting option adminshell to /bin/bash
Information:  Setting option adminuid to 1000
Information:  Setting option adminuser to sysadmin
Information:  Setting option adminpassword to P455w0rd
Information:  Setting option auditsize to 8192
Information:  Setting option auditfs to ext4
Information:  Setting option aidir to /export/auto_install
Information:  Setting option aiport to 10081
Information:  Setting option ami to none
Information:  Setting option arch to x86_64
Information:  Setting option autostart to none
Information:  Setting option awsuser to none
Information:  Setting option bename to solaris
Information:  Setting option baserepodir to /export/repo
Information:  Setting option biosdevnames to true
Information:  Setting option biostype to efi
Information:  Setting option blkiotune to none
Information:  Setting option boot to disk
Information:  Setting option bootproto to none
Information:  Setting option bootfs to ext4
Information:  Setting option bootsize to 512
Information:  Setting option bridge to virbr0
Information:  Setting option bucket to modest.bucket
Information:  Setting option changelog to none
Information:  Setting option channel to none
Information:  Setting option check to perms
Information:  Setting option checksum to false
Information:  Setting option cidr to 24
Information:  Setting option client to none
Information:  Setting option clientdir to /export/clients
Information:  Setting option clientnic to none
Information:  Setting option clock to none
Information:  Setting option clone to none
Information:  Setting option cloudfile to none
Information:  Setting option command to none
Information:  Setting option comment to none
Information:  Setting option configfile to none
Information:  Setting option connect to none
Information:  Setting option console to none
Information:  Setting option container to none
Information:  Setting option containertype to ova
Information:  Setting option controller to sas
Information:  Setting option copykeys to true
Information:  Setting option country to AU
Information:  Setting option cpu to none
Information:  Setting option cputune to none
Information:  Setting option creds to /home/sysadmin/.aws/credentials
Information:  Setting option crypt to none
Information:  Setting option datastore to datastore1
Information:  Setting option desc to none
Information:  Setting option dhcp to false
Information:  Setting option dhcpdfile to none
Information:  Setting option dhcpdrange to none
Information:  Setting option defaults to true
Information:  Setting option destory-on-exit to none
Information:  Setting option dir to none
Information:  Setting option disk to none
Information:  Setting option disk1 to none
Information:  Setting option disk2 to none
Information:  Setting option diskmode to thin
Information:  Setting option domainname to lab.net
Information:  Setting option dry-run to none
Information:  Setting option email to none
Information:  Setting option epel to none
Information:  Setting option empty to none
Information:  Setting option enable to none
Information:  Setting option environment to en_US.UTF-8
Information:  Setting option events to none
Information:  Setting option exportdir to /export/modest
Information:  Setting option extra-args to none
Information:  Setting option features to none
Information:  Setting option file to none
Information:  Setting option filedir to none
Information:  Setting option files to files
Information:  Setting option filesystem to none
Information:  Setting option finish to none
Information:  Setting option force to false
Information:  Setting option format to VMDK
Information:  Setting option from to none
Information:  Setting option fusiondir to /home/sysadmin/Virtual Machines
Information:  Setting option gateway to none
Information:  Setting option gatewaynode to 1
Information:  Setting option graphics to none
Information:  Setting option grant to CanonicalUser
Information:  Setting option group to none
Information:  Setting option guest to none
Information:  Setting option headless to false
Information:  Setting option help to none
Information:  Setting option home to /home/sysadmin
Information:  Setting option homefs to ext4
Information:  Setting option homesize to 8192
Information:  Setting option host to none
Information:  Setting option hostnet to 192.168.1.0
Information:  Setting option host-device to none
Information:  Setting option hostdev to none
Information:  Setting option hostonlyip to 192.168.55.1
Information:  Setting option hosts to files dns
Information:  Setting option hvm to none
Information:  Setting option imagedir to /export/images
Information:  Setting option id to none
Information:  Setting option idmap to none
Information:  Setting option import to none
Information:  Setting option info to none
Information:  Setting option initrd-inject to none
Information:  Setting option inputfile to none
Information:  Setting option install to initial_install
Information:  Setting option interface to none
Information:  Setting option iothreads to none
Information:  Setting option ip to 192.168.11.115
Information:  Setting option ipfamily to ipv4
Information:  Setting option ips to none
Information:  Setting option isodir to /export/isos
Information:  Setting option ldomdir to /ldoms
Information:  Setting option jsonfile to none
Information:  Setting option karch to none
Information:  Setting option key to none
Information:  Setting option keydir to none
Information:  Setting option keyfile to none
Information:  Setting option keymap to US-English
Information:  Setting option keyname to r630p2-ap-southeast-2
Information:  Setting option kvmgroup to kvm
Information:  Setting option kvmgid to none
Information:  Setting option launchSecurity to none
Information:  Setting option license to none
Information:  Setting option livecd to false
Information:  Setting option locale to en_US.UTF-8
Information:  Setting option localfs to ext4
Information:  Setting option localsize to 8192
Information:  Setting option logfs to ext4
Information:  Setting option logsize to 8192
Information:  Setting option lxcdir to /export/clients/lxc
Information:  Setting option lxcimagedir to /export/clients/lxc/images
Information:  Setting option mac to 20:47:47:95:8d:85
Information:  Setting option machine to none
Information:  Setting option masked to false
Information:  Setting option memballoon to none
Information:  Setting option memdev to none
Information:  Setting option memory to 2048
Information:  Setting option memorybacking to none
Information:  Setting option memtune to none
Information:  Setting option metadata to none
Information:  Setting option method to none
Information:  Setting option mirror to au.archive.ubuntu.com
Information:  Setting option mirrordisk to false
Information:  Setting option mode to client
Information:  Setting option model to none
Information:  Setting option mountdir to /cdrom
Information:  Setting option name to r630p2
Information:  Setting option nameserver to 8.8.8.8
Information:  Setting option net to net0
Information:  Setting option netbootdir to none
Information:  Setting option netmask to 255.255.255.0
Information:  Setting option network to none
Information:  Setting option networkfile to none
Information:  Setting option nic to eth1
Information:  Setting option noautoconsole to none
Information:  Setting option nokeys to false
Information:  Setting option nosudo to none
Information:  Setting option noreboot to false
Information:  Setting option reboot to true
Information:  Setting option nosuffix to false
Information:  Setting option novncdir to /usr/local/novnc
Information:  Setting option number to 1,1
Information:  Setting option object to uploads
Information:  Setting option opencsw to http://mirror.opencsw.org/opencsw/
Information:  Setting option os-type to none
Information:  Setting option os-variant to none
Information:  Setting option output to text
Information:  Setting option outputfile to none
Information:  Setting option packages to none
Information:  Setting option packer to none
Information:  Setting option packerversion to 1.7.2
Information:  Setting option panic to none
Information:  Setting option parallel to none
Information:  Setting option param to none
Information:  Setting option paravirt to none
Information:  Setting option perms to none
Information:  Setting option pkgdir to /export/pkgs
Information:  Setting option pm to none
Information:  Setting option ports to none
Information:  Setting option post to none
Information:  Setting option prefix to none
Information:  Setting option print-xml to none
Information:  Setting option proto to tcp
Information:  Setting option publisher to none
Information:  Setting option publisherhost to 192.168.11.98
Information:  Setting option publisherport to 10081
Information:  Setting option publisherurl to none
Information:  Setting option pxebootdir to none
Information:  Setting option pxe to none
Information:  Setting option qemu-commandline to none
Information:  Setting option redirdev to none
Information:  Setting option release to none
Information:  Setting option region to ap-southeast-2
Information:  Setting option repo to none
Information:  Setting option repodir to /export/repo
Information:  Setting option resource to none
Information:  Setting option rng to none
Information:  Setting option rootdisk to sda
Information:  Setting option rootfs to ext4
Information:  Setting option rootsize to 8192
Information:  Setting option rootuser to none
Information:  Setting option rootpassword to P455w0rd
Information:  Setting option rpoolname to rpool
Information:  Setting option rules to none
Information:  Setting option scratchfs to ext4
Information:  Setting option scratchsize to 8192
Information:  Setting option scriptname to modest
Information:  Setting option search to all
Information:  Setting option seclabel to none
Information:  Setting option secret to none
Information:  Setting option serial to false
Information:  Setting option sharedfolder to /home/sysadmin/Documents
Information:  Setting option shell to none
Information:  Setting option size to 100G
Information:  Setting option server to 192.168.11.98
Information:  Setting option serveradmin to none
Information:  Setting option servernetwork to vmnetwork1
Information:  Setting option servernetmask to none
Information:  Setting option serverpassword to P455w0rd
Information:  Setting option service to ubuntu_20_04_3_live_x86_64
Information:  Setting option setup to none
Information:  Setting option share to none
Information:  Setting option sitename to lab
Information:  Setting option smartcard to none
Information:  Setting option snapshot to none
Information:  Setting option socker to none
Information:  Setting option sound to none
Information:  Setting option splitvols to false
Information:  Setting option sshkeyfile to /home/sysadmin/.ssh/id_rsa.pub
Information:  Setting option sshport to 22
Information:  Setting option ssopassword to none
Information:  Setting option stack to none
Information:  Setting option strict to none
Information:  Setting option sudo to true
Information:  Setting option sudogroup to sudo
Information:  Setting option suffix to modest
Information:  Setting option sysid to none
Information:  Setting option sysinfo to none
Information:  Setting option target to vmware
Information:  Setting option techpreview to false
Information:  Setting option terminal to sun
Information:  Setting option test to false
Information:  Setting option tftpdir to /etc/netboot
Information:  Setting option time to Eastern Standard Time
Information:  Setting option timeserver to 0.au.pool.ntp.org
Information:  Setting option timezone to Australia/Victoria
Information:  Setting option tmpfs to ext4
Information:  Setting option tmpsize to 8192
Information:  Setting option to to none
Information:  Setting option tpm to none
Information:  Setting option transient to none
Information:  Setting option trunk to stable
Information:  Setting option type to none
Information:  Setting option uid to 1000
Information:  Setting option unattended to none
Information:  Setting option unmasked to false
Information:  Setting option usrfs to ext4
Information:  Setting option usrsize to 8192
Information:  Setting option utc to off
Information:  Setting option value to none
Information:  Setting option varfs to ext4
Information:  Setting option varsize to 8192
Information:  Setting option vcpus to 1
Information:  Setting option verbose to true
Information:  Setting option version to none
Information:  Setting option video to none
Information:  Setting option virtdir to none
Information:  Setting option virt-type to none
Information:  Setting option vlanid to 0
Information:  Setting option vm to none
Information:  Setting option vmdir to none
Information:  Setting option vmdkfile to none
Information:  Setting option vmnet to eth0
Information:  Setting option vmnetdhcp to false
Information:  Setting option vmnetwork to hostonly
Information:  Setting option vmnic to eth0
Information:  Setting option vmtools to disable
Information:  Setting option vmxfile to none
Information:  Setting option vnc to true
Information:  Setting option vncpassword to P455w0rd
Information:  Setting option vsock to none
Information:  Setting option vswitch to vSwitch0
Information:  Setting option wait to none
Information:  Setting option watchdog to none
Information:  Setting option workdir to /home/sysadmin/.modest
Information:  Setting option yes to false
Information:  Setting option zone to none
Information:  Setting option zonedir to /zones
Information:  Setting option zpool to none
Information:  Setting option host-os-name to Linux
Information:  Setting option host-os-arch to x86_64
Information:  Setting option host-os-machine to x86_64
Information:  Setting option host-os-uname to Ubuntu
Information:  Setting option host-os-release to 20.04
Information:  Setting option host-os-packages to ["", "Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend", "Err?=(none)/Reinst-required", "Name", "accountsservice", "adduser", "alsa-topology-conf", "alsa-ucm-conf", "amd64-microcode", "apache2", "apache2-bin", "apache2-data", "apache2-utils", "apparmor", "apport", "apport-symptoms", "apt", "apt-utils", "at", "base-files", "base-passwd", "bash", "bash-completion", "bc", "bcache-tools", "bind9-dnsutils", "bind9-host", "bind9-libs:amd64", "binutils", "binutils-common:amd64", "binutils-x86-64-linux-gnu", "bolt", "bsdmainutils", "bsdutils", "btrfs-progs", "build-essential", "busybox-initramfs", "busybox-static", "byobu", "bzip2", "ca-certificates", "cloud-guest-utils", "cloud-initramfs-copymods", "cloud-initramfs-dyn-netconf", "command-not-found", "console-setup", "console-setup-linux", "coreutils", "cpio", "cpp", "cpp-9", "crda", "cron", "cryptsetup", "cryptsetup-bin", "cryptsetup-initramfs", "cryptsetup-run", "curl", "dash", "dbus", "dbus-user-session", "dconf-gsettings-backend:amd64", "dconf-service", "debconf", "debconf-i18n", "debianutils", "diffutils", "dirmngr", "distro-info", "distro-info-data", "dmeventd", "dmidecode", "dmsetup", "dosfstools", "dpkg", "dpkg-dev", "e2fsprogs", "ed", "efibootmgr", "eject", "ethtool", "fakeroot", "fdisk", "file", "finalrd", "findutils", "fonts-lato", "fonts-ubuntu-console", "friendly-recovery", "ftp", "fuse", "fwupd", "fwupd-signed", "g++", "g++-9", "gawk", "gcc", "gcc-10-base:amd64", "gcc-9", "gcc-9-base:amd64", "gdisk", "gettext-base", "gir1.2-glib-2.0:amd64", "gir1.2-packagekitglib-1.0", "git", "git-man", "glib-networking:amd64", "glib-networking-common", "glib-networking-services", "gnupg", "gnupg-l10n", "gnupg-utils", "gpg", "gpg-agent", "gpg-wks-client", "gpg-wks-server", "gpgconf", "gpgsm", "gpgv", "grep", "groff-base", "grub-common", "grub-efi-amd64-bin", "grub-efi-amd64-signed", "grub-gfxpayload-lists", "grub-pc", "grub-pc-bin", "grub2-common", "gsettings-desktop-schemas", "gzip", "hdparm", "hostname", "htop", "icu-devtools", "info", "init", "init-system-helpers", "initramfs-tools", "initramfs-tools-bin", "initramfs-tools-core", "install-info", "installation-report", "intel-microcode", "iproute2", "iptables", "iputils-ping", "iputils-tracepath", "irqbalance", "isc-dhcp-client", "isc-dhcp-common", "isc-dhcp-server", "iso-codes", "iucode-tool", "iw", "javascript-common", "kbd", "keyboard-configuration", "keyutils", "klibc-utils", "kmod", "kpartx", "krb5-locales", "landscape-common", "language-pack-en", "language-pack-en-base", "language-selector-common", "laptop-detect", "less", "libaccountsservice0:amd64", "libacl1:amd64", "libaio1:amd64", "libalgorithm-diff-perl", "libalgorithm-diff-xs-perl", "libalgorithm-merge-perl", "libapparmor1:amd64", "libappstream4:amd64", "libapr1:amd64", "libaprutil1:amd64", "libaprutil1-dbd-sqlite3:amd64", "libaprutil1-ldap:amd64", "libapt-pkg6.0:amd64", "libarchive13:amd64", "libargon2-1:amd64", "libasan5:amd64", "libasn1-8-heimdal:amd64", "libasound2:amd64", "libasound2-data", "libassuan0:amd64", "libatasmart4:amd64", "libatm1:amd64", "libatomic1:amd64", "libattr1:amd64", "libaudit-common", "libaudit1:amd64", "libbinutils:amd64", "libblkid1:amd64", "libblockdev-crypto2:amd64", "libblockdev-fs2:amd64", "libblockdev-loop2:amd64", "libblockdev-part-err2:amd64", "libblockdev-part2:amd64", "libblockdev-swap2:amd64", "libblockdev-utils2:amd64", "libblockdev2:amd64", "libbrotli1:amd64", "libbsd0:amd64", "libbz2-1.0:amd64", "libc-bin", "libc-dev-bin", "libc6:amd64", "libc6-dev:amd64", "libcanberra0:amd64", "libcap-ng0:amd64", "libcap2:amd64", "libcap2-bin", "libcbor0.6:amd64", "libcc1-0:amd64", "libcom-err2:amd64", "libcrypt-dev:amd64", "libcrypt1:amd64", "libcryptsetup12:amd64", "libctf-nobfd0:amd64", "libctf0:amd64", "libcurl3-gnutls:amd64", "libcurl4:amd64", "libdb5.3:amd64", "libdbus-1-3:amd64", "libdconf1:amd64", "libdebconfclient0:amd64", "libdevmapper-event1.02.1:amd64", "libdevmapper1.02.1:amd64", "libdns-export1109", "libdpkg-perl", "libdrm-common", "libdrm2:amd64", "libedit2:amd64", "libefiboot1:amd64", "libefivar1:amd64", "libelf1:amd64", "liberror-perl", "libestr0:amd64", "libevent-2.1-7:amd64", "libexpat1:amd64", "libext2fs2:amd64", "libfakeroot:amd64", "libfastjson4:amd64", "libfdisk1:amd64", "libffi7:amd64", "libfido2-1:amd64", "libfile-fcntllock-perl", "libfl2:amd64", "libfreetype6:amd64", "libfribidi0:amd64", "libfuse2:amd64", "libfwupd2:amd64", "libfwupdplugin1:amd64", "libgcab-1.0-0:amd64", "libgcc-9-dev:amd64", "libgcc-s1:amd64", "libgcrypt20:amd64", "libgdbm-compat4:amd64", "libgdbm6:amd64", "libgirepository-1.0-1:amd64", "libglib2.0-0:amd64", "libglib2.0-bin", "libglib2.0-data", "libgmp10:amd64", "libgnutls30:amd64", "libgomp1:amd64", "libgpg-error0:amd64", "libgpgme11:amd64", "libgpm2:amd64", "libgssapi-krb5-2:amd64", "libgssapi3-heimdal:amd64", "libgstreamer1.0-0:amd64", "libgudev-1.0-0:amd64", "libgusb2:amd64", "libhcrypto4-heimdal:amd64", "libheimbase1-heimdal:amd64", "libheimntlm0-heimdal:amd64", "libhogweed5:amd64", "libhx509-5-heimdal:amd64", "libicu-dev:amd64", "libicu66:amd64", "libidn2-0:amd64", "libip4tc2:amd64", "libip6tc2:amd64", "libirs-export161", "libisc-export1105:amd64", "libisccfg-export163", "libisl22:amd64", "libisns0:amd64", "libitm1:amd64", "libjansson4:amd64", "libjcat1:amd64", "libjs-jquery", "libjson-c4:amd64", "libjson-glib-1.0-0:amd64", "libjson-glib-1.0-common", "libk5crypto3:amd64", "libkeyutils1:amd64", "libklibc:amd64", "libkmod2:amd64", "libkrb5-26-heimdal:amd64", "libkrb5-3:amd64", "libkrb5support0:amd64", "libksba8:amd64", "libldap-2.4-2:amd64", "libldap-common", "liblmdb0:amd64", "liblocale-gettext-perl", "liblsan0:amd64", "libltdl7:amd64", "liblua5.2-0:amd64", "liblvm2cmd2.03:amd64", "liblz4-1:amd64", "liblzma5:amd64", "liblzo2-2:amd64", "libmagic-mgc", "libmagic1:amd64", "libmaxminddb0:amd64", "libmnl0:amd64", "libmount1:amd64", "libmpc3:amd64", "libmpdec2:amd64", "libmpfr6:amd64", "libmspack0:amd64", "libncurses-dev:amd64", "libncurses6:amd64", "libncursesw6:amd64", "libnetfilter-conntrack3:amd64", "libnetplan0:amd64", "libnettle7:amd64", "libnewt0.52:amd64", "libnfnetlink0:amd64", "libnfsidmap2:amd64", "libnftnl11:amd64", "libnghttp2-14:amd64", "libnl-3-200:amd64", "libnl-genl-3-200:amd64", "libnpth0:amd64", "libnspr4:amd64", "libnss-systemd:amd64", "libnss3:amd64", "libntfs-3g883", "libnuma1:amd64", "libogg0:amd64", "libp11-kit0:amd64", "libpackagekit-glib2-18:amd64", "libpam-cap:amd64", "libpam-modules:amd64", "libpam-modules-bin", "libpam-runtime", "libpam-systemd:amd64", "libpam0g:amd64", "libparted-fs-resize0:amd64", "libparted2:amd64", "libpcap0.8:amd64", "libpci3:amd64", "libpcre2-8-0:amd64", "libpcre3:amd64", "libperl5.30:amd64", "libpipeline1:amd64", "libplymouth5:amd64", "libpng16-16:amd64", "libpolkit-agent-1-0:amd64", "libpolkit-gobject-1-0:amd64", "libpopt0:amd64", "libprocps8:amd64", "libproxy1v5:amd64", "libpsl5:amd64", "libpython3-stdlib:amd64", "libpython3.8:amd64", "libpython3.8-minimal:amd64", "libpython3.8-stdlib:amd64", "libquadmath0:amd64", "libreadline-dev:amd64", "libreadline5:amd64", "libreadline8:amd64", "libroken18-heimdal:amd64", "librpm8", "librpmio8", "librtmp1:amd64", "libruby2.7:amd64", "libsasl2-2:amd64", "libsasl2-modules:amd64", "libsasl2-modules-db:amd64", "libseccomp2:amd64", "libselinux1:amd64", "libsemanage-common", "libsemanage1:amd64", "libsepol1:amd64", "libsgutils2-2", "libsigsegv2:amd64", "libslang2:amd64", "libsmartcols1:amd64", "libsmbios-c2", "libsodium23:amd64", "libsoup2.4-1:amd64", "libsqlite3-0:amd64", "libsqlite3-dev:amd64", "libss2:amd64", "libssh-4:amd64", "libssl-dev:amd64", "libssl1.1:amd64", "libstdc++-9-dev:amd64", "libstdc++6:amd64", "libstemmer0d:amd64", "libsystemd0:amd64", "libtasn1-6:amd64", "libtdb1:amd64", "libtext-charwidth-perl", "libtext-iconv-perl", "libtext-wrapi18n-perl", "libtinfo6:amd64", "libtirpc-common", "libtirpc3:amd64", "libtsan0:amd64", "libtss2-esys0", "libubsan1:amd64", "libuchardet0:amd64", "libudev1:amd64", "libudisks2-0:amd64", "libunistring2:amd64", "libunwind8:amd64", "liburcu6:amd64", "libusb-1.0-0:amd64", "libutempter0:amd64", "libuuid1:amd64", "libuv1:amd64", "libvolume-key1", "libvorbis0a:amd64", "libvorbisfile3:amd64", "libwind0-heimdal:amd64", "libwrap0:amd64", "libx11-6:amd64", "libx11-data", "libxau6:amd64", "libxcb1:amd64", "libxdmcp6:amd64", "libxext6:amd64", "libxml2:amd64", "libxml2-dev:amd64", "libxmlb1:amd64", "libxmlsec1:amd64", "libxmlsec1-openssl:amd64", "libxmuu1:amd64", "libxslt1-dev:amd64", "libxslt1.1:amd64", "libxtables12:amd64", "libyaml-0-2:amd64", "libzstd1:amd64", "linux-base", "linux-firmware", "linux-generic", "linux-headers-5.4.0-42", "linux-headers-5.4.0-42-generic", "linux-headers-5.4.0-86", "linux-headers-5.4.0-86-generic", "linux-headers-generic", "linux-image-5.4.0-42-generic", "linux-image-5.4.0-86-generic", "linux-image-generic", "linux-libc-dev:amd64", "linux-modules-5.4.0-42-generic", "linux-modules-5.4.0-86-generic", "linux-modules-extra-5.4.0-42-generic", "linux-modules-extra-5.4.0-86-generic", "locales", "login", "logrotate", "logsave", "lsb-base", "lsb-release", "lshw", "lsof", "ltrace", "lvm2", "lxd-agent-loader", "lz4", "make", "man-db", "manpages", "manpages-dev", "mawk", "mdadm", "mime-support", "mokutil", "motd-news-config", "mount", "mtr-tiny", "multipath-tools", "nano", "ncurses-base", "ncurses-bin", "ncurses-term", "net-tools", "netbase", "netcat-openbsd", "netplan.io", "networkd-dispatcher", "nfs-common", "nfs-kernel-server", "ntfs-3g", "open-iscsi", "open-vm-tools", "openssh-client", "openssh-server", "openssh-sftp-server", "openssl", "os-prober", "overlayroot", "packagekit", "packagekit-tools", "parted", "passwd", "pastebinit", "patch", "pci.ids", "pciutils", "perl", "perl-base", "perl-modules-5.30", "pinentry-curses", "plymouth", "plymouth-theme-ubuntu-text", "policykit-1", "pollinate", "popularity-contest", "powermgmt-base", "procps", "psmisc", "publicsuffix", "pxelinux", "python-apt-common", "python3", "python3-apport", "python3-apt", "python3-attr", "python3-automat", "python3-blinker", "python3-certifi", "python3-cffi-backend", "python3-chardet", "python3-click", "python3-colorama", "python3-commandnotfound", "python3-configobj", "python3-constantly", "python3-cryptography", "python3-dbus", "python3-debconf", "python3-debian", "python3-distro", "python3-distro-info", "python3-distupgrade", "python3-entrypoints", "python3-gdbm:amd64", "python3-gi", "python3-hamcrest", "python3-httplib2", "python3-hyperlink", "python3-idna", "python3-incremental", "python3-jwt", "python3-keyring", "python3-launchpadlib", "python3-lazr.restfulclient", "python3-lazr.uri", "python3-minimal", "python3-nacl", "python3-netifaces", "python3-newt:amd64", "python3-oauthlib", "python3-openssl", "python3-pexpect", "python3-pkg-resources", "python3-problem-report", "python3-ptyprocess", "python3-pyasn1", "python3-pyasn1-modules", "python3-pymacaroons", "python3-requests", "python3-requests-unixsocket", "python3-secretstorage", "python3-service-identity", "python3-simplejson", "python3-six", "python3-software-properties", "python3-systemd", "python3-twisted", "python3-twisted-bin:amd64", "python3-update-manager", "python3-urllib3", "python3-wadllib", "python3-yaml", "python3-zope.interface", "python3.8", "python3.8-minimal", "rake", "rbenv", "readline-common", "rpcbind", "rpm-common", "rpm2cpio", "rsync", "rsyslog", "ruby", "ruby-build", "ruby-minitest", "ruby-net-telnet", "ruby-power-assert", "ruby-test-unit", "ruby-xmlrpc", "ruby2.7", "rubygems-integration", "run-one", "sbsigntool", "screen", "secureboot-db", "sed", "sensible-utils", "setserial", "sg3-utils", "sg3-utils-udev", "shared-mime-info", "shim", "shim-signed", "snapd", "software-properties-common", "sosreport", "sound-theme-freedesktop", "squashfs-tools", "ssh-import-id", "ssl-cert", "strace", "sudo", "syslinux-common", "systemd", "systemd-sysv", "systemd-timesyncd", "sysvinit-utils", "tar", "tasksel", "tasksel-data", "tcpdump", "telnet", "tftpd-hpa", "thin-provisioning-tools", "time", "tmux", "tpm-udev", "tzdata", "ubuntu-advantage-tools", "ubuntu-keyring", "ubuntu-minimal", "ubuntu-release-upgrader-core", "ubuntu-server", "ubuntu-standard", "ucf", "udev", "udisks2", "ufw", "unattended-upgrades", "unzip", "update-manager-core", "update-notifier-common", "usb.ids", "usbutils", "util-linux", "uuid-runtime", "vim", "vim-common", "vim-runtime", "vim-tiny", "wget", "whiptail", "wireless-regdb", "xauth", "xdg-user-dirs", "xfsprogs", "xkb-data", "xxd", "xz-utils", "zerofree", "zip", "zlib1g:amd64", "zlib1g-dev:amd64"]
Information:  Setting option host-os-memory to 3
Information:  Setting option host-os-cpu to 2
Information:  Setting option host-os to Linux bootserver11 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Information:  Setting option host-os-major to 5
Information:  Setting option os-minor to 4
Information:  Setting option valid-acl to ["private", "public-read", "public-read-write", "authenticated-read"]
Information:  Setting option valid-action to ["add", "boot", "build", "connect", "check", "clone", "create", "delete", "deploy", "download", "export", "get", "halt", "info", "import", "list", "migrate", "shutdown", "start", "stop", "upload", "usage"]
Information:  Setting option valid-arch to ["x86_64", "i386", "sparc"]
Information:  Setting option valid-console to ["text", "console", "x11", "headless", "pty", "vnc"]
Information:  Setting option valid-format to ["VMDK", "RAW", "VHD"]
Information:  Setting option valid-method to ["ks", "xb", "vs", "ai", "js", "ps", "lxc", "ay", "ci", "image", "ldom", "cdom", "gdom"]
Information:  Setting option valid-mode to ["client", "server", "osx"]
Information:  Setting option valid-os to ["Solaris", "VMware-VMvisor", "CentOS", "OracleLinux", "SLES", "openSUSE", "NT", "Ubuntu", "Debian", "Fedora", "RHEL", "SL", "Purity", "Windows", "JeOS", "AMZNL"]
Information:  Setting option valid-output to ["text", "html"]
Information:  Setting option valid-type to ["iso", "flar", "ova", "snapshot", "service", "boot", "cdrom", "net", "disk", "client", "dvd", "server", "ansible", "vcsa", "packer", "docker", "amazon-ebs", "image", "ami", "instance", "bucket", "acl", "snapshot", "key", "sg", "dhcp", "keypair", "ssh", "stack", "object", "cf", "cloudformation", "public", "private", "securitygroup", "iprule", "pxe", "nic", "network"]
Information:  Setting option valid-target to ["citrix", "vmware", "windows"]
Information:  Setting option valid-vm to ["vbox", "lxc", "docker", "aws", "qemu", "kvm", "xen", "fusion"]
Information:  Setting option dmidecode to /sbin/dmidecode
Information:  Setting option host-os-platform to  Product Name: Standard PC (Q35 + ICH9, 2009)
Information:  Setting option lsb to /bin/lsb_release
Information:  Setting option host-os-version to 20
Information:  Setting option vmgateway to 192.168.55.1
Information:  Setting option basedir to
Information:  Setting option swapfs to linux-swap
Information:  Setting option swapsize to 8192
Information:  Setting option aibasedir to /export/auto_install
Information:  Setting option apacheallow to
Information:  Setting option autoreg to disable
Information:  Setting option script to ./modest.rb
Information:  Setting option scriptfile to /home/sysadmin/Code/modest/modest.rb
Information:  Setting option scriptdir to /home/sysadmin/Code/modest
Information:  Setting option adminname to Sys Admin
Information:  Setting option apachedir to /etc/apache2
Information:  Setting option backupsuffix to .pre-modest
Information:  Setting option checksum to false
Information:  Setting option clientrootdir to /export/clients
Information:  Setting option cluster to SUNWCprog
Information:  Setting option dhcp to false
Information:  Setting option disableautoconf to true
Information:  Setting option download to true
Information:  Setting option dpool to dpool
Information:  Setting option dryrun to false
Information:  Setting option executehost to localhost
Information:  Setting option force to false
Information:  Setting option hardwareversion to 8
Information:  Setting option headless to false
Information:  Setting option hostname to bootserver11
Information:  Setting option hostip to 192.168.11.98
Information:  Setting option httpport to 8888
Information:  Setting option instances to 1,1
Information:  Setting option keyboard to US
Information:  Setting option language to en_US
Information:  Setting option livecd to false
Information:  Setting option local to local
Information:  Setting option maasadmin to root
Information:  Setting option maasemail to root@192.168.11.98
Information:  Setting option maaspassword to P455w0rd
Information:  Setting option manifest to modest
Information:  Setting option masked to false
Information:  Setting option mirrordir to /ubuntu
Information:  Setting option mirrorurl to au.archive.ubuntu.com/ubuntu
Information:  Setting option mirrordisk to false
Information:  Setting option nameservice to none
Information:  Setting option nfs4domain to dynamic
Information:  Setting option nokeys to false
Information:  Setting option nomirror to true
Information:  Setting option nosuffix to false
Information:  Setting option noreboot to false
Information:  Setting option organisation to Multi OS Deployment Server
Information:  Setting option ovftarurl to https://github.com/richardatlateralblast/ottar/blob/master/vmware-ovftools.tar.gz?raw=true
Information:  Setting option ovfdmgurl to https://github.com/richardatlateralblast/ottar/blob/master/VMware-ovftool-4.1.0-2459827-mac.x64.dmg?raw=true
Information:  Setting option rpm2cpiobin to
Information:  Setting option security to none
Information:  Setting option severadmin to root
Information:  Setting option serversize to small
Information:  Setting option serial to false
Information:  Setting option slice to 8192
Information:  Setting option sharedmount to /mnt
Information:  Setting option splitvols to false
Information:  Setting option sshconfig to /home/sysadmin/.ssh/config
Information:  Setting option sshenadble to true
Information:  Setting option sshkeydir to /home/sysadmin/.ssh
Information:  Setting option sshtimeout to 20m
Information:  Setting option systemlocale to C
Information:  Setting option techpreview to false
Information:  Setting option text to false
Information:  Setting option tmpdir to /tmp
Information:  Setting option thindiskmode to true
Information:  Setting option ubuntumirror to mirror.aarnet.edu.au
Information:  Setting option ubuntudir to /ubuntu
Information:  Setting option uuid to
Information:  Setting option unmasked to false
Information:  Setting option usemirror to false
Information:  Setting option user to sysadmin
Information:  Setting option vboxadditions to /Applications/VirtualBox.app//Contents/MacOS/VBoxGuestAdditions.iso
Information:  Setting option vboxmanage to /usr/local/bin/VBoxManage
Information:  Setting option vcpu to 1
Information:  Setting option vgname to vg01
Information:  Setting option vmntools to false
Information:  Setting option vncport to 5900
Information:  Setting option vmnetdhcp to false
Information:  Setting option wikidir to /home/sysadmin/Code/modest/modest.wiki
Information:  Setting option wikiurl to https://github.com/lateralblast/mode.wiki.git
Information:  Setting option backupdir to /home/sysadmin/.modest/backup
Information:  Setting option bindir to /home/sysadmin/.modest/bin
Information:  Setting option rpmdir to /home/sysadmin/.modest/rpms
Information:  Setting option yes to false
Information:  Setting option zpoolname to rpool
Information:  Setting option languge to en
Information:  Setting option test to false
Setting:  Client name to r630p2
Information:  Setting client MAC address to 20:47:47:95:8d:85
Information:  Setting clone name to none
Information:  Setting install service to ubuntu_20_04_3_live_x86_64
Information:  Setting Operating System version to none
Information:  Setting model to vmware
Checking: DHCPd config for subnet entry
Executing:  sudo sh -c 'cat /etc/dhcp/dhcpd.conf | grep -v '^#' |grep 'subnet 192.168.11.0''
Output:   subnet 192.168.11.0 netmask 255.255.255.0 {
Information:  Checking base repository directory
Information:  Home directory /home/sysadmin
Information:  Setting work directory to /home/sysadmin/.modest
Information:  Setting temporary directory to /home/sysadmin/.modest
Information:  Checking work directory
Information:  Setting apache allow range to 192.168.11 192.168.1.0
Information:  Checking tftpd-hpa is installed
Executing:  sudo sh -c 'dpkg -l | grep 'tftpd-hpa' |grep 'ii''
Output:   ii  tftpd-hpa                            5.2+20150808-1ubuntu4                 amd64        HPA's tftp server
Information:  Checking tftp is installed
Executing:  sudo sh -c 'service tftp status |grep dead'
Unit tftp.service could not be found.
Information:  Checking isc-dhcp-server is installed
Executing:  sudo sh -c 'dpkg -l | grep 'isc-dhcp-server' |grep 'ii''
Output:   ii  isc-dhcp-server                      4.4.1-2.1ubuntu5.20.04.2              amd64        ISC DHCP server for automatic IP address assignment
Information:  Checking isc-dhcp-server is installed
Executing:  sudo sh -c 'service isc-dhcp-server status |grep dead'
Checking: DHCPd config for subnet entry
Executing:  sudo sh -c 'cat /etc/dhcp/dhcpd.conf | grep -v '^#' |grep 'subnet 192.168.11.0''
Output:   subnet 192.168.11.0 netmask 255.255.255.0 {
Information:  Checking PXE directory
Information:  Checking tftpd-hpa is installed
Executing:  sudo sh -c 'dpkg -l | grep 'tftpd-hpa' |grep 'ii''
Output:   ii  tftpd-hpa                            5.2+20150808-1ubuntu4                 amd64        HPA's tftp server
Information:  Checking tftp is installed
Executing:  sudo sh -c 'service tftp status |grep dead'
Unit tftp.service could not be found.
Information:  Restarting Service tftpd-hpa
Executing:  sudo sh -c 'systemctl restart tftpd-hpa'
Information:  Checking rpm is installed
Executing:  sudo sh -c 'dpkg -l | grep 'rpm' |grep 'ii''
Output:   ii  librpm8                              4.14.2.1+dfsg1-1build2                amd64        RPM shared library
Output:   ii  librpmio8                            4.14.2.1+dfsg1-1build2                amd64        RPM IO shared library
Output:   ii  rpm-common                           4.14.2.1+dfsg1-1build2                amd64        common files for RPM
Output:   ii  rpm2cpio                             4.14.2.1+dfsg1-1build2                amd64        tool to convert RPM package to CPIO archive
Information:  Checking work bin directory
Information:  Checking /home/sysadmin/.modest directory
Information:  Checking /home/sysadmin/.modest/bin directory
Information:  Checking /home/sysadmin/.modest/rpms directory
Information:  Checking /home/sysadmin/.modest/backup directory
Information:  Copying PXE boot files from /export/repo/ubuntu_20_04_3_live_x86_64/install to /srv/tftp/ubuntu_20_04_3_live_x86_64/images/pxeboot
Executing:  sudo sh -c 'cd /srv/tftp/ubuntu_20_04_3_live_x86_64/images/pxeboot ; cp -r /export/repo/ubuntu_20_04_3_live_x86_64/install/* . '
Checking: Apache confing file /etc/apache2/apache2.conf for clients
Executing:  sudo sh -c 'cat /etc/apache2/apache2.conf |grep '/clients''
Output:   <Directory /export/clients>
Output:   Alias /clients /export/clients
Output:   <Directory /export/clients/ubuntu_20_04_3_live_x86_64/r630p2>
Output:   Alias /r630p2 /export/clients/ubuntu_20_04_3_live_x86_64/r630p2
Output:   <Directory /export/clients/ubuntu_20_04_3_live_x86_64/r620p2>
Output:   Alias /r620p2 /export/clients/ubuntu_20_04_3_live_x86_64/r620p2
Information:  Checking Apache Version
Executing:  sudo sh -c 'apache2 -V 2>&1 |grep version |tail -1'
Output:   Server version: Apache/2.4.41 (Ubuntu)
Information Enabling Service apache2
Executing:  sudo sh -c 'systemctl enable apache2'
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Information Starting Service apache2
Executing:  sudo sh -c 'systemctl start apache2'
Information:  Restarting Service apache2
Executing:  sudo sh -c 'systemctl restart apache2'
Removing: File /export/clients/ubuntu_20_04_3_live_x86_64/r630p2/user-data
Executing:  sudo sh -c 'rm /export/clients/ubuntu_20_04_3_live_x86_64/r630p2/user-data'
Information:  Processing value for headless_mode
Information:  Setting parameter headless_mode to false
Information:  Processing value for language
Information:  Setting parameter language to en
Information:  Processing value for country
Information:  Setting parameter country to AU
Information:  Processing value for locale
Information:  Setting parameter locale to en_US.UTF-8
Information:  Processing value for console
Information:  Processing value for layout
Information:  Processing value for disable_autoconfig
Information:  Setting parameter disable_autoconfig to true
Information:  Processing value for disable_dhcp
Information:  Setting parameter disable_dhcp to true
Information:  Processing value for admin_fullname
Information:  Setting parameter admin_fullname to Sys Admin
Information:  Processing value for admin_username
Information:  Setting parameter admin_username to sysadmin
Information:  Processing value for admin_password
Information:  Setting parameter admin_password to P455w0rd
Information:  Processing value for admin_crypt
Information:  Setting parameter admin_crypt to $1$KsT17I1T$bJ1D2Nz4rPdMuxJYJybpV.
Information:  Setting parameter admin_crypt to $1$qcFGnPsu$nJ7pJXdH7pOk4OHYVXsKG/
Information:  Processing value for admin_groups
Information:  Setting parameter admin_groups to wheel
Information:  Processing value for locale
Information:  Setting parameter locale to en_US.UTF-8
Information:  Processing value for interface
Information:  Setting parameter interface to eth1
Information:  Processing value for interface
Information:  Setting parameter interface to eth1
Information:  Processing value for nameserver
Information:  Setting parameter nameserver to 8.8.8.8
Information:  Processing value for ip
Information:  Setting parameter ip to 192.168.11.115
Information:  Processing value for cidr
Information:  Setting parameter cidr to 24
Information:  Processing value for netmask
Information:  Setting parameter netmask to 255.255.255.0
Information:  Processing value for gateway
Information:  Setting parameter gateway to 192.168.11.254
Information:  Processing value for broadcast
Information:  Setting parameter broadcast to 192.168.11.255
Information:  Processing value for network_address
Information:  Setting parameter network_address to 192.168.11.0
Information:  Processing value for static
Information:  Setting parameter static to true
Information:  Processing value for hostname
Information:  Setting parameter hostname to r630p2
Information:  Processing value for domain
Information:  Setting parameter domain to lab.net
Information:  Processing value for timezone
Information:  Setting parameter timezone to Australia/Victoria
Information:  Processing value for timeserver
Information:  Setting parameter timeserver to 0.au.pool.ntp.org
Information:  Processing value for firmware
Information:  Processing value for clock
Information:  Setting parameter clock to false
Information:  Processing value for mirror_country
Information:  Processing value for mirror_hostname
Information:  Processing value for mirror_directory
Information:  Processing value for mirror_proxy
Information:  Processing value for updates
Information:  Setting parameter updates to none
Information:  Processing value for software
Information:  Setting parameter software to openssh-server
Information:  Processing value for additional_packages
Information:  Setting parameter additional_packages to nfs-common openssh-server setserial net-tools ansible jq ipmitool screen ruby-build git cryptsetup
Information:  Processing value for exit
Information:  Setting parameter exit to false
Information:  Processing value for basicfilesystem_choose_label
Information:  Processing value for basicfilesystem_default_label
Information:  Processing value for partition_choose_label
Information:  Processing value for partition_default_label
Information:  Processing value for choose_label
Information:  Processing value for default_label
Information:  Processing value for partition_disk
Information:  Setting parameter partition_disk to sda
Information:  Processing value for partition_method
Information:  Setting parameter partition_method to lvm
Information:  Processing value for remove_existing_lvm
Information:  Setting parameter remove_existing_lvm to true
Information:  Processing value for remove_existing_md
Information:  Setting parameter remove_existing_md to true
Information:  Processing value for partition_write
Information:  Setting parameter partition_write to true
Information:  Processing value for partition_overwrite
Information:  Setting parameter partition_overwrite to true
Information:  Processing value for partition_size
Information:  Setting parameter partition_size to max
Information:  Processing value for filesystem_type
Information:  Setting parameter filesystem_type to ext4
Information:  Processing value for volume_name
Information:  Setting parameter volume_name to vg01
Information:  Processing value for filesystem_layout
Information:  Setting parameter filesystem_layout to atomic
Information:  Processing value for partition_label
Information:  Processing value for partition_finish
Information:  Processing value for partition_confirm
Information:  Processing value for partition_nooverwrite
Information:  Processing value for kernel_image
Information:  Setting parameter kernel_image to linux-generic
Information:  Processing value for additional_packages
Information:  Setting parameter additional_packages to nfs-common openssh-server setserial net-tools ansible jq ipmitool screen ruby-build git cryptsetup
Information:  Processing value for root_login
Information:  Setting parameter root_login to false
Information:  Processing value for make_user
Information:  Setting parameter make_user to true
Information:  Processing value for root_password
Information:  Setting parameter root_password to P455w0rd
Information:  Processing value for root_crypt
Information:  Setting parameter root_crypt to $1$auOtyxym$1.XhycvODlDwZYOjB3uac1
Information:  Setting parameter root_crypt to $1$7jjnDLDW$7hU6S.Lo4YMFPfxt9y83r1
Information:  Processing value for install_grub_mbr
Information:  Setting parameter install_grub_mbr to true
Information:  Processing value for install_grub_bootdev
Information:  Setting parameter install_grub_bootdev to sda
Information:  Processing value for reboot_note
Information:  Processing value for late_command
Information:  Setting parameter late_command to in-target wget -O /tmp/post_install.sh http://192.168.11.98/r630p2/r630p2_post.sh ; in-target chmod 700 /tmp/post_install.sh ; in-target sh /tmp/post_install.sh
Creating: Cloud user-data file /export/clients/ubuntu_20_04_3_live_x86_64/r630p2/user-data
Executing:  sudo sh -c 'cat /tmp/user_data_r630p2 >> /export/clients/ubuntu_20_04_3_live_x86_64/r630p2/user-data ; rm /tmp/user_data_r630p2'

Information:  Contents of file /export/clients/ubuntu_20_04_3_live_x86_64/r630p2/user-data

#cloud-config
autoinstall:
  version: 1
  apt:
    geoip: true
    preserve_sources_list: false
    primary:
    - arches: [amd64, i386]
      uri: http://archive.ubuntu.com/ubuntu
    - arches: [default]
      uri: http://ports.ubuntu.com/ubuntu-ports
  identity:
    hostname: r630p2
    password: $1$CccmG8ta$10hTNcp8J/lG2Er67jHAr/
    realname: sysadmin
    username: sysadmin
  keyboard:
    layout: en
    variant: us
  locale: en_US.UTF-8
  network:
    network:
      version: 2
      ethernets:
        eth1:
          dhcp4: no
  ssh:
    install-server: true
    allow-pw: true
  storage:
    config:
    - grub_device: true
      id: disk-sda
      path: /dev/sda
      ptable: gpt
      type: disk
      wipe: superblock-recursive
    - device: disk-sda
      flag: bios_grub
      id: partition-0
      number: 1
      size: 1048576
      type: partition
    - device: disk-sda
      id: partition-1
      number: 2
      size: -1
      type: partition
      wipe: superblock
    - name: root_vg
      devices: [partition-1]
      preserve: false
      type: lvm_volgroup
      id: lvm_volgroup-0
    - name: root_lv
      volgroup: lvm_volgroup-0
      size: -1
      wipe: superblock
      preserve: false
      type: lvm_partition
      id: lvm_partition-0
    - fstype: ext4
      id: format-0
      type: format
      volume: lvm_partition-0
    - device: format-0
      id: mount-0
      path: /
      type: mount
  updates: security
  user-data:
    disable-root: false
  late-commands:
    [ "ip addr add 192.168.11.115/24 dev eth1", "ip link set eth1 up", "ip route add default via 192.168.11.254", "echo 'DNS=8.8.8.8' >> /etc/systemd/resolved.conf", "echo 'DNS=8.8.8.8' >> /target/etc/systemd/resolved.conf", "systemctl restart systemd-resolved", "curtin in-target --target=/target -- /usr/sbin/locale-gen en_US.UTF-8", "echo 'LC_ALL=en_US.UTF-8' > /target/etc/default/locales", "echo 'LANG=en_US.UTF-8' >> /target/etc/default/locales", "curtin in-target --target=/target -- groupadd sysadmin", "curtin in-target --target=/target -- useradd -p '$1$CccmG8ta$10hTNcp8J/lG2Er67jHAr/' -g sysadmin -G sysadmin -d /home/sysadmin -s /usr/bin/bash -m sysadmin", "mkdir -p /target/home/sysadmin/.ssh", "echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDb0OUPzEvJklhBwEScF172OdV9h7533/zXpR1TpPmkLzT9WAqZvT7x1n6YevR/uYiOEOtk7m3a3u2fy19Gv8kVn6aioFntwFmP0q0DNJEzq4br2P7S35Yp8XLusyisUPzNN6fbY80MUocg/o43U6AjPQp+XDZe1hzC/tzADyJ9076/Nk8DJvGPx+zXWE0i6Xty9CsF3WH3AjIvMKp52ul2p3+fB0IJQXeEjo9tBu4Rlz5nj4+9a1Hq75G8t967w6lD1s5s9rStD06ROYUuPibVf2wYK8rC9Kc6DV4oraQMXtwpepo7e4u7/4LYaLWVpDTCathjtAfKyW6rqT8BrlFHkMo35q9MA+BJAq/gfVDAmkWi2FB2RaUgS7l6oUtydQD8513W073nI5tC8waNkzhuBOLMuaUzQH0NDrfLB/P/FtokBH2repKwOhjMc/mwLg9WdkREAy+LeLlyuHPQsw3XFx7rfLMw8QheVkpW9rNVu+aGNFymkCP82XXohjWGzQM= sysadmin@bootserver11'  > /target/home/sysadmin/.ssh/authorized_keys", "chmod 600 /target/home/sysadmin/.ssh/authorized_keys", "chmod 700 /target/home/sysadmin/.ssh", "curtin in-target --target=/target -- chown -R sysadmin:sysadmin /home/sysadmin", "echo 'sysadmin ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/sysadmin", "echo 'GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"' >> /target/etc/default/grub", "curtin in-target --target=/target -- update-grub", "echo '# This file describes the network interfaces available on your system' > /target/etc/netplan/01-netcfg.yaml", "echo '# For more information, see netplan(5).' >> /target/etc/netplan/01-netcfg.yaml", "echo 'network:' >> /target/etc/netplan/01-netcfg.yaml", "echo '  version: 2' >> /target/etc/netplan/01-netcfg.yaml", "echo '  renderer: networkd' >> /target/etc/netplan/01-netcfg.yaml", "echo '  ethernets:' >> /target/etc/netplan/01-netcfg.yaml", "echo '    eth1:' >> /target/etc/netplan/01-netcfg.yaml", "echo '      addresses: [192.168.11.115/24]' >> /target/etc/netplan/01-netcfg.yaml", "echo '      gateway4: 192.168.11.254' >> /target/etc/netplan/01-netcfg.yaml", "curtin in-target --target=/target -- apt update", "curtin in-target --target=/target -- apt install -y nfs-common openssh-server setserial net-tools ansible jq ipmitool screen ruby-build git cryptsetup", "date" ]


Information:  Removing old PXE boot file /srv/tftp/01204747958D85.pxelinux
Executing:  sudo sh -c 'rm /srv/tftp/01204747958D85.pxelinux'
Information:  Creating PXE boot file for r630p2 with MAC address 20:47:47:95:8d:85
Executing:  sudo sh -c 'cd /srv/tftp ; ln -s pxelinux.0 01204747958D85.pxelinux'
Information:  Determining install ISO location
Executing:  ls /srv/tftp/ubuntu_20_04_3_live_x86_64/*.iso
Output:   /srv/tftp/ubuntu_20_04_3_live_x86_64/ubuntu-20.04.3-live-server-amd64.iso

Information:  Contents of file /srv/tftp/grub/grub.cfg

menuentry "r630p2" {
  linux /ubuntu_20_04_3_live_x86_64/casper/vmlinuz net.ifnames=0 biosdevname=0 root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.11.98/ubuntu_20_04_3_live_x86_64/ubuntu-20.04.3-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.11.98/r630p2/
  initrd /ubuntu_20_04_3_live_x86_64/casper/initrd
}
menuentry "r630p2" {
  linux /ubuntu_20_04_3_live_x86_64/casper/vmlinuz net.ifnames=0 biosdevname=0 root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.11.98/ubuntu_20_04_3_live_x86_64/ubuntu-20.04.3-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.11.98/r630p2/
  initrd /ubuntu_20_04_3_live_x86_64/casper/initrd
}

Information:  Creating PXE configuration file /srv/tftp/grub/grub.cfg-C0A80B73
Executing:  sudo sh -c 'cp /tmp/pxecfg /srv/tftp/grub/grub.cfg-C0A80B73 ; rm /tmp/pxecfg'

Information:  Contents of file /srv/tftp/grub/grub.cfg-C0A80B73

menuentry "r630p2" {
  linux /ubuntu_20_04_3_live_x86_64/casper/vmlinuz net.ifnames=0 biosdevname=0 root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.11.98/ubuntu_20_04_3_live_x86_64/ubuntu-20.04.3-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.11.98/r630p2/
  initrd /ubuntu_20_04_3_live_x86_64/casper/initrd
}

Checking:
         If DHCPd configuration contains r630p2
Executing:  sudo sh -c 'cat /etc/dhcp/dhcpd.conf | grep 'r630p2''
Information:  Setting date string to 2021_10_02_19_05_46_UTC
Archiving:  File /etc/dhcp/dhcpd.conf to /home/sysadmin/.modest/backup/dhcpd.conf.2021_10_02_19_05_46_UTC
Executing:  sudo sh -c 'cp /etc/dhcp/dhcpd.conf /home/sysadmin/.modest/backup/dhcpd.conf.2021_10_02_19_05_46_UTC'
Updating: DHCPd file /etc/dhcp/dhcpd.conf
Executing:  sudo sh -c 'cp /tmp/dhcp_r630p2 /etc/dhcp/dhcpd.conf ; rm /tmp/dhcp_r630p2'
Information:  Restarting Service isc-dhcp-server
Executing:  sudo sh -c 'systemctl restart isc-dhcp-server'
Checking: Apache confing file /etc/apache2/apache2.conf for r630p2
Executing:  sudo sh -c 'cat /etc/apache2/apache2.conf |grep '/r630p2''
Output:   <Directory /export/clients/ubuntu_20_04_3_live_x86_64/r630p2>
Output:   Alias /r630p2 /export/clients/ubuntu_20_04_3_live_x86_64/r630p2
Information:  Checking Apache Version
Executing:  sudo sh -c 'apache2 -V 2>&1 |grep version |tail -1'
Output:   Server version: Apache/2.4.41 (Ubuntu)
Information Enabling Service apache2
Executing:  sudo sh -c 'systemctl enable apache2'
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Information Starting Service apache2
Executing:  sudo sh -c 'systemctl start apache2'
Information:  Restarting Service apache2
Executing:  sudo sh -c 'systemctl restart apache2'
Checking: Hosts file for r630p2
Executing:  sudo sh -c 'cat /etc/hosts |grep -v '^#' |grep 'r630p2' |grep '192.168.11.115''
Output:   192.168.11.115  r630p2.local  r630p2  # sysadmin
Clone this wiki locally