Right, so using:
$ sudo lxc launch ubuntu:20.04 uvm1 --vm --profile=cloud-init
Creating uvm1
Starting uvm1
With this profile:
$ sudo lxc profile show cloud-init
config:
security.secureboot: "false"
user.user-data: |
#cloud-config
hostname: foo
users:
- default
- name: user
ssh_pwauth: false
disable_root: false
chpasswd:
list: |
ubuntu:linux
user:password
expire: false
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:
- /1.0/instances/uvm1
I see it starts, but neither user:password or ubuntu:linux works as username/password.
I see that LXD agent does start and stop a few times:
[ OK ] Reached target Basic System.
Starting Accounts Service...
Starting LSB: automatic crash report generation...
Starting Deferred execution scheduler...
[ OK ] Started Regular background program processing daemon.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Save initial kernel messages after boot.
Starting Remove Stale Onli…t4 Metadata Check Snapshots...
Starting LSB: Record successful boot for GRUB...
Starting GRUB failed boot detection...
[ OK ] Started irqbalance daemon.
Starting Dispatcher daemon for systemd-networkd...
Starting Pollinate to seed…udo random number generator...
Starting System Logging Service...
Starting Snap Daemon...
Starting Login Service...
Starting Permit User Sessions...
[ OK ] Started Deferred execution scheduler.
[ OK ] Finished Permit User Sessions.
[ OK ] Started System Logging Service.
[ OK ] Finished GRUB failed boot detection.
Starting Hold until boot process finishes up...
Starting Terminate Plymouth Boot Screen...
[ OK ] Started LSB: automatic crash report generation.
[ OK ] Started LSB: Record successful boot for GRUB.
[ OK ] Finished Hold until boot process finishes up.
[ OK ] Finished Terminate Plymouth Boot Screen.
Starting Authorization Manager...
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Created slice system-getty.slice.
[ OK ] Reached target Login Prompts.
[ OK ] Started Authorization Manager.
[ OK ] Started Accounts Service.
[ OK ] Finished Pollinate to seed…seudo random number generator.
Starting OpenBSD Secure Shell server...
[ OK ] Started Dispatcher daemon for systemd-networkd.
[ OK ] Started Login Service.
[ OK ] Started Unattended Upgrades Shutdown.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[ OK ] Started Snap Daemon.
Starting Wait until snapd is fully seeded...
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped OpenBSD Secure Shell server.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
Mounting Mount unit for snapd, revision 9721...
[ OK ] Mounted Mount unit for snapd, revision 9721.
Ubuntu 20.04.1 LTS ubuntu ttyS0
ubuntu login: Mounting Mount unit for core18, revision 1932...
[ OK ] Mounted Mount unit for core18, revision 1932.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
Mounting Mount unit for lxd, revision 16922...
[ OK ] Mounted Mount unit for lxd, revision 16922.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
[ OK ] Listening on Socket unix for snap application lxd.daemon.
Starting Service for snap application lxd.activate...
[ OK ] Finished Service for snap application lxd.activate.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
[ OK ] Stopped LXD - agent.
[ OK ] Started LXD - agent.
[ OK ] Finished Wait until snapd is fully seeded.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Finished Update UTMP about System Runlevel Changes.
ubuntu login: user
Password:
Login incorrect
(this is from sudo lxc console uvm1
).
If I use the cloud image:
$ sudo lxc launch images:ubuntu/focal/cloud uvm2 --vm --profile=cloud-ini
All I see is:
BdsDxe: loading Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
error: file `/boot/' not found.
error: no such device: /.disk/info.
error: no such device: /.disk/mini-info.
[ 0.595380] Initramfs unpacking failed: Decoding failed
[FAILED] Failed to start LXD - agent - virtio-fs mount.
[FAILED] Failed to start LXD - agent.
Ubuntu 20.04.1 LTS distrobuilder-55f45f2f-bd15-48d0-bded-9c3e3a5aeb8b ttyS0
distrobuilder-55f45f2f-bd15-48d0-bded-9c3e3a5aeb8b login: user
Password:
Login incorrect
distrobuilder-55f45f2f-bd15-48d0-bded-9c3e3a5aeb8b login: ubuntu
Password:
Login incorrect
distrobuilder-55f45f2f-bd15-48d0-bded-9c3e3a5aeb8b login:
That to me looks like initramfs. I just tested again, and I’m on Alpine Linux 3.12 host with LXD 4.7 - though I don’t think that’s the problem.
I wonder where I can go from here to find out more why it’s not working for me. Hopefully someone with more experience might have an idea
I do appreciate the help as I’ve been wracking my brains to find a solution to this annoying, but simple sounding issue.