set net0.dhcp/hostname not working as expected
|
2016-05-10, 10:07
Post: #2
|
|||
|
|||
RE: set net0.dhcp/hostname not working as expected
(2016-05-08 15:53)mysterysmith Wrote: Perhaps my expectations are off but, if I have the following script: You are not doing anything that will pass iPXE's concept of the hostname through to your Linux OS. You are currently going via pxelinux, so you would need to find a way to get pxelinux to pass a hostname through to your OS. If you avoid using pxelinux and instead use iPXE to load your kernel+initrd directly, then you can pass iPXE's hostname as a kernel command-line parameter. For example: Code: kernel vmlinuz hostname=${hostname} If you then examine /proc/cmdline from within the running OS, you will see "hostname=abc.123" as expected. Unfortunately, each Linux distro handles networking command-line parameters in a different way. You will need to find out what syntax your distro requires in order to set the hostname via a kernel command-line parameter. Michael |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
set net0.dhcp/hostname not working as expected - mysterysmith - 2016-05-08, 15:53
RE: set net0.dhcp/hostname not working as expected - mcb30 - 2016-05-10 10:07
RE: set net0.dhcp/hostname not working as expected - bothwell - 2019-01-07, 10:33
RE: set net0.dhcp/hostname not working as expected - NiKiZe - 2019-01-07, 19:14
RE: set net0.dhcp/hostname not working as expected - NiKiZe - 2016-05-10, 22:43
RE: set net0.dhcp/hostname not working as expected - bothwell - 2019-01-07, 20:01
|
User(s) browsing this thread: 3 Guest(s)