Issue install 20.04 with autoinstall
Tom H
tomh0665 at gmail.com
Sun Jan 24 18:01:38 UTC 2021
On Sat, Jan 23, 2021 at 9:33 PM Jerry Geis <jerry.geis at gmail.com>
wrote:
> On Sat, Jan 23, 2021 at 3:21 PM Tom H <tomh0665 at gmail.com> wrote:
>>
>> Please post your entire user-data.
>
> #cloud-config
> autoinstall:
> version: 1
> early-commands:
> - systemctl stop ssh # otherwise packer tries to connect and exceed max attempts
> network:
> network:
> version: 2
> ethernets:
> eth0:
> dhcp4: yes
> dhcp-identifier: mac
> eno1:
> dhcp4: yes
> dhcp6: no
> dhcp-identifier: mac
> enp1s0:
> dhcp4: yes
> dhcp6: no
> dhcp-identifier: mac
> apt:
> preserve_sources_list: false
> primary:
> - arches: [amd64]
> uri: "http://archive.ubuntu.com/ubuntu/"
> ssh:
> install-server: yes
> allow-pw: no
> identity:
> hostname: VMImage
> username: silentm
> password: $1$xyz$V5reF9l3SpYlSCJ7ebtij0
> locale: en_US
> packages:
> - build-essential
> - gdb
> - nfs-common
> - network-manager
> - net-tools
> user-data:
> timezone: America/New_York
> disable_root: false
> late-commands:
> - echo Section - late-commands > /target/root/late-commands
> debconf-selections: |
> storage:
> layout:
> name: direct
> users:
> - default
> - name: silentm
> passwd: $1$xyz$V5reF9l3SpYlSCJ7ebtij0
> shell: /bin/bash
> lock-passwd: false
> ssh_pwauth: True
> chpasswd: { expire: False }
> sudo: ALL=(ALL) NOPASSWD:ALL
> groups: users, silentm
1) You shouldn't define "silentm" under "identity" and "users".
2) AFAIK, "users" is supposed to be a subcategory of "user-data".
user-data:
#cloud-config
users:
...
More information about the ubuntu-users
mailing list