This seems like a pretty silly question as it's too simple.
but
Just getting feet wet with multipass, so one of the first things I try is using a cloud init file. But multipass reports error: No such file:
[opt/multipass] $ multipass launch -n test --cloud-init setup.yaml
error: No such file: setup.yaml
so I tried ./setup.yaml
and absolute path /opt/multipass/setup.yaml
all give same no such file error.
/opt/multipass
drwxrwsr-x+ 2 david users 4096 Feb 6 08:04 ./
drwxrwsr-x+ 44 sysadmin users 4096 Feb 6 07:24 ../
-rw-rw-r--+ 1 david users 256 Feb 6 07:50 setup.yaml
What am I missing here? all the examples look like this. https://ubuntu.com/blog/using-cloud-init-with-multipass Does it give this error if there is an issue in the yaml file? Do the yaml files need to be in a particular directory? or have particular owner, permissions (it's read for everyone now). This seems so simple..should just work no?
setup.yaml
users:
- default
- name: ubuntu
- sudo: ALL=(ALL) NOPASSWD:ALL
plain_text_passwd: 'ubuntu'
home: /home/ubuntu
shell: /bin/bash
lock_passwd: false
gecos: Ubuntu
groups: [adm, audio, cdrom, dialout, floppy, video, plugdev, dip, netdev, sudo]