[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP network failed after initrd.img loading



I have tried to PXE boot with static IP :

https://manpages.debian.org/bullseye/live-boot-doc/live-boot.7.en.html#ip

ip=[DEVICE]:[CLIENT_IP]:[NETMASK]:[GATEWAY_IP]:[NAMESERVER] [,[DEVICE]:[CLIENT_IP]:[NETMASK]:[GATEWAY_IP]:[NAMESERVER]]
    Let you specify the name(s) and the options of the interface(s) that should be configured at boot time. Do not specify this if you want to use dhcp (default). It will be changed in a future release to mimic official kernel boot param specification (e.g. ip=10.0.0.1::10.0.0.254:255.255.255.0::eth0,:::::eth1:dhcp).

both old and new 'ip=' format failed :

+ tailpid=1326
+ tail -f boot.log
+ cat /proc/cmdline
+ LIVE_BOOT_CMDLINE='BOOT_IMAGE=http://10.1.1.8/live/vmlinuz initrd=http://10.1.1.8/live/initrd.img boot=live components fetch=http://10.1.1.8/live/filesystem.squashfs keyboard-layouts=en username=root net.ifnames=0 debug ip=eth0:10.3.2.1:255.255.255.192:10.3.2.193:'
+ Cmdline_old
+ FETCH=http://10.1.1.8/live/filesystem.squashfs
+ export FETCH
+ STATICIP=eth0:10.3.2.1:255.255.255.192:10.3.2.193:
+ '[' -z eth0:10.3.2.1:255.255.255.192:10.3.2.193: ]
+ export STATICIP
+ '[' -z  ]
+ '['  '=' /dev/nfs ]
+ '['  '=' /dev/cifs ]
+ '[' -z  ]
+ MODULE=filesystem
+ export MODULE
+ '[' -z  ]
+ UNIONTYPE=overlay
+ export UNIONTYPE
+ '[' -z  ]
+ PERSISTENCE_ENCRYPTION=none
+ export PERSISTENCE_ENCRYPTION
+ '[' -z  ]
+ PERSISTENCE_METHOD=overlay
+ export PERSISTENCE_METHOD
+ '[' -z  ]
+ PERSISTENCE_STORAGE=filesystem,file
+ export PERSISTENCE_STORAGE
+ Debug
+ LIVE_BOOT_DEBUG=true
+ set -x
+ Read_only
+ return 0
+ Select_eth_device
+ egrep '^BOOT=' /conf/initramfs.conf
+ tail -1
+ bootconf='BOOT=nfs'
+ '[' 'BOOT=nfs' '!=' 'BOOT=nfs' ]
+ modprobe -q af_packet
+ udevadm trigger
+ udevadm settle
+ l_interfaces=
+ Device_from_bootif
+ '[' -n  ]
+ '[' -z  ]
+ uname -r
+ echo 'Waiting for ethernet card(s) up... If this fails, maybe the ethernet card is not supported by the kernel 5.18.0-4-amd64?'
Waiting for ethernet card(s) up... If this fails, maybe the ethernet card is not supported by the kernel 5.18.0-4-amd64?
+ '[' -z  ]
+ cd /sys/class/net/
+ ls -d eth0 eth1 lo
+ grep -v lo
+ l_interfaces='eth0
eth1'
+ '[' -z 'eth0
eth1' ]
+ echo eth0 eth1
+ wc -w
+ '[' 2 -lt 2 ]
+ found_eth_dev=
+ true
+ echo -n 'Looking for a connected Ethernet interface ...'
Looking for a connected Ethernet interface ...+ echo -n ' eth0 ?'
 eth0 ?+ ipconfig -c none -d eth0 -t 1
+ sleep 1
+ echo -n ' eth1 ?'
 eth1 ?+ ipconfig -c none -d eth1 -t 1
+ sleep 1
+ echo

+ ip link set eth0 up
+ cat /sys/class/net/eth0/carrier
+ carrier=1
+ echo 'Connected eth0 found'
Connected eth0 found
+ found_eth_dev=' eth0'
+ echo eth0
+ sed -e 's/^[[:space:]]*//g'
+ found_eth_dev=eth0
+ ip link set eth1 up
+ cat /sys/class/net/eth1/carrier
+ carrier=1
+ echo 'Connected eth1 found'
Connected eth1 found
+ found_eth_dev='eth0 eth1'
+ echo eth0 eth1
+ sed -e 's/^[[:space:]]*//g'
+ found_eth_dev='eth0 eth1'
+ '[' -n 'eth0 eth1' ]
+ echo 'DEVICE='"'"'eth0 eth1'"'"
+ return
+ '[' -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE='eth0 eth1'
+ '[' -n  ]
+ '[' -n http://10.1.1.8/live/filesystem.squashfs ]
+ do_netmount
+ do_netsetup
+ modprobe -q af_packet
+ udevadm trigger
+ udevadm settle
+ '[' -n  ]
+ ETHDEV_TIMEOUT=15
+ echo 'Using timeout of 15 seconds for network configuration.'
Using timeout of 15 seconds for network configuration.
+ '[' -z  ]
+ '[' -z http://10.1.1.8/live/filesystem.squashfs ]
+ ipconfig -t 15 eth0
+ tee /netboot-eth0.config
IP-Config: eth0 hardware address 08:c0:eb:bf:ac:48 mtu 1500 DHCP RARP
IP-Config: no response after 15 secs - giving up
+ '[' -e /run/net-eth0.conf ]
+ . /run/net-eth0.conf
+ DEVICE=eth0
+ PROTO=none
+ IPV4ADDR=0.0.0.0
+ IPV4BROADCAST=0.255.255.255
+ IPV4NETMASK=255.0.0.0
+ IPV4GATEWAY=0.0.0.0
+ IPV4DNS0=0.0.0.0
+ IPV4DNS1=0.0.0.0
+ HOSTNAME=
+ DNSDOMAIN=
+ NISDOMAIN=
+ ROOTSERVER=0.0.0.0
+ ROOTPATH=
+ filename=
+ UPTIME=7
+ DHCPLEASETIME=0
+ DOMAINSEARCH=
+ '[' 0.0.0.0 '!=' 0.0.0.0 ]
+ ipconfig -t 15 eth1
+ tee /netboot-eth1.config
IP-Config: eth1 hardware address 08:c0:eb:... mtu 1500 DHCP RARP
IP-Config: no response after 15 secs - giving up

new 'ip=' format :

+ tailpid=1277
+ tail -f boot.log
+ cat /proc/cmdline
+ LIVE_BOOT_CMDLINE='BOOT_IMAGE=http://10.1.1.8/live/vmlinuz initrd=http://10.1.1.8/live/initrd.img boot=live components fetch=http://10.1.1.8/live/filesystem.squashfs keyboard-layouts=en username=root net.ifnames=0 debug ip=10.3.2.1::10.3.2.193:255.255.255.192::eth0'
+ Cmdline_old
+ FETCH=http://10.1.1.8/live/filesystem.squashfs
+ export FETCH
+ STATICIP=10.3.2.1::10.3.2.193:255.255.255.192::eth0
+ '[' -z 10.3.2.1::10.3.2.193:255.255.255.192::eth0 ]
+ export STATICIP
+ '[' -z  ]
+ '['  '=' /dev/nfs ]
+ '['  '=' /dev/cifs ]
+ '[' -z  ]
+ MODULE=filesystem
+ export MODULE
+ '[' -z  ]
+ UNIONTYPE=overlay
+ export UNIONTYPE
+ '[' -z  ]
+ PERSISTENCE_ENCRYPTION=none
+ export PERSISTENCE_ENCRYPTION
+ '[' -z  ]
+ PERSISTENCE_METHOD=overlay
+ export PERSISTENCE_METHOD
+ '[' -z  ]
+ PERSISTENCE_STORAGE=filesystem,file
+ export PERSISTENCE_STORAGE
+ Debug
+ LIVE_BOOT_DEBUG=true
+ set -x
+ Read_only
+ return 0
+ Select_eth_device
+ egrep '^BOOT=' /conf/initramfs.conf
+ tail -1
+ bootconf='BOOT=nfs'
+ '[' 'BOOT=nfs' '!=' 'BOOT=nfs' ]
+ modprobe -q af_packet
+ udevadm trigger
+ udevadm settle
+ l_interfaces=
+ Device_from_bootif
+ '[' -n  ]
+ '[' -z  ]
+ uname -r
+ echo 'Waiting for ethernet card(s) up... If this fails, maybe the ethernet card is not supported by the kernel 5.18.0-4-amd64?'
Waiting for ethernet card(s) up... If this fails, maybe the ethernet card is not supported by the kernel 5.18.0-4-amd64?
+ '[' -z  ]
+ cd /sys/class/net/
+ ls -d eth0 eth1 lo
+ grep -v lo
+ l_interfaces='eth0
eth1'
+ '[' -z 'eth0
eth1' ]
+ echo eth0 eth1
+ wc -w
+ '[' 2 -lt 2 ]
+ found_eth_dev=
+ true
+ echo -n 'Looking for a connected Ethernet interface ...'
Looking for a connected Ethernet interface ...+ echo -n ' eth0 ?'
 eth0 ?+ ipconfig -c none -d eth0 -t 1
+ sleep 1
+ echo -n ' eth1 ?'
 eth1 ?+ ipconfig -c none -d eth1 -t 1
+ sleep 1
+ echo

+ ip link set eth0 up
+ cat /sys/class/net/eth0/carrier
+ carrier=1
+ echo 'Connected eth0 found'
Connected eth0 found
+ found_eth_dev=' eth0'
+ echo eth0
+ sed -e 's/^[[:space:]]*//g'
+ found_eth_dev=eth0
+ ip link set eth1 up
+ cat /sys/class/net/eth1/carrier
+ carrier=1
+ echo 'Connected eth1 found'
Connected eth1 found
+ found_eth_dev='eth0 eth1'
+ echo eth0 eth1
+ sed -e 's/^[[:space:]]*//g'
+ found_eth_dev='eth0 eth1'
+ '[' -n 'eth0 eth1' ]
+ echo 'DEVICE='"'"'eth0 eth1'"'"
+ return
+ '[' -e /conf/param.conf ]
+ . /conf/param.conf
+ DEVICE='eth0 eth1'
+ '[' -n  ]
+ '[' -n http://10.1.1.8/live/filesystem.squashfs ]
+ do_netmount
+ do_netsetup
+ modprobe -q af_packet
+ udevadm trigger
+ udevadm settle
+ '[' -n  ]
+ ETHDEV_TIMEOUT=15
+ echo 'Using timeout of 15 seconds for network configuration.'
Using timeout of 15 seconds for network configuration.
+ '[' -z  ]
+ '[' -z http://10.1.1.8/live/filesystem.squashfs ]
+ ipconfig -t 15 eth0
+ tee /netboot-eth0.config
IP-Config: eth0 hardware address 08:c0:eb:bf:ac:48 mtu 1500 DHCP RARP
IP-Config: no response after 15 secs - giving up
+ '[' -e /run/net-eth0.conf ]
+ . /run/net-eth0.conf
+ DEVICE=eth0
+ PROTO=none
+ IPV4ADDR=0.0.0.0
+ IPV4BROADCAST=0.255.255.255
+ IPV4NETMASK=255.0.0.0
+ IPV4GATEWAY=0.0.0.0
+ IPV4DNS0=0.0.0.0
+ IPV4DNS1=0.0.0.0
+ HOSTNAME=
+ DNSDOMAIN=
+ NISDOMAIN=
+ ROOTSERVER=0.0.0.0
+ ROOTPATH=
+ filename=
+ UPTIME=7
+ DHCPLEASETIME=0
+ DOMAINSEARCH=
+ '[' 0.0.0.0 '!=' 0.0.0.0 ]
+ ipconfig -t 15 eth1
+ tee /netboot-eth1.config
IP-Config: eth1 hardware address 08:c0:eb:... mtu 1500 DHCP RARP
IP-Config: no response after 15 secs - giving up

Reply to: