Lukas Bradley | 25 Feb 15:10 2014
Picon

PXE and DANMasq boot - Insight appreciated.

I'm attempting to boot machines from a server (192.168.1.45) over a network using PXE boot and DNSMasq. My network presently utilizes a DHCP server on a VPN/Firewall, so I don't want to run a DHCP server on the server itself.

When I start the client computer, it seems to connect to the server, but doesn't proceed with a boot. The remote computer just hangs showing "Start PXE over IPv4".

The /var/log/messages on the server shows the following.

Code:
Feb 24 15:10:45 localhost dnsmasq[14487]: started, version 2.48 DNS disabled Feb 24 15:10:45 localhost dnsmasq[14487]: compile time options: IPv6 GNU-getopt DBus no-I18N DHCP TFTP "--bind-interfaces with SO_BIN DTODEVICE" Feb 24 15:10:45 localhost dnsmasq-dhcp[14487]: DHCP, proxy on subnet 192.168.1.255 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 Available DHCP subnet: 192.168.1.255/255.255.255.0 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 Vendor class: PXEClient:Arch:00007:UNDI:003016 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 PXE(eth0) bc:5f:f4:97:be:ab proxy Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 tags: eth0 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 bootfile name: pxelinux.0 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 next server: 192.168.1.45 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 1 option: 53:message-type 02 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 4 option: 54:server-identifier 192.168.1.45 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 9 option: 60:vendor-class 50:58:45:43:6c:69:65:6e:74 Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 17 option: 97:client-machine-id 00:00:02:00:03:00:04:00:05:00:0 6:00:07... Feb 24 15:11:20 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 10 option: 43:vendor-encap 06:01:08:0a:04:00:50:58:45:ff Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 Available DHCP subnet: 192.168.1.255/255.255.255.0 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 Vendor class: PXEClient:Arch:00007:UNDI:003016 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 PXE(eth0) bc:5f:f4:97:be:ab proxy Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 tags: eth0 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 bootfile name: pxelinux.0 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 next server: 192.168.1.45 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 1 option: 53:message-type 02 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 4 option: 54:server-identifier 192.168.1.45 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 9 option: 60:vendor-class 50:58:45:43:6c:69:65:6e:74 Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 17 option: 97:client-machine-id 00:00:02:00:03:00:04:00:05:00:0 6:00:07... Feb 24 15:11:24 localhost dnsmasq-dhcp[14487]: 3423833039 sent size: 10 option: 43:vendor-encap 06:01:08:0a:04:00:50:58:45:ff
The DNSMasq config is the following:

Code:
#set port to 0 so that dnsmasq knows its not being used as a dns server port=0 log-dhcp dhcp-range=192.168.1.255,proxy #dhcp-boot=http://192.168.1.45/ enable-tftp tftp-root=/var/lib/tftpboot dhcp-boot=pxelinux.0,fileserver,192.168.1.45
The /var/lib/tftpboot directory:

Code:
drwxrwxr-x 3 root root 4096 Feb 4 10:35 . drwxr-xr-x. 37 root root 4096 Feb 24 11:10 .. -rw-r--r-- 1 root root 97 Feb 24 15:02 boot.txt drwxrwxr-x 3 root root 4096 Feb 4 10:35 debian-installer -rw-r--r-- 1 root root 24117248 Feb 4 10:35 mini.iso -rw-r--r-- 1 root root 13703974 Feb 4 10:35 netboot.tar.gz lrwxrwxrwx 1 root root 33 Feb 24 15:07 pxelinux.0 -> debian-installer/amd64/pxelinux.0 lrwxrwxrwx 1 root root 35 Feb 24 15:07 pxelinux.cfg -> debian-installer/amd64/pxelinux.cfg -rw-rw-r-- 1 root root 64 Feb 4 10:35 version.info
My pxelinux.cfg configuration looks as follows:

Code:
# D-I config version 2.0 include debian-installer/amd64/boot-screens/menu.cfg default debian-installer/amd64/boot-screens/vesamenu.c32 prompt 1 timeout 0
Any comments, suggestions, or insight appreciated.
_______________________________________________
gPXE mailing list
gPXE <at> etherboot.org
http://etherboot.org/mailman/listinfo/gpxe
Jim Michaels | 23 Dec 12:03 2013
Picon

I want to render the lan boot rom blank

how do I do this? this is the flash rom built into a system. is there a command for this? I could sure use one. I am trying to make it so if the lan boot rom does get booted again, it will skip the lan boot and default to the hard drive and ignore the LAN boot ROM I would like to flash.

it's built into a motherboard. I am trying to render it inert.
help appreciated. software even more appreciated, especially if it's an iso I can just burn to clear the rom.
 
-------------
Jim Michaels
Jmichae3 <at> yahoo.com
JimM <at> RenewalComputerServices.com
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements (note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:
[kB] [MB] [GB] [TB]
[10^3B=1,000B=1kB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]

_______________________________________________
gPXE mailing list
gPXE <at> etherboot.org
http://etherboot.org/mailman/listinfo/gpxe
Allan Wu | 7 Dec 00:39 2013

Problem using gPXE to load PXELINUX with HTTP server

Hello,

I got a problem of starting PXELINUX with gPXE using HTTP server. I am trying to setup a diskless system using gPXE. I intend for all the client machines to use static IP in the network, and our network already have a DHCP server which is difficult for me to modify. So I want to use gPXE to assign static IP for my client machine and obtain image from a HTTP server. 

In gPXE, I can successfully load the pxelinux.0 file and execute it. However, PXELINUX then reported an error saying "Unable to locate configuration file". I tried with several versions but got similar problems. 

In general, I want to set each client with static IP to get around the DHCP server, which seems to work for getting the images. I also tried to load the initrd image and vmlinuz kernel directly. But I got error saying the kernel cannot find ramdisk. I think I need to use the parameters such as 'initrd=' and 'root=' when booting the kernel. Is there a way to do that with gPXE along? I'm open to other alternatives, since my approach may be limited on my lack of knowledge.

My setup looks like this:

- On the HTTP server:
http://xxxx.xxx.xxx/xxx/tftpboot/   ~ this is the root directory for the pxelinux file
./pxelinux.0
./pxelinux.cfg/default
./centos6/                          ~ this directory contains the ramdisk image and kernel

The pxelinux configure file looks something like this:
default rhel6 label rhel6 kernel centos6/vmlinuz append initrd=centos6/diskless_initrd.img root=nfs:xxx.xxx.xxx.xxx:/diskless/x86_64/RHEL6/root/ rw
- For my client, I embedded a static.gpxe script looks something like this:
#! gpxe
ifclose net0
set net0/ip       xxx.xxx.xxx.xxx
set net0/netmask  xxx.xxx.xxx.xxx
set net0/gateway  xxx.xxx.xxx.xxx
set net0/dns      xxx.xxx.xxx.xxx
ifopen net0
set 209:string pxelinux.cfg/default
chain ${210:string}pxelinux.0

After this the PXELINUX is booted, but then failed on the error. I was using PXELINUX 4.02. For newer version, I also tried 5.10, but then PXELINUX stucks on the first line (version and copyright stuff). 

I can attach some screenshot of the error message if needed. Please tell me if I need to provide more information.  

Thanks in advance!

Regards,
--
Di Wu (Allan)
Center of Domain-Specific Computing,
Department of Computer Science, UC Los Angeles
Email: allwu <at> cs.ucla.edu
_______________________________________________
gPXE mailing list
gPXE <at> etherboot.org
http://etherboot.org/mailman/listinfo/gpxe
Adrian Zaugg | 4 Nov 01:32 2013
Picon

pxe boot macbook: "exec format error (0x2e008001)"

Dear List

After some compiling adventures I managed to compile a gPXE-efi module
containing the right driver for my nic to place on my efi system
partition on my macbook pro. I can load gPXE using rEFInd, it connects,
gets an IP and then aborts with:

Could not boot from filename "pxelinux.0": Exec format error (0x2e008001)

Using a PC capable to PXE boot, I get my PXE server's menu. Could anyone
please enlight me, what is going wrong?

Thank you very much!

Regards, Adrian.

More information:
- macbook pro 5,5; nvidia mcp79 nic using forcedeth; EFI64 system
- I compiled on a 64-bit Linux from latest git
- compiling failed on pristine source, I had to edit config/general.h
  and delete the line "#define PXE_CMD" as suggesed here:
  http://support.etherboot.org/index.php?do=details&task_id=107
- cmd line used: make bin-x86_64-efi/forcedeth.efi

Like this I got forcedeth.efi, which I could place in my esp and start
it from rEFInd.

BTW: I was not able to cross compile on a mac, the information in the
wiki under http://etherboot.org/wiki/macbuild?s[]=efi is partially
outdated and is missing a lot of information to do so successfully. I
could overcome some problems but not all of them.
Magicloud Magiclouds | 11 Oct 07:06 2013

How to deal with imgfetch failure in script?

Hi,

  I need a fallback thing in my boot script. That if chain server1 failed, then chain server2.

  But I did not see any condition branch or error handling stuff. What should I do?

--
竹密岂妨流水过
山高哪阻野云飞

And for G+, please use magiclouds#gmail.com.
_______________________________________________
gPXE mailing list
gPXE <at> etherboot.org
http://etherboot.org/mailman/listinfo/gpxe
Sergey Razin | 5 Aug 17:44 2013
Picon

gpxe in cloud help needed.

Hello!

I am working on a project to adopt gpxe into a cloud environment (generically speaking, and Amazon is more specifically).
If someone has experience with this specific task or has very in-depth knowledge of gpxe and willing to consult on this project (getting paid of course).
If consulting is not an option, but could point me into helpful set of documentation, any help is welcome!

Please contact me: techdozor <at> yahoo.com

Thank you!
ody>
_______________________________________________
gPXE mailing list
gPXE <at> etherboot.org
http://etherboot.org/mailman/listinfo/gpxe
Yadin Flammer | 13 Jun 22:54 2013
Picon

ipxe vs gpxe

In addition to my last email, I actually created an ipxe CD to compare 
it to gpxe and found that ipxe doesn't work where gpxe works great.  The 
first issue is that ipxe looks at various network devices in the wrong 
order, so it has to time out on wireless before going ahead on 
ethernet.  gpxe goes straight to ethernet so it starts much faster.  
Once you choose a PXE image to boot from, ipxe is unable to actually 
boot, it can't download the image and never progresses.  gpxe instantly 
pulls it and starts the boot process.

All around it so far seems ipxe has a lot of issues and is not 
functional compared to it's predecessor.  Since ipxe doesn't seem to 
work at all, I continue to wonder about a way to get gpxe onto USB as a 
bootable media from the ISO.

Any advice is appreciated.

--

-- 
-------------------------------------------------------------------
   Yadin Flammer - Systems Administrator
   College of Arts&  Architecture, Penn State University
   228 Borland Building              Office Phone: 814-865-0990
   University Park, PA 16802         Dept. Phone:  814-865-1571
   Email: yxf4 <at> psu.edu               Dept. Fax:    814-863-6227
Yadin Flammer | 13 Jun 18:14 2013
Picon

gpxe on USB or HD

Hello list,

I've been trying to get gpxe to boot from a USB drive, and even an 
internal hard drive, but no luck.  Using the ISO for a CD works 
perfectly, but a USB key would be much more convenient.  The .usb and 
.dsk files that download appear to be corrupt every time as no 
application can open them (winimage says they are corrupt), or the 
contents when dd to a disk under linux are corrupt.  Copying the 
contents of the .iso to a USB drive or internal HD does not result in a 
bootable system regardless of the format or setup of the drive.

Has anyone managed to make a bootable USB key or internal drive with the 
gpxe environment and if so precisely how?

Thanks!
Yadin

--

-- 
-------------------------------------------------------------------
   Yadin Flammer - Systems Administrator
   College of Arts&  Architecture, Penn State University
   228 Borland Building              Office Phone: 814-865-0990
   University Park, PA 16802         Dept. Phone:  814-865-1571
   Email: yxf4 <at> psu.edu               Dept. Fax:    814-863-6227
Ladislav Jerabek | 12 May 23:45 2013
Picon

Connection reset (0x0f0a6039)

Hello.

I have a dedicated server at 1and1.com and I would like to boot it
using gPXE from my other VPS (FreeBSD) server via HTTP (Apache). gPXE
seems to get correct address from DHCP but after that, when trying to
contact the HTTP server I recieve error: Connection reset
(0x0f0a6039). Does anybody have any experience with this error please?

Thank you very much!

Sincerely,
Ladislav Jerabek
Steve | 4 May 23:17 2013
Picon

gPXE RHEL kickstart without DHCP

Hi guys,

I would like to automate the server build using gPXE without having DHCP server running on the network.
The following configuration I came up so far

#!gpxe
ifstat
set net0/ip <host IP>
set net0/gateway <gw address>
set net0/netmask <netmask>
set net0/dns <DNS address>
ifopen net0
kernel http://<rhn satellite address>/images/ks-rhel-x86_64-server-6-64/vmlinuz
initrd http://<rhn satellite address>/images/ks-rhel-x86_64-server-6-64/initrd.img
boot

The server boots fine by downloading and running the kernel images, but unable to figure how to add the kickstart configuration file to this config.
I tried to add as a 'boot' parameter, but it didn't start to install the binaries.

e.g.

boot  ks=http://<rhn satellite>/linux/rhel64/kickstart/ics-5.3.0.nolvm.ks

Thank you in advance!
Regards,

Steve
_______________________________________________
gPXE mailing list
gPXE <at> etherboot.org
http://etherboot.org/mailman/listinfo/gpxe
John Hanks | 4 May 00:07 2013
Picon

tftp options ignored.

Hi,

I'm trying to use a gPXE boot iso to work around a lack of PXE (on
iMacs, but this also happens in virtualbox VMs) and the tftp server
option is being ignored. Not sure what I'm doing wrong here as
non-gPXE PXE clients all seem to be working fine and get correct tftp
server addresses. The replies sent to the gPXE client include the
correct sname and we've tried with and without option 66 set to the IP
address of the tftp server. I can see from tcpdump that these are
correctly set in the dhcp replies. But the gPXE client still sets the
tftp server to 0.0.0.0 when it tries to download the bootfile. Any
suggestions would be appreciated.

Thanks,

griznog

Gmane