Recently, I have beening testing ubuntu-live-20.04 autoinstallation with PXE and a large amount of Servers.
so i need to customized user-data for every single Server when provisioning with PXE.there is my ipxe file:
after PXE boot , it runs into autoinstallation environment then download my customised "auotoinstall.yaml" from my own server which defined my own user-data based on Server's PXE macaddress.then the subiquity goes wrong,so i use the customized "autoinstall.yaml" to test installation it was successfull, i ran out of my mind which went wrong ?
there is the crash logs:
2021-06-24 03:37:35,124 DEBUG subiquitycore.netplan:111 config for eth0 = {'critical': True, 'dhcp-identifier': 'mac', 'dhcp4': True, 'match': {'macaddress': '6c:92:bf:b4:85:0a'}, 'nameservers': {'addresses': ['192.168.1.3']}, 'set-name': 'eth0'}
2021-06-24 03:37:35,124 DEBUG subiquitycore.utils:74 arun_command called: ['systemctl', 'mask', '--runtime', 'systemd-networkd.service', 'systemd-networkd.socket']
2021-06-24 03:37:35,130 ERROR subiquity.server.controllers.mirror:101 geoip lookup failed
Traceback (most recent call last):
File "/snap/subiquity/2280/usr/lib/python3/dist-packages/urllib3/connection.py", line 144, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/snap/subiquity/2280/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/snap/subiquity/2280/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Recently, I have beening testing ubuntu-live-20.04 autoinstallation with PXE and a large amount of Servers.
so i need to customized user-data for every single Server when provisioning with PXE.there is my ipxe file:
autoinstall: A4Gi$9l4yURWASW e8xEa1jzI0bacVL vhe3Yn4/ G3AnU11K3X0yu/ mICVRxfo6tZTB2n oKljlIRzjkVZPoc df63MtzC0 192.168. 1.3:9030/ api/current/ templates/ user-data. yaml -d "macs=6c: 92:bf:b4: 85:0a"
version: 1
identity:
hostname: pxe-client
password: $6$FhcddHFVZ7AB
realname: pxe
username: pxe
keyboard: {layout: hr, toggle: toggle, variant: ""}
early-commands:
- set e
- curl -G -o /autoinstall.yaml http://
locale: en_US
network:
network:
version: 2
ethernets:
eth0:
dhcp4: yes
dhcp6: no
after PXE boot , it runs into autoinstallation environment then download my customised "auotoinstall.yaml" from my own server which defined my own user-data based on Server's PXE macaddress.then the subiquity goes wrong,so i use the customized "autoinstall.yaml" to test installation it was successfull, i ran out of my mind which went wrong ?
there is the crash logs:
2021-06-24 03:37:35,124 DEBUG subiquitycore. netplan: 111 config for eth0 = {'critical': True, 'dhcp-identifier': 'mac', 'dhcp4': True, 'match': {'macaddress': '6c:92: bf:b4:85: 0a'}, 'nameservers': {'addresses': ['192.168.1.3']}, 'set-name': 'eth0'} utils:74 arun_command called: ['systemctl', 'mask', '--runtime', 'systemd- networkd. service' , 'systemd- networkd. socket' ] server. controllers. mirror: 101 geoip lookup failed subiquity/ 2280/usr/ lib/python3/ dist-packages/ urllib3/ connection. py", line 144, in _new_conn subiquity/ 2280/usr/ lib/python3/ dist-packages/ urllib3/ util/connection .py", line 60, in create_connection getaddrinfo( host, port, family, socket. SOCK_STREAM) : subiquity/ 2280/usr/ lib/python3. 6/socket. py", line 745, in getaddrinfo getaddrinfo( host, port, family, type, proto, flags):
2021-06-24 03:37:35,124 DEBUG subiquitycore.
2021-06-24 03:37:35,130 ERROR subiquity.
Traceback (most recent call last):
File "/snap/
(self.host, self.port), self.timeout, **extra_kw)
File "/snap/
for res in socket.
File "/snap/
for res in _socket.
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred: