Skip to content

Subiquity Server

Richard Spindler edited this page Oct 4, 2021 · 3 revisions

Preseed is the OS deployment technology for Ubuntu based Linux.

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 server related commands. For the client related commands refer to the Subiquity Client Examples.

For client creation commands refer to either the VirtualBox Examples or VMware Fusion Examples.

Subiquity Example Server Commands

List all Subiquity ISOs:

./modest.rb --action list --type iso --method ci --dir /mnt/isos

List all Subiquity services:

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

Configure a Subiquity service (from ISO):

./modest.rb --action add --mode server --file /mnt/ISOs/linux/ubuntu/20.04/ubuntu-20.04.3-live-server-am
d64.iso

List Subiquity server Images/Instances:

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

Subiquity Server Usage Examples

List Subiquity server Images/Instances:

./modest.rb --action list --type iso --method ci --dir /mnt/ISOs/linux/ubuntu/20.04

/mnt/ISOs/linux/ubuntu/20.04:
Available Ubuntu ISOs:

ISO file: ubuntu-20.04.3-live-server-amd64.iso
Distribution: ubuntu
Version:  20.04.3
Architecture: x86_64
Service Name: ubuntu_20_04_3_x86_64 (exists)

ISO file: ubuntu-20.04-live-server-amd64.iso
Distribution: ubuntu
Version:  20.04
Architecture: x86_64
Service Name: ubuntu_20_04_x86_64

ISO file: ubuntu-20.04.2-live-server-arm64.iso
Distribution: ubuntu
Version:  20.04.2
Architecture: server
Service Name: ubuntu_20_04_2_server

ISO file: ubuntu-20.04.2-live-server-amd64.iso
Distribution: ubuntu
Version:  20.04.2
Architecture: x86_64
Service Name: ubuntu_20_04_2_x86_64

Create a Ubuntu 21.04 Subiquity install service:

./modest.rb --action create --mode server --file /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-am
d64.iso --verbose

Information:  Setting service name to ubuntu_21_04_live_x86_64
Information:  Setting OS name to ubuntu
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 administrator
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 bios
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 false
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 /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-amd64.iso
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 none
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 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 true
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 none
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 ci
Information:  Setting option mirror to au.archive.ubuntu.com
Information:  Setting option mirrordisk to false
Information:  Setting option mode to server
Information:  Setting option model to none
Information:  Setting option mountdir to /cdrom
Information:  Setting option name to none
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 enp1s0
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 ubuntu
Information:  Setting option os-variant to ubuntu21.04
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 21.04
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 /dev/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 none
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_21_04_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-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 defaults to false
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 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 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
Information:  Setting clone name to none
Information:  Setting install type to iso
Information:  Setting install service to ubuntu_21_04_live_x86_64
Information:  Setting Operating System version to 21.04
Information:  Setting model to vmware
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
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 {
Checking: Apache confing file /etc/apache2/apache2.conf for ubuntu_21_04_live_x86_64
Executing:  sudo sh -c 'cat /etc/apache2/apache2.conf |grep '/ubuntu_21_04_live_x86_64''
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:  Archiving Apache config file /etc/apache2/apache2.conf to /etc/apache2/apache2.conf.no_ubuntu_21_04_live_x86_64
Executing:  sudo sh -c 'cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.no_ubuntu_21_04_live_x86_64'
Adding:   Directory and Alias entry to /etc/apache2/apache2.conf
Copying:  Apache config file so it can be edited
Executing:  sudo sh -c 'cp /etc/apache2/apache2.conf /tmp/httpd.conf ; chown 1000 /tmp/httpd.conf'
Updating: Apache config file
Executing:  sudo sh -c 'cp /tmp/httpd.conf /etc/apache2/apache2.conf ; rm /tmp/httpd.conf'
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'
Information:  Creating: /srv/tftp/ubuntu_21_04_live_x86_64
Executing:  sudo sh -c 'mkdir -p "/srv/tftp/ubuntu_21_04_live_x86_64"'
Information:  Checking directory /export/repo/ubuntu_21_04_live_x86_64/isolinux exits
Information:  Processing: /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-amd64.iso
Checking: Existing mounts
Executing:  df |awk '{print $NF}' |grep '^/cdrom$'
Information:  Mounting ISO /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-amd64.iso on /cdrom
Executing:  sudo sh -c 'mount -t iso9660 -o loop /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-amd64.iso /cdrom'
Checking: If we can copy data from full repo ISO
Information:  Creating: /export/repo/ubuntu_21_04_live_x86_64/install
Executing:  sudo sh -c 'mkdir -p "/export/repo/ubuntu_21_04_live_x86_64/install"'
Copying:  /cdrom contents to /export/repo/ubuntu_21_04_live_x86_64
Copying:  /cdrom contents to /export/repo/ubuntu_21_04_live_x86_64
Executing:  sudo sh -c 'rsync -a /cdrom/. /export/repo/ubuntu_21_04_live_x86_64'
Unmounting: ISO mounted on /cdrom
Executing:  sudo sh -c 'umount /cdrom'
Information:  Copying ISO file /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-amd64.iso to /export/repo/ubuntu_21_04_live_x86_64/ubuntu-21.04-live-server-amd64.iso
Executing:  sudo sh -c 'cp /mnt/ISOs/linux/ubuntu/21.04/ubuntu-21.04-live-server-amd64.iso /export/repo/ubuntu_21_04_live_x86_64/ubuntu-21.04-live-server-amd64.iso'
Information:  Creating: /srv/tftp/ubuntu_21_04_live_x86_64/images
Executing:  sudo sh -c 'mkdir -p "/srv/tftp/ubuntu_21_04_live_x86_64/images"'
Information:  Creating: /srv/tftp/ubuntu_21_04_live_x86_64/images/pxeboot
Executing:  sudo sh -c 'mkdir -p "/srv/tftp/ubuntu_21_04_live_x86_64/images/pxeboot"'
Information:  Copying PXE boot files from /export/repo/ubuntu_21_04_live_x86_64/install to /srv/tftp/ubuntu_21_04_live_x86_64/images/pxeboot
Executing:  sudo sh -c 'cd /srv/tftp/ubuntu_21_04_live_x86_64/images/pxeboot ; cp -r /export/repo/ubuntu_21_04_live_x86_64/install/* . '
Clone this wiki locally