Okay so i tried this with the same configuration as my ubuntu example in the the first post.
config:
security.secureboot: "false"
user.user-data: |
#cloud-config
ssh_pwdauth: yes
users:
- name: user
passwd: "\$6\$s.wXDkoGmU5md\$d.vxMQSvtcs1I7wUG4SLgUhmarY7BR.5lusJq1D9U9EnHK2LJx18x90ipsg0g3Jcomfp0EoGAZYfgvT22qGFl/"
lock_passwd: false
groups: lxd
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
description: LXD VM profile
devices:
eth0:
nictype: macvlan
parent: bond0.3
type: nic
root:
path: /
pool: lxd_storage
type: disk
name: cloud-init
used_by: []
You would think the username would be “user” and the password would be “ubuntu”, but no.
sudo lxc launch ubuntu:20.04 uvm1 --vm --profile=cloud-init
Using launch images:ubuntu/focal/cloud
(cloud image) I get the familiar initramfs errors from the above post.
This is highly annoying and I’ve spent a lot of time trying to get this working .