Quantcast
Channel: iPXE discussion forum - All Forums
Viewing all 1484 articles
Browse latest View live

Building ipxe with embedded script results in invalid image

$
0
0
Hi

I'm trying to boot an aoe disk from a diskless laptop.
I'm using PXE boot to load ipxe.

file: /tftpboot/pxelinux.cfg/default
LABEL ipxe
MENU LABEL iPXE - chainload iPXE
KERNEL ipxe/undionly.kpxe

After Ctrl+B I manually run the commands dhcp && sanboot aoe:e0.0
and the system boots up fine.

Now i would like to do this via an embedded script:
file: myscript.ipxe
#!ipxe
dhcp net0
sanboot aoe:e0.0

So I build the undionly.kpxe like this:
make undionly.kpxe EMBED=myscript.ipxe

Trying to boot the undionly.kpxe with embedded script results
in following error message:

Invalid or corrupt kernel image.

What else could I try from this point to get it booting without the need for typing commands?

IPXE newbie seeks help

$
0
0
Hi,

I've already tried to post this on the forum but it hasn't appeared so I'm posting again in case I did something wrong earlier

I've only just come across IPXE although have been using PXELINUX for a while.

I can't figure out how to get started! I have a working FreeBSD based PXE Server but don't know what to put in tftpbooot. With PXELINUX I used gpxelinux.0 and set up options via pxelinux.cfg.

I have tried https://releng.archlinux.org/pxeboot/ and that works fine, but I don't know what I'm supposed to do with http://boot.ipxe.org/ipxe.iso.

Any help would be appreciated.

Apologies for asking such a dumb question.

iPXE EFI with F12 prompt does not work

$
0
0
iPXE EFI with F12 prompt does not work with custom built boot loader. It does work with bios boot loader.

Here is my script
#!ipxe
prompt --key 0x197e --timeout 4000 Press F12 for network boot... || goto no_shell
dhcp
login
chain http://${username:uristring}:${p.../menu.ipxe
exit

:no_shell
exit

How to build ipxelinux.0

$
0
0
I've tried to follow the instructions here https://coderwall.com/p/0sq9gg/how-to-build-ipxelinux-0 for building ipxelinux.0 but keep getting failures at every stage.

Is there a recommended Linux distribution where I can run

git clone git://git.ipxe.org/ipxe.git
git clone git://git.kernel.org/pub/scm/boot/syslinux/syslinux.git

cd syslinux
make


and avoid getting constant missing headers and suchlike?

Ideally I 'd like to run this on FreeBSD but it looks as though the makefiles aren't compatible with FreeBSD's build system.

ipxe does not boot on a Realtek PCIe GBE

$
0
0
Hello,

I use iPXE hosted on a linux server with tftp and it works fine on many pc to use a iSCSI server to boot Windows 7 or 8.1 from SAN.

But on a old ASUS P7P55D with a Realtek PCIe GBE, iPXE stops at "initialisation...". It stops and nothing append even after 10 minutes.

What can I do to fix this?

Regards,
Stéphane

iseq on a string with a space??

$
0
0
On a Dell server, the ${manufacturer} variable is "Dell Inc.". I cannot figure out a way to do an iseq on this variable, I tried:

iseq ${manufacturer} Dell${}Inc.

But it always evaluates false. Using anything with a space, 'Dell Inc.', "Dell Inc.", Dell\ Inc., etc, always results in syntax error since it is parsed as two arguments.

Any recommendations?

Rob

Using iPXE on installed on local drive to boot Windows from local drive

$
0
0
Hi iPXE community

I'm pretty new to iPXE, so please bear with me. Blush

We are trying to use iPXE to achieve the following:
In a distributed setup we want the clients (Desktops or Notebooks) to ask a defined server what to boot. In the normal case this would just be to boot Windows from the local hard drive. But when necessary the server can instruct the client to boot a specified image from the network (i.e. to reinstall Windows).
For security reason we do not want to use regular PXE booting from the network as we can not control the environment and PXE would open a potential attack vector.

Currently we chainload iPXE from Grub both of which are installed on the local drive. iPXE then contacts the server and gets a ipxe script file back. So far so good.

What does not work yet is to boot Windows from the second partition of the same local drive. Using
sanboot --no-describe --drive 0x80
Grub loads again and we loop.

Using
exit
ends up in a "No bootable device" error.

Questions:
How can I boot a specific partition from iPXE?
Is there a better way to accomplish what we are trying to do?
Is there a way to use timeouts in case the server does not answer (clients should then always boot Windows from the local drive)?

Any help and hints are highly appreciated!
Regards,
FreeMinded

iPXE problems with iSCSI Boot and Windows

$
0
0
Well.

I'm making loads of progress with iPXE, and I love it. But, i'm having tons of problems with windows and iSCSI boot. So, let me back up and give you some troubleshooting information.

I am using both undionly.kpxe and ipxe.kpxe, built from a git pull from a few weeks back. version is 1.0.0 + (d0bfd)

my DHCP server is configured to give out undionly.kpxe, and I have a script that loads from which I can chain over to the full ipxe.kpxe when needed.

I have successfully built a linux diskless client that boots from iSCSI. Its screaming fast. My iSCSI server is an HP DL380 G7 running ubuntu server and the iscsitarget software stack. Seems to work very well, no problems with either using iSCSI to boot ISO images and also my linux diskless image.

However, when I try using it with Windows, it is crazy, terribly slow. I have a custom PE image that I load using iPXE and winboot, works great.

So, here's what I tried to get windows installed:

Strategy #1

grab the shell and do a sanhook iscsi:192.168.15.25::::iqn.2016-01.com.mjbrowns:mbstudio
(works, maps to 0x80)

proceed to winboot my PE image. Image takes longer than usual to boot, but when it finishes, I can see the ISCSI device, but any I/Os to it take forever. diskpart clean (to clean the disk headers) took over 10 minutes!

I've tried this sequence inserting a variety of:
set keep-san 1
set netX/gateway 0.0.0.0

to no avail.

Strategy #2

I also put a disk in, booted, mapped the iSCSI LUN and cloned the boot disk (using Paragon Partition Manger) to the ISCSI disk, then shut down, removed the drive and tried to do a sanboot - it basically just seems to hang on the logo screen and goes nowhere.

I've tried Strategy #1 using both physical diskless client and virtual machine in VMware Workstation running on my laptop -same thing happens.

Any suggestions?

Load wds from ipxe

$
0
0
Hello guys,

I have upgraded my setup to Windows Server 2012 R2. I have WDS role installed, over it pxelinux and from pxelinux I load ipxe. I Have an entry in the ipxe menu called Back which loads pxelinux menu.
And here is the issue.
The WDS entry is not working, When I select it, it pops up an "TFTP download" error. The WDS entry from the pxelinux initially loaded is working fine. Only the WDS entry from the menu loaded after selecting "Back" option from the ipxe menu is not working.
Any ideas ?

Thanks

undionly, ipxe, and dhcp

$
0
0
I am having an issue with undionly, ipxe, and microsoft's dhcp server and wondered if anyone here had a suggestion.

I recently had to build up Windows Server 2008 on one machine, which also acts as an iSCSI target for a diskless Windows 7 machine. I finally managed to get everything working, however I still have one issue which is now causing more problems.

The issue is that when the diskless machine first attempts the network boot it requests an IP address from the DHCP server, and the microsoft dhcp server happily gives it one. Then ipxe starts and it requests an IP, this time however the microsoft dhcp server thinks this is a new device and attempts to give it a different address, but since our pool is limited to one, the correct one, the dhcp fails. I got around this to make everything boot by just adding an additional IP to the beginning of our pool. This appears to work, however if undionly gets the second address, then ipxe gets the new address I added and then once windows starts for some reason that is the address that sticks even though windows is configured with a static IP. At this time our scripts can not communicate with the diskless machine. So if our pool is 192.168.0.1 and .2, everything works fine when undionly gets .1 and ipxe gets .2, because windows has a static address of .2.

Looking in the dchp server it looks like the device id had a bunch of leading zeros when undionly is requesting an address, and when ipxe fetches an address it is just the mac address. I have checked the configuration against the old hardware and everything looks the same, however the old system only used one IP and it all worked.

Any thoughts?

Thanks,
Matthew

DHCP timeout on reboot

$
0
0
Hi iPXE community

I'm using iPXE installed on the local hard drive and chainloaded by Grub. If I boot the computer from powered off state everything works as expected. Grub loads iPXE and DHCP request is successful (takes only about 2 seconds or less).

Now, if I reboot the computer Grub loads iPXE but then the DHCP request times out. If have tried to do 2 DHCP request consecutively but both time out the same. I have also tried with two different DHCP servers. I does not make a difference.

Has anyone an idea what the problem could be and how I could work around?

Regards,
FreeMinded

Unable to create default undionly.kpxe

$
0
0
Hi there!

I'm trying to create undionly.kpxe using this (https://rom-o-matic.eu) service in Standard mode without embedded script and got the error:

Build failed:

"make" unexpectedly returned exit value 2 at /var/www/ipxe-buildweb/build.fcgi line 630


Build log:
Path:
Parameters:
BINARY = undionly.kpxe
BINDIR = bin
DEBUG =
EMBED.00script.ipxe =
REVISION = master
Binary: undionly.kpxe
Binary directory: bin
Revision: master
Canonicalising revision master...
Canonical revision: 163f8acba0fbb6e3c44aec5286d3d076e1f44f22
Creating temporary directories...
Temporary git directory: /var/tmp/ipxe-build/ipxe-build-J5gMPy
Temporary working tree: /var/tmp/ipxe-build/ipxe-build-vebD1X
Cloning git tree from /var/tmp/ipxe/.git...
Finding closest cached binaries for 163f8acba0fbb6e3c44aec5286d3d076e1f44f22...
Found cached binaries in ipxe-build/cached/bin/163f8acba0fbb6e3c44aec5286d3d076e1f44f22.gz at distance 0
Opening binary tarball /var/cache/ipxe-build/163f8acba0fbb6e3c44aec5286d3d076e1f44f22-bin.tar.gz...
Opened binary tarball /var/cache/ipxe-build/163f8acba0fbb6e3c44aec5286d3d076e1f44f22-bin.tar.gz...
Checking out revision 163f8acba0fbb6e3c44aec5286d3d076e1f44f22...
Identifying timestamp for commit 163f8acba0fbb6e3c44aec5286d3d076e1f44f22...
Setting timestamps to Fri Feb 19 04:21:38 2016...
Unpacking binary tarball /var/cache/ipxe-build/163f8acba0fbb6e3c44aec5286d3d076e1f44f22-bin.tar.gz...
Checking out revision 163f8acba0fbb6e3c44aec5286d3d076e1f44f22...
Building final target bin/undionly.kpxe...
make: Entering directory `/var/tmp/ipxe-build/ipxe-build-vebD1X/src'
[HOSTCC] util/zbin
[VERSION] bin/version.undionly.kpxe.o
[LD] bin/undionly.kpxe.tmp
arch/x86/scripts/pcbios.lds:1: undefined symbol `_use_page_tables' referenced in expression
make: *** [bin/undionly.kpxe.tmp] Error 1
make: *** Waiting for unfinished jobs....
rm bin/version.undionly.kpxe.o
make: Leaving directory `/var/tmp/ipxe-build/ipxe-build-vebD1X/src'
"make" unexpectedly returned exit value 2 at /var/www/ipxe-buildweb/build.fcgi line 630[/undefined]

So could you tell me please what's the problem?

Thank you!

P.S. Sorry for formatting... BBCode doesn't work for me - I got [undefined][/undefined] tags for everything.

Is there a way to fully load ISO-image via iPXE?

$
0
0
Hi there!

I'm wondering Is there a way to fully load ISO-image via iPXE?
Let me explain. I have ISO that contains wim-file (WinPE) with additional Program folder that connecting on the start WinPE.

I know two way to load ISO:
1) via sanboot;
2) via memdisk.

I've tried to boot ISO via sanboot by http but I got the following error:

-------------------------------------------------------------------------
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1. Insert you Windows installation disc and restart your computer.
2. Choose your language settings, and then click "Next."
3. Click "Repair your computer."
If you do not have this disc, contact your system administrator or computer manufacturer for assistance.
File: \Boot\BCD
Status: 0xc000000e
Info: An error occured while attempting to read the boot configuration data.
-------------------------------------------------------------------------

Inspite of IIS HTTP server supports ranged requests HTTP due to its specific transfer cannot load this ISO.
So I decided to use memdisk. With memdisk WinPE was loaded but it haven't include Program folder. When I try to load this ISO directly (from USB/DVD) it connects this Program folder.

So could help me to fully load this ISO like it happens via direct way USB/DVD?


Thank you!

Passing state/args/data to chainloaded iPXE

$
0
0
How do I easily pass state/args/data from iPXE, to another chainloaded iPXE binary? I have to do a multi-stage boot chain, to load an iPXE binary with the correct console output device (serial COM1, COM2, VGA, etc), and break the loop afterwards.

My use case, step by step:
  1. Network card's native PXE stack requests DHCP.
  2. DHCP server returns the file parameter pointing to undionly.kpxe or snponly.efi, depending on architecture.
  3. First-stage iPXE requests DHCP.
  4. DHCP server detects feature flags and user-class, and returns file parameter pointing to http://install/netboot.ipxe?op=consoledetect&product=${smbios/product}
  5. Server-side netboot.ipxe script cleans up SMBIOS product string, and maps it to another iPXE filename, such as: undionly_serialcom1.kpxe, undionly_serialcom2.kpxe, snponly_serialcom1.efi, etc. All combinations are built and available.
  6. First-stage iPXE chainloads the second-stage iPXE binary.


At this point, how can the second-stage iPXE binary know that it is at the second stage, and then set a user-class that will indicate this to the DHCP server? (Which will then return the main iPXE boot script to the client.)

While I could build a set of binaries that embed a script that sets the user-class to "iPXE-stage2" or something, it makes it rather inflexible.

Can I instead embed a single script that can be used in both stage 1 and 2, and have access to some sort of variable/argument that tells it to set the DHCP user-class option?

WPA Handshake capture problem

$
0
0
Hi!
my station is "AR9285" and its mac address is "1C:65:9D:7F:4EBig Grin3".
and, my AP is "ipTIME A2004NS" and its mac address is "64:E5:99:61:C7:8C",
authentication mode is WPA/WPA2(TKIP, AES).
I try to connect to AP, the problem has occured in 2 of 4 in handshaking.
maybe, 2 of 4 way packet's mic is wrong.
In WEP, the connection was very good.

I attach some files about monitering packet in linux and ipxe.
they can be opened by wireshark.
Download here
Here is SSID is "DontTouch" password is "12345678".


Filter expression is
(wlan.sa == 1c:65:9d:7f:4eBig Grin3 || wlan.da == 64:E5:99:61:C7:8C || wlan.sa == 64:E5:99:61:C7:8C || wlan.da == 1c:65:9d:7f:4eBig Grin3) && (wlan.fc.type_subtype != 8 && wlan.fc.type_subtype != 4 && wlan.fc.type_subtype != 5)

Help me to be able to connect with the AP.
Thank you for reading this article grammar mess.

Regards,

Dong-Hwan ,Jung

iPXE-specific options description

$
0
0
Hello!

I'm wondering where can I find a detailed description about iPXE-specific options (http://ipxe.org/howto/dhcpd):

option space ipxe;
option ipxe-encap-opts code 175 = encapsulate ipxe;
option ipxe.priority code 1 = signed integer 8;
option ipxe.keep-san code 8 = unsigned integer 8;
option ipxe.skip-san-boot code 9 = unsigned integer 8;
option ipxe.syslogs code 85 = string;
option ipxe.cert code 91 = string;
option ipxe.privkey code 92 = string;
option ipxe.crosscert code 93 = string;
... etc.

I don't understand what do they mean just by looking at their names...


Thank you!

[SOLVED] Ctrl-B not working on Acer Aspire One

$
0
0
On an Acer Aspire One netbook, the hotkey Ctrl-B doesn't do anything.

However, when loading a menu, I can navigate it and even enter the shell from there and everything works as expected.

On my desktop PC, Ctrl-B works fine.

Is this a known problem? Is there anything I can do to make it work?

Menu file loads fine via TFTP, but not via HTTP

$
0
0
I've setup a dnsmasq similar to this.

This is my config:
Code:
dhcp-range=172.16.0.0,proxy
dhcp-match=ipxe,175   # iPXE sends a 175 option
pxe-service=net:!ipxe,x86PC,"iPXE Network boot",undionly.kpxe
dhcp-boot=net:ipxe,http://diskstation/ipxe/boot.ipxe
enable-tftp
tftp-root=/var/ftpd

For some reason, iPXE itself loads fine, but then fails with "Nothing to boot.". Entering the iPXE shell and typing "chain http://.../boot.ipxe" loads the menu just fine. It just doesn't work automatically. (From the dnsmasq log I can see that the URL is sent to iPXE.)

However, changing the dhcp-boot line to:
Code:
dhcp-boot=net:ipxe,menu.ipxe,172.16.254.10,172.16.254.10

So that the file is loaded via TFTP, works and the menu shows up directly on boot. But this is from a different server and I'd like the menu file to be on the HTTP server with the rest of the files.

dnsmasq is version 2.75.

Any ideas?

I probably could compile iPXE with the chain-command, but I'd love for it to work out-of-the-box with the http-URL delivered via DHCP.

Error upload image

$
0
0
I try to add an .png image size 8.89KB, resolution 306x188 to the forum and I have a error:
[Image: 7851296m.png]

Test iPXE on Bochs on WinXP

$
0
0
I need help how config network in Bochs emulator for Windows, I use 2.6.6. I have WinPCap installed (winpcap_4_1_2.exe), set and load plugin E1000 NIC, set Ethernet device from NIC Lister \Device\NPF_{BE9C8A80-C636-48AA-B891-92FBC4282DE6} but after run emu have error:
[Image: 7834912.png]

Host OS is WinXP SP2 x64 but error have also on x86 Confused
Viewing all 1484 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>