On 11/29/2011 09:13 AM, Thomas Bächler wrote:
Am 29.11.2011 11:16, schrieb Thomas Bächler:
Am 28.11.2011 16:37, schrieb Gerardo Exequiel Pozzi:
Not that mkinitcpio-0.8.0 hits core, I pushed all archiso patched to
master. Wait for next next testbuild, or build yourself!

8bd0674 [archiso] Add DNS resolver support to archiso_pxe_common
The DNS resolver does not work. First, the symlinks
/lib/libnss_{files,dns}.so.2 are missing, only the
libnss_{files,dns}-2.14.1.so are there.

If I create the right symlinks, the resolver seems to do something, but
times out. Using an IP address works fine. I don't know what's wrong
with the resolver, I might have a look later.

I inserted an IP address instead of a name for the moment, you can try
netbooting by running
  qemu -m 1G -kernel gpxe.lkrn [1]
Download takes a while, but the image boots up fine.

[1] https://releng.archlinux.org/pxeboot/gpxe_text.lkrn
Okay, I think I found the problem:

The ip= command line option doesn't pass a DNS server! The ipconfig
utility simply uses the same as the remote server - which is wrong in
the case of qemu.

Instead of IPAPPEND 3, I now use ip=dhcp and the resolver works.
The issue will be when machine has two or more network devices. You need to pass manually BOOTIF option, otherwise ipconfig will setup all network devices with the same settings.

--
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1

Reply via email to