[gPXE] Not able to access Internet with sanboot

Stefan Hajnoczi stefanha at gmail.com
Wed Feb 17 15:55:04 EST 2010


On Wed, Feb 17, 2010 at 8:16 PM, Andy Chen <andychen_ca at hotmail.com> wrote:
> My NetworkManager shows that the wired and wireless network "device not
> managed" after iscsi boot but is normal while not using iscsi boot.
> that is why I think might be something wrong with iscsi boot.

NetworkManager may be confused because the eth0 network interface is
already configured earlier during boot for iSCSI.  Normally it manages
network interfaces and it may be skipping this interface because it
sees it has been configured by some other mechanism.

I don't use NetworkManager, perhaps someone else knows how to
integrate iSCSI boot with NetworkManager?

> [root at localhost Bell]# cat /etc/resolv.conf
> # Generated by NetworkManager
>
>
> # No nameservers found; try putting DNS servers into your
> # ifcfg files in /etc/sysconfig/network-scripts like so:
> #
> # DNS1=xxx.xxx.xxx.xxx
> # DNS2=xxx.xxx.xxx.xxx
> # DOMAIN=lab.foo.com bar.foo.com

Here is the problem: no DNS servers have been defined.  Looking up a
domain name like mozilla.org or google.com will fail.

The iSCSI Boot Firmware Table (iBFT) which gPXE gives to Linux in
order to pass iSCSI connection information contains DNS server
details.  This suggests to me that a userspace tool needs to read the
iBFT and populate /etc/resolv.conf.

Can anyone with more iSCSI Linux booting experience help Andy?

Stefan


More information about the gPXE mailing list