Ubuntu Multipass tutorial for Windows 11 (including cloud-init)



Tired of huge ISO files? Just use Multipass to get an off the shelf, ready to use Ubuntu VM. Start working in minutes and automate the process with cloud-init.

Install a package with cloud init:
packages:
apache2

Create an additional user with cloud init:
users:
– name: username
groups: sudo
shell: /bin/bash
chpasswd:
list: |
username:password
expire: false

Allow SSH password authentication with cloud-init:
ssh_pwauth: True

Run a custom command with cloud-init:
runcmd:
– mkdir /var/creation

[ad_2]

source

Exit mobile version