https://ubuntu.com/server/docs/install/autoinstall
Create user-data
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu
password: "encrypted_password"
realname: SoulEvil
username: soulevil
ssh:
allow-pw: false
install-server: true
authorized-keys:
- <public_key>
late-commands:
- curtin in-target --target=/target -- apt update
- curtin in-target --target=/target -- apt upgrade -y
- curtin in-target --target=/target -- apt -y install git zip unzip curl
Generate seed.iso
cloud-localds ./seed.iso user-data
- Load Ubuntu image for IDE Primary Master
- Add IDE Primary Slave and load seed.iso for Virtualbox
The virtual machine will boot and validate the Autoinstallation configuration. Soon a prompt stating:
Continue with autoinstall? (yes|no)
will appear. Type yes
and hit enter.
Leave a Reply