#cloud-config autoinstall: version: 1 identity: hostname: ubuntu-server username: ubuntu password: "$6$rounds=4096$ZkGfBxTxa/Zhkd.g$4I4/oh12czt/yvVZxuI6LhPdsFJahgVklGySeS3zF2NzD2tqzCWFOs1P8xVzwMzH/0RtxfiPhWjjfM8Z6sVfA." ssh: install-server: true allow-pw: true keyboard: layout: us locale: en_US.UTF-8 storage: layout: name: lvm config: - id: nvme0 type: disk ptable: gpt path: /dev/nvme0n1 wipe: superblock-recursive - id: nvme1 type: disk ptable: gpt path: /dev/nvme1n1 wipe: superblock-recursive - id: partition-efi0 type: partition number: 1 size: 1G device: nvme0 flag: boot - id: partition-efi1 type: partition number: 1 size: 1G device: nvme1 flag: boot - id: partition-raid0 type: partition number: 2 size: -1 device: nvme0 - id: partition-raid1 type: partition number: 2 size: -1 device: nvme1 - id: md0 type: raid name: md0 level: raid1 devices: - partition-raid0 - partition-raid1 - id: md0p1 type: format fstype: ext4 volume: md0 - id: mount-root type: mount path: / device: md0p1 fstype: ext4 - id: mount-efi0 type: mount path: /boot/efi device: partition-efi0 fstype: vfat - id: mount-efi1 type: mount path: /boot/efi2 device: partition-efi1 fstype: vfat user-data: disable_root: true apt: primary: - arches: [default] uri: "http://archive.ubuntu.com/ubuntu" package_update: true package_upgrade: true system: preserve_user_data: false execute: - curtin in-target -- /usr/sbin/pwconv - curtin in-target -- /usr/sbin/grub-install /dev/nvme0n1 - curtin in-target -- /usr/sbin/grub-install /dev/nvme1n1 - curtin in-target -- /usr/sbin/update-grub reporting: type: stdout