subiquity install is calling DHCP twice on default interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
I am provisioning an Ubuntu 20.04 template in vSphere using Packer and passing in my network config using http/user-data, which subiquity finds and processes. The first IP that get assigned to the server is reported back to packer, which waits for it to come available via ssh.
Subsequently, the 00-installer-
Due to the above Packer fails as access to the original IP times out. How can I set my DHCP address once only using subiquity during this provisioning process? Note the issue is intermittent, but appears to be fully congtrolled by subiquity.
Ultimately this VM is converted back into a template and distributed via our vSphere catalog.
The /etc/netplan/
# This is the network config written by 'subiquity'
network:
ethernets:
ens192:
dhcp4: true
dhcp6: false
nameservers:
addresses:
- 10.250.0.33
search:
- example.net
version: 2
A full sample packer http/user-data file is here:
#cloud-config
autoinstall:
apt:
geoip: true
preserve_
primary:
- arches: [default]
uri: http://
- arches: [amd64, i386]
uri: http://
identity: {hostname: ubuntu-server, password: $6$or...obfuscated,
realname: installer, username: installer}
keyboard: {layout: us, toggle: null, variant: ''}
locale: en_US
network:
ethernets:
ens192:
dhcp4: yes
dhcp6: no
search:
- example.net
- 10.250.0.33
version: 2
packages:
- open-vm-tools
ssh:
allow-pw: true
authorized-
install-server: true
early-commands:
- echo "Early commands"
late-commands:
- curl -o /target/
- chmod 0440 /target/
- echo "Done with late commands"
write_files:
# setup installer sudo
- path: /target/
content: |
installer ALL=(ALL) NOPASSWD: ALL
owner: root:root
permissions: "0440"
version: 1