iPXE discussion forum
nslookup: command not found - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: nslookup: command not found (/showthread.php?tid=8062)



nslookup: command not found - iucounu9 - 2016-05-05 16:43

Hi,

When trying to PXE boot a (Windows 7) guest on an oVirt host, I get:

'nslookup: command not found
Could not boot image: Exec format error (http://ipxe.org/2e022001)'

The Windows entry works fine when using a Xen or VMWare hypervisor, so I suspect it is something wrong with how oVirt does it, but I'm not quite sure what could cause this. I can PXE boot Linux VMs via the same method on the oVirt host without issue, however, they do not require the nslookup or chain functions in iPXE.

In my 'default' file on my kickstart host, the entry that is failing for Windows is:

nslookup wds <?php echo $wdroot."\n"; ?>
set net0/next-server ${wds}
chain tftp://${wds}/boot\\x86\\wdsnbp.com || goto failed
goto start


An example Linux host that boots fine from the same menu:

:sl6.7-lvm
set kernel ${boot-root}/sysimages/sl6/6.7/vmlinuz
set initrd ${boot-root}/sysimages/sl6/6.7/initrd.img
set ksname /boot/kickstarts/sl6.7-lvm.ks
set imgargs ${sl6-imgargs}
goto execboot

Thanks for any pointers.

-Cam


RE: nslookup: command not found - mcb30 - 2016-05-10 10:00

(2016-05-05 16:43)iucounu9 Wrote:  'nslookup: command not found

The "nslookup" command is not enabled by default. You need to build iPXE with NSLOOKUP_CMD enabled.

Michael


RE: nslookup: command not found - iucounu9 - 2016-06-01 14:21

Thanks Michael. However, I'm not sure I'm in a position to alter the code this is part of (oVirt). I can modify it for my own personal use, but I'll have to get the mod included upstream. I'm going to explore options using php and try and pass the result through.

Cheers,

Cam

(2016-05-10 10:00)mcb30 Wrote:  
(2016-05-05 16:43)iucounu9 Wrote:  'nslookup: command not found

The "nslookup" command is not enabled by default. You need to build iPXE with NSLOOKUP_CMD enabled.

Michael