#cloud-config autoinstall: early-commands: - ping -c1 192.168.45.254 apt: geoip: true preserve_sources_list: false primary: - arches: [amd64, i386] uri: http://tw.archive.ubuntu.com/ubuntu - arches: [default] uri: http://ports.ubuntu.com/ubuntu-ports identity: {hostname: ubuntu01, password: $6$UC2sbdInP4N6ss8j$bNUrIZLBbEqnzWAIuwIMJtV/.syBIWv7epcK/TQLalYv9IH2lkdnqz7h2iBWioDWLEBss/aXWpmnXImAtVOhj0, realname: cloud, username: cloud} kernel: kernel: {package: linux-generic} keyboard: {layout: us, toggle: null, variant: ''} locale: en_US.UTF-8 network: ethernets: ens160: critical: true dhcp-identifier: mac dhcp4: true nameservers: addresses: [192.168.31.96, 192.168.31.98] search: [gainhow.tw] version: 2 ssh: allow-pw: true authorized-keys: [AAAAB3NzaC1yc2EAAAADAQABAAABAQDG6SiUVgdYLHMvNUdkKroOi9+0OckMpBxbFcnlqWli91AE2FjmEp3MeKKqb1kP8U23X+qAFTBilExDm+wsDCYnkkmRcZmUWyFUiw+PHtlpsY1vtoNRj0u2X3gdM8orDruqMWFBZ2+yskF+obC7xppbvGtuqlnctaAow/Dyp89eJ+VelvMy2yyazttRUEy17TUYaZgoxBqc4IuFHJsSML+vF87beT6qGqC8lqhXkcaNAqHCDb+Ue9hOe2HMjAxYMB1gsCwYDupa9SAPsWx9ALTxl9rr4QKiPIjE712L0UlvJ913zRmrDyatZfO3/YLPknBVEYAEkLAjhSn45R3286gl] install-server: true storage: config: - {ptable: gpt, path: /dev/sda, wipe: superblock, preserve: false, name: '', grub_device: true, type: disk, id: disk-sda} - {device: disk-sda, size: 1048576, flag: bios_grub, number: 1, preserve: false, grub_device: false, type: partition, id: partition-0} - {device: disk-sda, size: 1073741824, wipe: superblock, flag: '', number: 2, preserve: false, grub_device: false, type: partition, id: partition-1} - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-0} - {device: disk-sda, size: 273801019392, wipe: superblock, flag: '', number: 3, preserve: false, grub_device: false, type: partition, id: partition-2} - name: ubuntu-vg devices: [partition-2] preserve: false type: lvm_volgroup id: lvm_volgroup-0 - {name: ubuntu-lv, volgroup: lvm_volgroup-0, size: 136899985408B, wipe: superblock, preserve: false, type: lvm_partition, id: lvm_partition-0} - {fstype: ext4, volume: lvm_partition-0, preserve: false, type: format, id: format-1} - {path: /, device: format-1, type: mount, id: mount-1} - {path: /boot, device: format-0, type: mount, id: mount-0} error-commands: - tar c /var/log/installer | nc 192.168.45.103 1000 updates: security version: 1