ip=:::
This is the magical one, which lets the
kernellive os do a additional dhcp request which leads into an proper dns setup, If this doesn't work for you, there might be another issue, but I will try to reproduce this tomorrow.
I've removed everything useless and even if i tried ip=::: before it didn't work but now it works just fine, maybe IPAPPEND 2 was causing some conflict.
For future users this is my current pxelinux config
LABEL archlinux
MENU LABEL Arch Linux x86_64
LINUX /archlinux/arch/boot/x86_64/vmlinuz-linux
APPEND archisobasedir=arch archiso_http_srv=http://pxe.mysite.com/archlinux/ initrd=http://pxe.mysite.com/archlinux/arch/boot/x86_64/initramfs-linux.img,http://pxe.mysite.com/archlinux/arch/boot/intel-ucode.img,http://pxe.mysite.com/archlinux/arch/boot/amd-ucode.img ip=:::
TEXT HELP
Arch Linux 2020.10.01 x86_64
ENDTEXT
Danke StingA0815
]]>script={{ BaseURL }}/template/preseed/{{ Hostname }}/{{ Token }}
This is the script which will be executed once the live OS is up and running. I use this for unattended installations, if you are interested, I can provide them. In this case this is rendered by waitron. https://github.com/ns1/waitron
net.ifnames=0 copy_resolvconf=n
This is random stuff which I never removed after it worked
ifnames -> https://www.freedesktop.org/wiki/Softwa … faceNames/
copy_resolvconf -> afaik I picked it up in the common hook
ip=:::
This is the magical one, which lets the kernel live os do a additional dhcp request which leads into an proper dns setup, If this doesn't work for you, there might be another issue, but I will try to reproduce this tomorrow.
Yes, you are absolutely right in the pxe Linux config context.
Tried but still can't get those dns
This is my config
LABEL archlinux-test3
MENU LABEL Arch Linux TEST3 x86_64
LINUX /archlinux/arch/boot/x86_64/vmlinuz-linux
IPAPPEND 2
APPEND archisobasedir=arch archiso_http_srv=http://pxe.mysite.com/archlinux/ initrd=http://pxe.mysite.com/archlinux/arch/boot/x86_64/initramfs-linux.img,http://pxe.mysite.com/archlinux/arch/boot/intel-ucode.img,http://pxe.mysite.com/archlinux/arch/boot/amd-ucode.img script={{ BaseURL }}/template/preseed/{{ Hostname }}/{{ Token }} net.ifnames=0 copy_resolvconf=n ip=:::
SYSAPPEND 3
TEXT HELP
Arch Linux 2020.10.01 x86_64
ENDTEXT
Do i need to replace BaseURL, Hostname and Token? Doubt but if yes, what are they refering to?
]]>Sure
cmdline: "archisobasedir=arch archiso_http_srv=http://ftp-stud.hs-esslingen.de/Mirrors/archlinux/iso/latest/ script={{ BaseURL }}/template/preseed/{{ Hostname }}/{{ Token }} net.ifnames=0 copy_resolvconf=n ip=:::"
If you have any further questions, you are welcome.
Sorry but do i have to place that on append right? on pxelinux.cfg/default?
This is my current config
LABEL archlinux-test2
MENU LABEL Arch Linux TEST2 x86_64
LINUX /archlinux/arch/boot/x86_64/vmlinuz-linux
IPAPPEND 2
APPEND archisobasedir=arch archiso_http_srv=http://pxe.mysite.com/archlinux/ initrd=http://pxe.mysite.com/archlinux/arch/boot/x86_64/initramfs-linux.img,http://pxe.mysite.com/archlinux/arch/boot/intel-ucode.img,http://pxe.mysite.com/archlinux/arch/boot/amd-ucode.img
SYSAPPEND 3
TEXT HELP
Arch Linux 2020.10.01 x86_64
ENDTEXT
Thanks a lot for helping, i'm starting to go crazy with pxe.
]]>cmdline: "archisobasedir=arch archiso_http_srv=http://ftp-stud.hs-esslingen.de/Mirrors/archlinux/iso/latest/ script={{ BaseURL }}/template/preseed/{{ Hostname }}/{{ Token }} net.ifnames=0 copy_resolvconf=n ip=:::"
If you have any further questions, you are welcome.
]]>if
so if I set
ip=:::
everything works!
Can't undestand how did you solve it. Could you please paste your complete config? Thanks.
]]>Here's some documentation:
Doc/syslinux - Syslinux Wiki
archiso.git - The official archiso scripts repo (see hooks/archiso_pxe_common)
IPAPPEND 2
is set, only
BOOTIF=01-52-54-00-cd-84-38
is appended :-/
I checked the archiso_pxe_common hook
if [[ -n "${BOOTIF}" ]]; then
bootif_mac=${BOOTIF#01-}
bootif_mac=${bootif_mac//-/:}
for i in /sys/class/net/*/address; do
read net_mac < ${i}
if [[ "${bootif_mac}" == "${net_mac}" ]]; then
bootif_dev=${i#/sys/class/net/}
bootif_dev=${bootif_dev%/address}
break
fi
done
ip="${ip}::${bootif_dev}"
fi
so if I set
ip=:::
everything works!
can't find any doku for the
IPAPPEND
ist there anything?
Thank you very much!
]]>Ok, the IP settings are not passed now \o/.
tried adding them like
ip=:::::eth0:dhcp
then I'm getting
:: running hook [udev] :: Triggering uevents... :: running hook [memdisk] :: running hook [archiso] :: running hook [archiso_loop_mnt] :: running hook [archiso_pxe_common] ipconfig: too many options for eth0 fallback...
checked the README, that should work?
edit:
an manual ipconfig :::::eth0:dhcp in the fallback promt works
When booting with
IPAPPEND 2
what do do the boot parameters look like? Show the output of
cat /proc/cmdline
pxelinux should append something like this:
ip=::: BOOTIF=01-52-54-00-cd-84-38
If the ip parameter is missing try to add it, with tree colons.
]]>tried adding them like
ip=:::::eth0:dhcp
then I'm getting
:: running hook [udev]
:: Triggering uevents...
:: running hook [memdisk]
:: running hook [archiso]
:: running hook [archiso_loop_mnt]
:: running hook [archiso_pxe_common]
ipconfig: too many options for eth0
fallback...
checked the README, that should work?
edit:
an manual ipconfig :::::eth0:dhcp in the fallback promt works
BOOT_IMAGE=boot/Archlinux-1.0-x86_64-linux copy_resolvconf=n archisobasedir=arch archiso_http_srv=http://ftp-stud.fht-esslingen.de/pub/Mirrors/archlinux/iso/latest/ script=http://foreman.stinga.local:80/unattended/provision?token=7c45ca94-1c93-42af-a624-4077e06382ee net.ifnames=0 initrd=boot/Archlinux-1.0-x86_64-initrd ip=192.168.178.100:192.168.178.10:192.168.178.1:255.255.255.0 BOOTIF=01-52-54-00-cd-84-38
I've tried setting the ip manually in the pxe.cfg, then it's set twice. thought I read that the ip settings are passed from pxe?
Damn, my browser discarded my detailed reply... So in short for now:
Replace the IPAPPEND line with
IPAPPEND 2
and try again.
]]>BOOT_IMAGE=boot/Archlinux-1.0-x86_64-linux copy_resolvconf=n archisobasedir=arch archiso_http_srv=http://ftp-stud.fht-esslingen.de/pub/Mirrors/archlinux/iso/latest/ script=http://foreman.stinga.local:80/unattended/provision?token=7c45ca94-1c93-42af-a624-4077e06382ee net.ifnames=0 initrd=boot/Archlinux-1.0-x86_64-initrd ip=192.168.178.100:192.168.178.10:192.168.178.1:255.255.255.0 BOOTIF=01-52-54-00-cd-84-38
I've tried setting the ip manually in the pxe.cfg, then it's set twice. thought I read that the ip settings are passed from pxe?
]]>cat /proc/cmdline
in interactive prompt?
]]>