You are not logged in.
Hi All,
I am trying to use a arch-linux qcow2 image from here https://gitlab.archlinux.org/archlinux/ … 9279.qcow2
And I am using the following cloud-init,
```
#cloud-config
users:
- name: zarkov
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
groups: users, admin
ssh_authorized_keys:
- ssh-rsa <...>
chpasswd:
list: |
zarkov:asdfqwer
expire: False
```
and generating the iso with cloud-localsd
the user gets created and I can login thru tty n ssh but I can't get sudo access it says I am not in the sudoers file...
How do I troubleshoot this and what could I be doing wrong?
Any help would be appreciated!
Last edited by DireWolf (2021-11-17 12:01:38)
Offline
I am such an
It appears now, that cloud-init just runs on the first boot so after editing the cloud-init.iso it wasn't running the scripts at all.
After doing the cloud-init on a new fresh image it works smoothly.
Moderators please close this. Marking as solved
Thanks to myself.
Offline