actatux
May 3rd, 2023, 04:24 PM
Hello,
I have been searching for the past two hours but could not find any relevant documentation to select the network interface for server installation through PXE. Before 22.04, I was using preseed and the Debian installer to install Ubuntu. It was possible to select the network interface with `netcfg/choose_interface=enp5s0f0`.
On a new server with several network interfaces, the installer fails:
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp5s0f1/3c:ec:ef:ab:84:71
Sending on LPF/enp5s0f1/3c:ec:ef:ab:84:71
Listening on LPF/enp5s0f0/3c:ec:ef:ab:84:70
Sending on LPF/enp5s0f0/3c:ec:ef:ab:84:70
Listening on LPF/enxb03af2b6059f/b0:3a:f2:b6:05:9f
Sending on LPF/enxb03af2b6059f/b0:3a:f2:b6:05:9f
Sending on Socket/fallback
DHCPDISCOVER on enp5s0f1 to 255.255.255.255 port 67 interval 3 (xid=0x62bfe01)
DHCPDISCOVER on enp5s0f0 to 255.255.255.255 port 67 interval 3 (xid=0x6491ed53)
DHCPDISCOVER on enxb03af2b6059f to 255.255.255.255 port 67 interval 3 (xid=0x175fc50d)
DHCPOFFER of 169.254.3.1 from 169.254.3.254
DHCPREQUEST for 169.254.3.1 on enxb03af2b6059f to 255.255.255.255 port 67 (xid=0xdc55f17)
DHCPACK of 169.254.3.1 from 169.254.3.254 (xid=0x175fc50d)
bound to 169.254.3.1 -- renewal in 385886 seconds.
no search or nameservers found in /run/net-enxb03af2b6059f.conf /run/net-enxb03af2b6059f.conf /run/net6-*.conf
Begin: Running /scripts/casper-premount ... done.
done.
Begin: Trying netboot from : ... Begin: Trying to download and mount http://mirror.example.tld/mirror/iso/ubuntu-22.04.2-live-server-amd64.iso ... wget: bad address 'mirror.example.tld'
done.
Unable to find a live file system on the network
[ 77.075801] ixgbe 0000:05:00.0 enp5s0f0: NIC Link is Up 10 Gbps, Flow Control: None
[ 77.093974] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0f0: link becomes ready
(initramfs) cat /proc/cmdline
BOOT_IMAGE=/images/ubuntu-22.04/vmlinuz console=tty0 console=ttyS1,115200 iommu=pt autoinstall ip=dhcp cloud-config-url=/dev/null url=http://mirror.example.tld/mirror/iso/ubuntu-22.04.2-live-server-amd64.iso ds=nocloud-net;s=http://172.16.2.8/cblr/svc/op/autoinstall/system/dn/ ethdevice-timeout=30 live-netdev=enp5s0f0
(initramfs) ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enxb03af2b6059f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether b0:3a:f2:b6:05:9f brd ff:ff:ff:ff:ff:ff
inet 169.254.3.1/24 brd 169.254.3.255 scope global enxb03af2b6059f
valid_lft forever preferred_lft forever
inet6 fe80::b23a:f2ff:feb6:59f/64 scope link
valid_lft forever preferred_lft forever
3: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether 3c:ec:ef:ab:84:70 brd ff:ff:ff:ff:ff:ff
inet6 fe80::3eec:efff:feab:8470/64 scope link
valid_lft forever preferred_lft forever
4: enp5s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq qlen 1000
link/ether 3c:ec:ef:ab:84:71 brd ff:ff:ff:ff:ff:ff
The PXE boot file is:
cobbler:~$ cat /srv/tftp/grub/system/3c:ec:ef:ab:84:70
set system="dn-b001"
set timeout=1
set default='dn-b001'
menuentry 'dn-b001' --class gnu-linux --class gnu --class os {
echo 'Loading kernel ...'
clinux /images/ubuntu-22.04/vmlinuz console=tty0 console=ttyS1,115200 iommu=pt autoinstall ip=dhcp cloud-config-url=/dev/null url=http://mirror.example.tld/mirror/iso/ubuntu-22.04.2-live-server-amd64.iso "ds=nocloud-net;s=http://192.168.0.8/cblr/svc/op/autoinstall/system/dn/" ethdevice-timeout=30 live-netdev=enp5s0f0
echo 'Loading initial ramdisk ...'
cinitrd /images/ubuntu-22.04/initrd
echo '...done'
}
Do you know where I could find appropriate documentation to select the network interface with the new Ubuntu installer?
I have been searching for the past two hours but could not find any relevant documentation to select the network interface for server installation through PXE. Before 22.04, I was using preseed and the Debian installer to install Ubuntu. It was possible to select the network interface with `netcfg/choose_interface=enp5s0f0`.
On a new server with several network interfaces, the installer fails:
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp5s0f1/3c:ec:ef:ab:84:71
Sending on LPF/enp5s0f1/3c:ec:ef:ab:84:71
Listening on LPF/enp5s0f0/3c:ec:ef:ab:84:70
Sending on LPF/enp5s0f0/3c:ec:ef:ab:84:70
Listening on LPF/enxb03af2b6059f/b0:3a:f2:b6:05:9f
Sending on LPF/enxb03af2b6059f/b0:3a:f2:b6:05:9f
Sending on Socket/fallback
DHCPDISCOVER on enp5s0f1 to 255.255.255.255 port 67 interval 3 (xid=0x62bfe01)
DHCPDISCOVER on enp5s0f0 to 255.255.255.255 port 67 interval 3 (xid=0x6491ed53)
DHCPDISCOVER on enxb03af2b6059f to 255.255.255.255 port 67 interval 3 (xid=0x175fc50d)
DHCPOFFER of 169.254.3.1 from 169.254.3.254
DHCPREQUEST for 169.254.3.1 on enxb03af2b6059f to 255.255.255.255 port 67 (xid=0xdc55f17)
DHCPACK of 169.254.3.1 from 169.254.3.254 (xid=0x175fc50d)
bound to 169.254.3.1 -- renewal in 385886 seconds.
no search or nameservers found in /run/net-enxb03af2b6059f.conf /run/net-enxb03af2b6059f.conf /run/net6-*.conf
Begin: Running /scripts/casper-premount ... done.
done.
Begin: Trying netboot from : ... Begin: Trying to download and mount http://mirror.example.tld/mirror/iso/ubuntu-22.04.2-live-server-amd64.iso ... wget: bad address 'mirror.example.tld'
done.
Unable to find a live file system on the network
[ 77.075801] ixgbe 0000:05:00.0 enp5s0f0: NIC Link is Up 10 Gbps, Flow Control: None
[ 77.093974] IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0f0: link becomes ready
(initramfs) cat /proc/cmdline
BOOT_IMAGE=/images/ubuntu-22.04/vmlinuz console=tty0 console=ttyS1,115200 iommu=pt autoinstall ip=dhcp cloud-config-url=/dev/null url=http://mirror.example.tld/mirror/iso/ubuntu-22.04.2-live-server-amd64.iso ds=nocloud-net;s=http://172.16.2.8/cblr/svc/op/autoinstall/system/dn/ ethdevice-timeout=30 live-netdev=enp5s0f0
(initramfs) ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enxb03af2b6059f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether b0:3a:f2:b6:05:9f brd ff:ff:ff:ff:ff:ff
inet 169.254.3.1/24 brd 169.254.3.255 scope global enxb03af2b6059f
valid_lft forever preferred_lft forever
inet6 fe80::b23a:f2ff:feb6:59f/64 scope link
valid_lft forever preferred_lft forever
3: enp5s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether 3c:ec:ef:ab:84:70 brd ff:ff:ff:ff:ff:ff
inet6 fe80::3eec:efff:feab:8470/64 scope link
valid_lft forever preferred_lft forever
4: enp5s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq qlen 1000
link/ether 3c:ec:ef:ab:84:71 brd ff:ff:ff:ff:ff:ff
The PXE boot file is:
cobbler:~$ cat /srv/tftp/grub/system/3c:ec:ef:ab:84:70
set system="dn-b001"
set timeout=1
set default='dn-b001'
menuentry 'dn-b001' --class gnu-linux --class gnu --class os {
echo 'Loading kernel ...'
clinux /images/ubuntu-22.04/vmlinuz console=tty0 console=ttyS1,115200 iommu=pt autoinstall ip=dhcp cloud-config-url=/dev/null url=http://mirror.example.tld/mirror/iso/ubuntu-22.04.2-live-server-amd64.iso "ds=nocloud-net;s=http://192.168.0.8/cblr/svc/op/autoinstall/system/dn/" ethdevice-timeout=30 live-netdev=enp5s0f0
echo 'Loading initial ramdisk ...'
cinitrd /images/ubuntu-22.04/initrd
echo '...done'
}
Do you know where I could find appropriate documentation to select the network interface with the new Ubuntu installer?