dbrazeau |
08-15-2018 03:56 PM |
Need help trying to get PXE boot to use NBD for rootfs
So I am not sure where I am going wrong. I have all my stuff setup on my server and am able to PXE boot using both an NFS file system and using a file system image with http, but I can't seem to get it to work using a file system image with NBD.
nbd-server config:
Code:
[generic]
[export]
exportname = /mnt/tftpboot/rootfs.img
port = 2000
copyonwrite = false
pxelinux config:
Code:
DEFAULT pxeboot
TIMEOUT 20
PROMPT 0
LABEL pxeboot
KERNEL vmlinuz
APPEND initrd=initrd.img ip=enp10s0f1:dhcp root-path=nbd:192.168.1.2:export root=dhcp console=tty0 console=ttyS0,115200n8
ONERROR LOCALBOOT 0
client output:
Code:
[ 7.330300] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 7.337341] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 7.400354] igb 0000:0a:00.0: added PHC on eth0
[ 7.404975] igb 0000:0a:00.0: Intel(R) Gigabit Ethernet Network Connection
[ 7.411931] igb 0000:0a:00.0: eth0: (PCIe:5.0Gb/s:Width x4) 00:1b:ac:00:42:27
[ 7.419151] igb 0000:0a:00.0: eth0: PBA No: Unknown
[ 7.424114] igb 0000:0a:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.441632] 8021q: 802.1Q VLAN Support v1.8
[ 7.487602] igb 0000:0a:00.1: added PHC on eth1
[ 7.492228] igb 0000:0a:00.1: Intel(R) Gigabit Ethernet Network Connection
[ 7.499193] igb 0000:0a:00.1: eth1: (PCIe:5.0Gb/s:Width x4) 00:1b:ac:00:42:28
[ 7.506415] igb 0000:0a:00.1: eth1: PBA No: Unknown
[ 7.511381] igb 0000:0a:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s)
[ 7.520442] igb 0000:0a:00.1 enp10s0f1: renamed from eth1
[ 7.534336] igb 0000:0a:00.0 enp10s0f0: renamed from eth0
[ OK ] Started udev Wait for Complete Device Initialization.
[ 7.623234] audit: type=1130 audit(1532747553.622:11): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udev-settle comm="systemd
" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Starting Device-Mapper Multipath Device Controller...
[ OK ] Started Device-Mapper Multipath Device Controller.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Reached target System Initialization.
[ OK ] Reached target Basic System.
[ 7.773625] IPv6: ADDRCONF(NETDEV_UP): enp10s0f1: link is not ready
[ 7.780010] 8021q: adding VLAN 0 to HW filter on device enp10s0f1
[ 11.351492] igb 0000:0a:00.1 enp10s0f1: igb: enp10s0f1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 11.362031] IPv6: ADDRCONF(NETDEV_CHANGE): enp10s0f1: link becomes ready
[ 15.196203] dracut-initqueue[545]: Warning: No dhcp root-path received for '' trying other interfaces if available
[ 91.744264] random: crng init done
[ 147.296972] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 147.868973] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 148.418432] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 148.970222] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 149.523491] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 150.074389] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 150.623440] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 151.173637] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 151.719875] dracut-initqueue[545]: Warning: dracut-initqueue timeout - starting timeout scripts
No matter what I do I always seem to get the error
Code:
dracut-initqueue[545]: Warning: No dhcp root-path received for '' trying other interfaces if available
as if I am not providing the root-path option (which I am). As a test I was able to use nbd-client to connect to NBD export locally on the server, so as far as I can tell the nbd-server configure is ok and working. Any ideas what I might be doing wrong? Is it possible that the kernel/initrd I'm using doesn't support NBD?
For reference I'm using the kernel and initrd shipped with the Fedora 28 LiveCD image.
|