Paste from Ethan Myers 09 September 2022 14:32 +0000

Syntax highlighting: text

View raw
#cloud-config
autoinstall:
  apt:
    disable_components: []
    disable_suites: [security] #skip the security upgrades for testing.
    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: demo
    password: $6$t022xYXuG90cZC4V$6pESNhMEUl7bpSa1IZ/OpjS/k3Ar01lJP.eve9qyhF42sw0Bbnv9QYL8NSkaFN2nDyGSRzAkARMJmB8EquHF9.
    realname: ubuntu
    username: ubuntu
  kernel:
    package: linux-generic
  keyboard:
    layout: us
    toggle: null
    variant: ''
  locale: en_US.UTF-8
  network:
    ethernets:
      eth0: {dhcp4: true}
    version: 2
  ssh:
    allow-pw: true
    install-server: true
  storage:
    config:
    - ptable: gpt
      path: /dev/sda
      wipe: superblock
      preserve: false
      name: ''
      grub_device: false
      type: disk
      id: disk-sda
    - device: disk-sda
      size: 512M
      wipe: superblock
      flag: boot
      number: 1
      preserve: false
      grub_device: true
      type: partition
      id: partition-0
    - fstype: fat32
      volume: partition-0
      preserve: false
      type: format
      id: format-0
    - device: disk-sda
      size: 1024M
      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-1
    - device: disk-sda
      size: -1
      wipe: superblock
      flag: ''
      number: 3
      preserve: false
      grub_device: false
      type: partition
      id: partition-2
    - volume: partition-2
      key: 'ubuntu'
      preserve: false
      type: dm_crypt
      id: dm_crypt-0
    - name: ubuntu-vg
      devices:
      - dm_crypt-0
      preserve: false
      type: lvm_volgroup
      id: lvm_volgroup-0
    - name: ubuntu-lv
      volgroup: lvm_volgroup-0
      size: -1
      wipe: superblock
      preserve: false
      type: lvm_partition
      id: lvm_partition-0
    - fstype: ext4
      volume: lvm_partition-0
      preserve: false
      type: format
      id: format-2
    - path: /
      device: format-2
      type: mount
      id: mount-2
    - path: /boot
      device: format-1
      type: mount
      id: mount-1
    - path: /boot/efi
      device: format-0
      type: mount
      id: mount-0
  updates: security
  packages:
    - linux-virtual
    - linux-cloud-tools-virtual
    - linux-tools-virtual
    - clevis
    - clevis-tpm2
    - clevis-luks
    - clevis-initramfs
    - clevis-systemd
    - ubuntu-advantage-tools
    - encfs
  late-commands:
    # Ensure Hyper-V modules are loaded:
    - 'echo "hv_utils" >> /target/etc/initramfs-tools/modules'
    - 'echo "hv_vmbus" >> /target/etc/initramfs-tools/modules'
    - 'echo "hv_storvsc" >> /target/etc/initramfs-tools/modules'
    - 'echo "hv_blkvsc" >> /target/etc/initramfs-tools/modules'
    - 'echo "hv_netvsc" >> /target/etc/initramfs-tools/modules'
    # Update initramfs after making changes to Hyper-V modules
    - 'update-initramfs -u'
  user-data:
    runcmd:
    - whoami
    bootcmd:
    - whoami
  version: 1

New paste

Please log in to create a paste.

Log in