cobbler
cobbler copied to clipboard
The management interface if not found in tftpgen
Describe the bug
On a server with several network interfaces, I need to specify which network interface to use for network install.
The interface has management set to True. However, the boot file generated by tftpgen does not include the correct interface.
Steps to reproduce
- Create a system with a management interface and netboot enabled
root@cobblerlab:~# cobbler system add --name foo --interface eno4 --profile generic-debian-11 --mac-address 00:11:22:33:44:55 --management true --netboot 1
root@cobblerlab:~# cobbler system report --name foo
Name : foo
Automatic Installation Template : <<inherit>>
Automatic Installation Template Metadata : <<inherit>>
TFTP Boot Files : <<inherit>>
Boot loaders : <<inherit>>
Comment :
Enable iPXE? : <<inherit>>
Fetchable Files : <<inherit>>
DHCP Filename Override : <<inherit>>
Gateway :
Hostname :
Image :
IPv6 Autoconfiguration : False
IPv6 Default Device :
Kernel Options : <<inherit>>
Kernel Options (Post Install) : <<inherit>>
Management Classes : <<inherit>>
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Netboot Enabled : True
Next Server (IPv4) Override : <<inherit>>
Next Server (IPv6) Override : <<inherit>>
Owners : <<inherit>>
Power Management Address :
Power Management ID :
Power Identity File :
Power Management Options :
Power Management Password :
Power Management Type :
Power Management Username :
Profile : generic-debian-11
Internal Proxy : <<inherit>>
Redhat Management Key : <<inherit>>
Repos Enabled : False
Serial Baud Rate : -1
Serial Device # : -1
Server Override : <<inherit>>
Status :
Template Files : {}
Virt Auto Boot : <<inherit>>
Virt CPUs : <<inherit>>
Virt Disk Driver Type : <<inherit>>
Virt File Size(GB) : <<inherit>>
Virt Path : <<inherit>>
Virt PXE Boot : False
Virt RAM (MB) : <<inherit>>
Virt Type : <<inherit>>
Interface ===== : eno4
Bonding Opts :
Bridge Opts :
CNAMES : []
InfiniBand Connected Mode : False
DHCP Tag :
DNS Name :
Per-Interface Gateway :
Master Interface :
Interface Type : NA
IP Address :
IPv6 Address :
IPv6 Default Gateway :
IPv6 MTU :
IPv6 Prefix :
IPv6 Secondaries : []
IPv6 Static Routes : []
MAC Address : 00:11:22:33:44:55
Management Interface : True
MTU :
Subnet Mask :
Static : False
Static Routes : []
Virt Bridge :
- Check the boot file
root@cobblerlab:~# cat /srv/tftp/pxelinux.cfg/01-00-11-22-33-44-55
timeout 1
prompt 0
default foo
ontimeout foo
LABEL foo
MENU LABEL foo
kernel /images/debian-11/linux
append initrd=/images/debian-11/initrd.gz auto-install/enable=true priority=critical netcfg/choose_interface=auto url=http://172.31.0.10/cblr/svc/op/autoinstall/system/foo hostname=foo domain=local.lan suite=
ipappend 2
The netcfg/choose_interface=eno4
is missing.
Expected behavior
root@cobblerlab:~# cat /srv/tftp/pxelinux.cfg/01-00-11-22-33-44-55
timeout 1
prompt 0
default foo
ontimeout foo
LABEL foo
MENU LABEL foo
kernel /images/debian-11/linux
append initrd=/images/debian-11/initrd.gz auto-install/enable=true priority=critical netcfg/choose_interface=auto url=http://172.31.0.10/cblr/svc/op/autoinstall/system/foo netcfg/choose_interface=eno4 hostname=foo domain=local.lan suite=
ipappend 2
or even
root@cobblerlab:~# cat /srv/tftp/pxelinux.cfg/01-00-11-22-33-44-55
timeout 1
prompt 0
default foo
ontimeout foo
LABEL foo
MENU LABEL foo
kernel /images/debian-11/linux
append initrd=/images/debian-11/initrd.gz auto-install/enable=true priority=critical url=http://172.31.0.10/cblr/svc/op/autoinstall/system/foo netcfg/choose_interface=eno4 hostname=foo domain=local.lan suite=
ipappend 2
Cobbler version
Cobbler 3.3.2
source: ?, ?
build time: Thu Jun 9 20:46:00 2022
- backport patches, see https://github.com/cobbler/cobbler/compare/v3.3.2...btravouillon:cobbler:b3.3.2+patches
Operating system
Debian 11
Cobbler log
n/a
Screenshots
n/a
Additional information
n/a