Skip to content

Instantly share code, notes, and snippets.

@AndreiCherniaev
Last active May 4, 2026 06:41
Show Gist options
  • Select an option

  • Save AndreiCherniaev/75247896003802e7ab84fc45a1848d27 to your computer and use it in GitHub Desktop.

Select an option

Save AndreiCherniaev/75247896003802e7ab84fc45a1848d27 to your computer and use it in GitHub Desktop.
Cher0_1_ubuntu22-deployment.yaml
# Manual https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html
autoinstall:
version: 1
refresh-installer:
update: true
updates: all
identity:
hostname: ubuntu-desktop
password: '$6$TThZwH2sYnfxdzIN$COsmkwowJBH.pYW/jpfhzcBsxSQ6.lrEygIGUQLDrJBsTBgT1gLnkspvttBmgKIJl6UGGSOv4cDfV4Hj0BqS9/'
# There is password hash, use `mkpasswd --method=SHA-512`
realname: q
username: q
apt:
preserve_sources_list: false
mirror-selection:
primary:
- country-mirror
- uri: "http://ko.archive.ubuntu.com/ubuntu"
arches: [amd64]
fallback: abort
geoip: true
keyboard:
layout: us
variant: ''
toggle: null
timezone: Asia/Seoul
storage:
layout:
name: lvm
sizing-policy: all
swap:
size: 0
match:
# ssd: true
size: largest
packages:
- tmux
ssh:
allow-pw: true
authorized-keys: []
install-server: true
@AndreiCherniaev
Copy link
Copy Markdown
Author

Always verify your YAML before using. How to do it? Use subiquity

git clone https://github.com/canonical/subiquity.git && cd subiquity/
make install_deps
# put my Cher0_1_ubuntu-deployment.yaml to subiquity/
wcurl https://gist.githubusercontent.com/AndreiCherniaev/75247896003802e7ab84fc45a1848d27/raw/cab5be91c7ca85024a9f806a8467ea709d5fa257/Cher0_1_ubuntu22-deployment.yaml

SNAP=. ./scripts/validate-autoinstall-user-data.py --no-expect-cloudconfig 'Cher0_1_ubuntu22-deployment.yaml'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment