Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
Created March 17, 2026 11:39
Show Gist options
  • Select an option

  • Save dmi3mis/7031058071818c15c266df1865e763e3 to your computer and use it in GitHub Desktop.

Select an option

Save dmi3mis/7031058071818c15c266df1865e763e3 to your computer and use it in GitHub Desktop.
Autoinstall.yaml file for installing Ubuntu 24.04 Desktop with KVM and wiping disks.
#cloud-config
# https://canonical-subiquity.readthedocs-hosted.com/en/latest/intro-to-autoinstall.html
autoinstall:
# version is an Autoinstall required field.
version: 1
locale: en_US.UTF-8
# Subiquity will, by default, configure a partition layout using LVM.
# The 'direct' layout method shown here will produce a non-LVM result.
storage:
layout:
name: direct
# User creation can occur in one of 3 ways:
# 1. Create a user using this `identity` section.
# 2. Create users as documented in cloud-init inside the user-data section,
# which means this single-user identity section may be removed.
# 3. Prompt for user configuration on first boot. Remove this identity
# section and see the "Installation without a default user" section.
identity:
realname: 'kadm user'
username: kadm
# A password hash is needed. `mkpasswd --method=SHA-512` can help.
# mkpasswd can be found in the package 'whois'
password: '$6$cjW7qqDEDiTOM6NZ$gEdIWCpktSAoc4z/L672AMSxikG6TWyfwWIxF8kxonBHJiTnqiEIm.7z6eQmAStv9uRT4shJiV9pvOuamgspK.'
hostname: do-host
ssh:
install-server: true
allow-pw: true
authorized-keys: []
codecs:
install: false
drivers:
install: false
kernel:
package: linux-generic
packages:
- vim
- open-vm-tools
- ubuntu-desktop
- apt-transport-https
- ca-certificates
- software-properties-common
- curl
- git
- mkisofs
- qemu-kvm
- libvirt-daemon-system
- libvirt-clients
- bridge-utils
- virtinst
- virt-manager
- libvirt-daemon
- virt-top
- libguestfs-tools
- libosinfo-bin
- qemu-system
- libvirt-daemon-system
- libvirt-clients
- bridge-utils
- virt-manager
<<<<<<< HEAD
=======
- openssh-server
- curl
>>>>>>> 343b941 (xrdp removed from host. added gnome-remote-desktop. many other fixes)
timezone: Europe/Moscow
late-commands:
- curtin in-target --target=/target -- sh -c 'echo security_driver = \"none\" >> /etc/libvirt/qemu.conf'
- reboot
user-data:
disable_root: false
users:
- name: kadm
sudo: "ALL=(ALL) NOPASSWD:ALL"
groups: users,libvirt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment