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

--- Article Removed ---

$
0
0
***
***
*** RSSing Note: Article removed by member request. ***
***

Grub2 + wimboot to boot .wim file in EFI mode

$
0
0
Hi there,
I am trying to boot.wim file using GRUB2 EFI + wimboot.
The boot.wim file is extracted from Windows installation .ISO

Before that I successfully boot boot.wim file using iPXE in both BIOS and EFI mode.
Here is my script code:

Code:
kernel ${boot-url}/wimboot/wimboot gui pause
  initrd ${boot-url}/wimboot/bcd            BCD
  initrd ${boot-url}/wimboot/boot.sdi        boot.sdi
  initrd ${boot-url}/wimboot/boot.wim        boot.wim
  boot || goto failed

iPXE BIOS
[Image: yANfOih.png]

iPXE EFI
[Image: smHlWzI.png]

Then I converted the above code to use only GRUB2 and wimboot (without iPXE):

Code:
menuentry "Wimboot" {
    linux16 /wimboot/wimboot gui pause
    initrd16 newc:bcd:(loop)/boot/bcd \
           newc:boot.sdi:(loop)/boot/boot.sdi \
           newc:boot.wim:(loop)/sources/boot.wim
}

It boot fine in BIOS mode and show the same screenplay as it was in iPXE BIOS case. But in EFI mode, I only got black screen and never get into the setup menu.

Since the screen was black, I did not get any notifications that wimboot is in EFI mode (In EFI mode, wimboot uses BOOTx64.efi instead of bootmgr.exe). So my questions are:

1. How to ensure that wimboot get into EFI mode? Does it need iPXE to get wimboot into EFI mode, or wimboot can alone doing that?
2. In my opinion, the first code runs in iPXE environment, the second code runs in GRUB2 environment which may cause the problem. But how to fix it?
3. As I understand, iPXE only support chainload in Network mode (script file must be load off the network). Could iPXE support chainload in local (script file in local disk)?
i.e
Code:
chain /local-root/myscript.ipxe

more Documentaion

$
0
0
Hi. Thanks for ipxe Awesome tool... but
Where is the deeper documentation ? Is there a deep tutorial for the scripting element..
When I Search for answers for example --autofree .. I need to scour the internet.
stuff like list of set variables such as cls are those abbreviations ?

Sorry if those are noob questions but I really want to dig deeper but find it hard to find all the options

VMware VM with more than 1 vCPU BSoD when loading WinPE using WIMBOOT

$
0
0
Ran into an issue booting WinPE using WIMBOOT:

- Happens on VMware 5.5 and 6.0 with latest updates.
- Happens whether I use undionly.kpxe, ipxe.pxe or ipxe.kpxe.
- Only happens with VMs that have more than 1 vCPU. 1 vCPU = no problem.
- Only happens when the VM is using a legacy BIOS, no problem if using EFI.
- The WinPE I am using does have drivers injected into it, but I also tested with an unaltered WINPE.WIM with same effect.
- Also booted the WinPE via ISO and it did not BSoD, hence not a driver issue with the WinPE.
- Using latest WIMBOOT 2.5.2.
- No problem with physical hardware with 2 sockets. Problem seems to be limited to VMware VMs.
- Tried VM Hardware types 9, 10 and 11 and also with different versions of Guest OS types.

Code snippet of iPXE script that loads the content:
Code:
iseq ${arch} 64 && set winpe winpe_x64.wim || set winpe winpe_x86.wim
imgselect ${url}/win/wimboot gui
imgfetch --name bcd                ${url}/win/bcd                       bcd
imgfetch --name boot.sdi           ${url}/win/boot.sdi                  boot.sdi
imgfetch --name segmono_boot.ttf   ${url}/win/fonts/segmono_boot.ttf    segmono_boot.ttf
imgfetch --name segoe_slboot.ttf   ${url}/win/fonts/segoe_slboot.ttf    segoe_slboot.ttf
imgfetch --name segoen_slboot.ttf  ${url}/win/fonts/segoen_slboot.ttf   segoen_slboot.ttf
imgfetch --name wgl4_boot.ttf      ${url}/win/fonts/wgl4_boot.ttf       wgl4_boot.ttf
imgfetch --name boot.wim           ${url}/windows/pxeboot/${winpe}      boot.wim
imgexec

I also tried without loading the fonts and not specifying the 'gui' option for WIMBOOT.

The BSoD I get with the 64-bit WinPE is PAGE_FAULT_IN_NONPAGED_AREA (STOP: 0x00000050).

The 32-bit WinPE's BSoD is IRQL_NOT_LESS_OR_EQUAL (STOP: 0x0000000A).

If I set the VM to 1 vCPU, it PXE boots fine, loads undionly.kpxe, loads and executes the script, loads all images and starts bootmgr which loads the image files and then starts the WinPE. Everything works as expected.

If I set the VM to 2 vCPU (or more), it PXE boots fine, loads undionly.kpxe, loads and executes the script, loads all images and starts bootmgr which loads the image files and then tries to start Windows at which point it briefly hangs and then shows the BSoD.

If I then change the vCPU count back to 1, it boots fine again. This is true for both the 32-bit and 64-bit WinPE.

Any ideas what can be done here?

Screenshots:
BSOD 64-bit: http://imgur.com/8sTrvvx
BSOD 32-bit: http://imgur.com/F373cGn
WIMBOOT: http://imgur.com/kNInEus

[Solved][wimboot] Dell Optiplex 7440AIO hangs at startup with UEFI

$
0
0
I have a new model of computer, Dell Optiplex 7440 All-in-One desktops and they won't boot in WinPE in UEFI mode. In legacy mode, they boot just fine. Other computers boot fine too in UEFI mode. The files download normally and control is passed over to Windows. The Windows splash screen (well, the Dell logo since Windows reads the logo from DMI) appears but there's no "spinner" underneath it and nothing else happens. I have to reset to turn off the computer by holding the power button for a few seconds.

I've tried with 6 or 8 computers of the same model, both with the factory firmware (1.3.7, I think) or the latest available for download (1.4.7). I'm running the current wimboot version (2.5.2) and tried with older versions I have at hand: 2.1.0 and 2.4.1.

The exact same WinPE image boots fine from a USB drive

Here's my iPXE script:
Code:
<%
. ($pwd.path + "\common.ps1")
%>
#!ipxe
set wimboot-path http://server/wimboot
kernel ${wimboot-path}/wimboot-2.5.2 gui
imgfetch --name BCD               ${wimboot-path}/bcd                BCD
imgfetch --name boot.sdi          ${wimboot-path}/boot.sdi           boot.sdi
imgfetch --name wgl4_boot.ttf     ${wimboot-path}/wgl4_boot.ttf      wgl4_boot.ttf
imgfetch --name segmono_boot.ttf  ${wimboot-path}/segmono_boot.ttf   segmono_boot.ttf
imgfetch --name segoe_slboot.ttf  ${wimboot-path}/segoe_slboot.ttf   segoe_slboot.ttf
imgfetch --name segoen_slboot.ttf ${wimboot-path}/segoen_slboot.ttf  segoen_slboot.ttf
imgfetch --name boot.wim ${wimboot-path}/SCCM-WinPE10-x64.wim        boot.wim

boot

If I add a pause to wimboot I get this:
Code:
Command line: "wimboot-2.5.2 gui pause"
Using wimboot-2.5.2 via 0x93b69a48 len 0xa600
Using BCD via 0x93b69ae8 len 0x40000
...found BCD
Using boot.sdi via 0x93b69b88 len 0x3060000
Using wgl4_boot.ttf via 0x93b69d88 len 0xb95c
Using segmono_boot.ttf via 0x93b69e28 len 0x8cb4
Using segoe_slboot.ttf via 0x93b69ec8 len 0x12e5c
Using segoen_slboot.ttf via 0x93b69f68 len 0x12d20
Using boot.wim via 0x93b6a248 len 0x1632a7ad
...found WIM file boot.wim
...found file "\Windows\Boot\EFI\bootmgfw.efi"
Using BOOTX64.EFI via 0x93ae4a00 len 0x11af60
...extracted \Windows\Boot\EFI\bootmgfw.efi
Read BOOTX64.EFI
Loaded BOOTX64.EFI
Press any key to continue booting...

EDIT: Solved; switched from snponly.efi to ipxe.efi (all-drivers)

HTTP_ENC_PEERDIST - Any Documentation Or How to?

$
0
0
How this (HTTP_ENC_PEERDIST) feature can be utilized? Is there any specific iPXE scripts/cmdlets which helps doing/finding PeerDist?

BTW, a great tool, i was amazed to see to the speed of downloading data on http. Thank you very much for such piece of code.Smile

Regards,
Chandan

undionly.kpxe vs undionly.kkpxe

$
0
0
What is the difference between the two stack methods in undionly.kpxe and undionly.kkpxe?

can I make a usb key , support efi boot & pcbios

$
0
0
hi

How can I make a usb to support boot efi or double boot the efi and pcbios?

isset always returns true !

$
0
0
Hi,

I checkout to compile and run iPXE at the commit

commit bb9961fb548068f769c666970c1de6c68743ed07
Author: Michael Brown <mcb30@ipxe.org>
Date: Tue Jun 26 14:49:26 2012 +0100

[test] Add self-tests for TCP/IP checksum calculation

Signed-off-by: Michael Brown <mcb30@ipxe.org>


However I found the command "isset" always true although the value does not exist and the loop never ends.

#!ipxe
set idx:int32 0
:loop isset ${net${idx}/mac} || goto loop_done
echo net${idx} is a ${net${idx}/chip} with MAC ${net${idx}/mac}
inc idx && goto loop
:loop_done


The problem does not happen with the latest iPXE, could you hep to point out the commit that fixed above issue in old iPXE.

Thanks,
Brs,
Naruto

HP BL460 Gen9 http download hangs

$
0
0
I've encountered an issue with inconsistent booting of HP BL460c Gen9 Blades.

I'm using RHEL 7.0 x86_64 and the blades are using UEFI to boot. I have an xCAT master server which handles all the boot configuration, but the problem seems to be with iPXE.

What happens is that randomly, when booting as few as 12 nodes, iPXE will randomly hang when downloading the initrd via http from the boot server. It is completely random which nodes this will affect, and it happens across a variety of nodes or chassis that I have available to test with.

Upon a reboot, the affected node will generally boot just fine.

I initially thought this was a throughput problem with my boot server (HP DL380 Gen 9), though I can have an entire cluster (250+ nodes) execute a simultaneous download of the exact same file via wget and have the transfers complete successfully. I've even verified the file sizes on each node to ensure there weren't any transfer errors.

What's more is that later in the boot process, once the actual kernel is loaded, the rest of the stateless image (a significantly larger file) is transferred from the same server via http and there is never a problem despite having over 200 simultaneous connections/downloads.

I've attached a screenshot of where the process hangs each time. Just for additional info:

Boot server is running RHEL 7.0 x86_64
BL460c is using a 1Gb NIC to boot from
Boot Server is using two 10Gb NIC's in a LACP bond to serve data, however the problem persists exactly the same way when using a single 10Gb NIC, or even using a 1Gb NIC on the boot server.

I'd appreciate any information on what I can do to avoid having these random hangups.

Thanks!

is there a shortcut key to edit iPXE menu entry like PXElinux's "TAB" key

$
0
0
Hi,

Is there a shortcut key to edit iPXE menu entry like PXElinux's "TAB" key.

When I use PXElinux boot, I could test kernel options by edit the PXE boot menu entry.

But I can not find a shortcut key to edit iPXE menu like PXElinux.

thx

Dell XPS 12 USB to Ethernet adaptor

$
0
0
I'm wondering if it is possible to use iPXE to boot a Dell XPS 12 9Q23 laptop from then be able to boot into a PXE environment using a USB to Ethernet adaptor Dell model of the adaptor is DBJBCBC064 and uses a realtek RTL8153 driver

If this is possible where do I start?
I tried using the prebuilt binary version of iPXE as an ISO image but this didn't work which I expected to be the case.

If I can get this working it's going to make some ghost reimaging a much easier process for me.


Looking forward to any help you can provide

Thanks

Wimboot Won't Load System Image Recovery from Windows Repair

$
0
0
Hello all,

I currently have Wimboot 2.5.2 and the iPXE ISO set up to load the Windows Recovery Disk over our network. Wimboot loads up the disk just fine, but when trying to access the System Image Recovery tool, it throws an error 0x80070002, which says the system cannot find the file specified. If you try to run the actual program (bmrui.exe) in the command prompt on the disk, it gives the same error. Here is a screenshot: http://i.imgur.com/b50Bfye.png

Strangely, if you load the same files in their original ISO with MEMDISK, the function works as intended, so the files don't seem to be corrupted or wrong. Any ideas?

Booting from ISO with embedded script is not working

$
0
0
Hi,

I searched the forums and the web for my issue but I could not find any working advice, so I'm posting my issue here. Maybe some of you folks are able to help me:

I'm compiling iPXE into an ISO that I use for booting a Virtualbox VM. When I compile without an embedded script everything works fine and iPXE starts and I can also enter the interactive console.

As soon as I compile with
Code:
make bin/pxe.iso EMBED=bootscript.pxe
I get stuck with the following output on booting:

Code:
ISOLINUX 6.03 20151222 ETCD Copyright (C) 1994-2014 H. Peter Anvin et al
iPXE ISO boot image
Loading ipxe.krn... ok

After that output nothing happens. The bootscript.pxe I use only contains these lines:
Code:
#!ipxe
echo Booting...

For some background: I use XUbuntu 16.04 LTS to compile.

I think I'm missing something here that I should do Smile

Thanks!

Windows ipxe installation stuck at logo

$
0
0
Hello! I am trying to set-up an ipxe server for Windows installation. I followed these instructions, but after the pc downloads the boot.wim it gets stuck at the Windows logo screen. Ipxe also displays the following message: "Forcing text mode output" (right under the stuck Windows logo). I should mention that I am using an x64 UEFI machine.

http download failures

$
0
0
I am attempting to pxe chain boot with http download. The problem I am having is the file retrieval always just stops on one of the random files below, at some random % complete. Usually it is the boot.wim, but I assume this is only because it is the largest. It has stopped on a simple font file as well though.

What could be causing this sporadic download behavior?

If I attempt a windows download off the samba share where those files are, the download is 1-2 secs. If I wget it from a nix host its about the same. Only when pxe is attempting to retrieve them does it seem to have an issue. I am fairly new to all this so hopefully I am giving good info. Samba server is running via apache.

I have tried numerous builds of kernel and boot.wim. Frankly, Im at a loss.

Code:
<%#
kind: PXELinux
name: Windows PXELinux
oses:
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
%>

DEFAULT linux
LABEL linux
KERNEL ipxe.lkrn
APPEND dhcp && chain <%= foreman_url('iPXE') %>
IPAPPEND 2

the chain then goes to:

Code:
#!ipxe


kernel http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/wimboot gui
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot/fonts/segmono_boot.ttf  segmono_boot.ttf
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot/fonts/segoe_slboot.ttf  segoe_slboot.ttf
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot/fonts/segoen_slboot.ttf segoen_slboot.ttf
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot/fonts/wgl4_boot.ttf     wgl4_boot.ttf
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/bootmgr              bootmgr.exe
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot/BCD         BCD
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot/boot.sdi    boot.sdi
initrd http://puppet.lab.beer.town:717/sources/Microsoft/Windows/6.3/../boot/boot.wim boot.wim

imgstat
boot

issues DELL USB (Realtek) - timeout

$
0
0
We are using the a dell USB 3.0 NIC (which is a realtek) and getting timeouts on the machines

NIC not detected.

Synology iSCSI Windows install

$
0
0
Hi Guys,

I am trying to install Windows on iSCSI but i am having some difficulties.
Normally i boot up winpe with ipxe and map a network share with the installer on it and boot up the setup.
When i attach a iSCSI in the ipxe script it freezes at entering bootmgr.exe with parameter....
This happens only when i use undoinly.kpxe, .kkpxe and kkkpxe.
When i use the .pxe variant it does not hang but reboots at the screen "Windows is loading files".
Tried it on different pieces of hardware with all the same result.
I am guessing there is something wrong my Synology or my script.
I use a DS214+ that contains a LUN and 1 Target with 50Gb of space.
Below the script that i use to attach the iSCSI and boot up winpe.

set gateway 192.168.10.1
set keep-san 1
sanhook iscsi:192.168.10.1::::iqn.2000-01.com.synology:NAS005.Server.daa0aebffd

kernel ${boot-url}/wimboot
initrd ${boot-url}/x86/boot31/bootmgr bootmgr
initrd ${boot-url}/x86/boot31/bcd BCD
initrd ${boot-url}/x86/boot31/boot.sdi boot.sdi
initrd ${boot-url}/x86/macrium.wim boot.wim
boot || goto failed
goto start

As i said without the iSCSI part winpe boots fine with no problems at all.
Hope you guys can help me out!

Chainloading from ipxe to multiple pxeboot roms

$
0
0
Hi,

I've set up a server that is currently using pxelinux.0 as the bootrom for pxe booting different linux distribution. However, some special linux distributions require a different hardcoded pxe.rom file to boot. Is it possible, if I boot ipxe via dhcp that I can chainload to different pxeboot roms like pxelinux.0, custom pxe roms or some other pxe rom files?

So basically, I want to load a menu via ipxe that can chain to different other pxeroms.
Viewing all 1484 articles
Browse latest View live


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