Automated Install does not set default user data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Committed
|
Undecided
|
Unassigned | ||
subiquity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When I run the automated installer I always end up with a fresh system I cannot login to. The default user ubuntu has its password locked.
I tested this using the minimalistic example from the [wiki][1], latest Focal and virtualbox.
cat > user-data << 'EOF'
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu-server
password: "$6$exDY1mhS4KU
username: ubuntu
EOF
touch meta-data
cloud-localds ~/seed.iso user-data meta-data
I tried to get in using these ways, too:
1. Adding a SSH key to an additional `ssh` section did not help as well.
2. Configuring a user in user-data did not work as well.
Actually, no settings from the `user-data` section work but configuration from the storage and network sections works like a charm.
This is very strange. Can you get /var/log/installer from the installed system somehow? (I guess you need to boot as single user to set the password for ubuntu first!) I guess /var/lib/cloud and /var/log/ cloud-init* would be interesting too.