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

how to press F1

$
0
0
from here:
http://ipxe.org/cmd/prompt
I saw an example:
prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE shell... || goto no_shell

just to be curious, how to change the key to F1?


there's some keycode in that page, F4....F12,

but I didn't see keycode for F1 F2 F3 F4, is there any special reason for not defining these four keys?

Creating advanced snponly.efi in rom-o-matic.edu

$
0
0
Hi all,

I am currently using the snponly.efi build image as I am pxe booting ESXi devices. It is working great with no issues but I am interested in using the "console" command with images so that I can configure the look of the menu.

Is there a way to use https://rom-o-matic.eu/ to generate a build image that is as close to snponly.efi but with the console command and IMAGE_PNG support?

I don't currently have easy access to a linux terminal to build my own image manually.

Thanks!

string manipulating method

$
0
0
with iPXE scripting how to calclulate string length? do a substr?

currently I can only do some very simple things, like get left 4 letters, get right 1 letter(from left 4 letters), get right 2 letters(from left 4 letters), by type casting



P.S.
------------------------------------
quick search and found this:
http://forum.ipxe.org/showthread.php?tid=7979

2016-03-17, 13:21
Post: #2
robinsmidsrod Offline
iPXE forum administrator

RE: Trim whitespaces from a string?
String manipulation functions have not been implemented
as we're still discussing how they should be provided to the end-user (API).

add private key to ipxe

$
0
0
at http://ipxe.org/err/0216eb

>> cat selfsigned-cert.pem selfsigned-key.pem > cert-and-key.pem
>> make bin/ipxe.lkrn EMBED=../syslinux.ipxe CERT=../certs/cert-and-key.pem TRUST=../certs/cert-and-key.pem

this page suggest adding private key to ipxe.lkrn?

I don't see any need to add private key.

when I download file from my testing ssl site, the error code is 0216eb
then after I built with TRUST=myca, the error disappeared.
there seemed to be no need to add private key.

specifying kickstart with sanboot

$
0
0
Hi All,

I am new to ipxe. I was trying to see if I can boot from an ISO without having to mount iso and refer to kernel and initramd. Tried memdisk and initramd but it was showing no space left on device (may be due to 3.5 gb size of iso)

I found sanboot option where I can specify the iso file directly (http server), and its working now. But I am not sure how to add kickstart file now to my installation. Is there any way I can pass ks="" somehow in sanboot? I do not want to edit the original iso although.

Thank you for your assistance.

Best Regards,
Sumit Tyagi

IPv6 only iPXE

$
0
0
Hello iPXE community!

I've been working on a project to use iPXE with IPv6 only. While it does work, I still have a small issue.

The problem is that iPXE will, by default, try IPv4 DHCP first and after DHCP_DISC_END_TIMEOUT_SEC (which can be 10 to 32 seconds depending on the linux distribution) it will try SLAAC/DHCPv6.

I have tried to #undef NET_PROTO_IPV4 but unlike NET_PROTO_IPV6, that doesn't seem to do a single thing. As a workaround, I have modified DHCP_DISC_END_TIMEOUT_SEC to 1 second, which is acceptable.

But nonetheless, it should be possible to disable IPv4 or at least make it possible to disable the default DHCPv4 at initialisation.

I could write a patch, but I'd like to have some comments on which is the most appropriate way to disable this. I have never worked in the community, so please guide me a bit and let me know which would be an appropriate patch to achieve an acceptable "IPv4 disabled" state.

My personal opinion is that disabling DHCPv4 at initialisation should be sufficient. After that, I don't mind if the iPXE user wants to download a script that does DHCPv4. The annoying part is when you're not yet in control.

What do you think?

Boot ISO or img from http

$
0
0
Hello,

I have files provided by a vendor that are to be burnt on a cd or used for a usb key
distrib.iso
usbfatboot.img
The underlying software is a package Freebsd

I'm able to get the menu from ipxe and be able to HTTP GET the files, so no technical problems here

But I don't understand what to use
:5.0.4.P5a
initrd http://100.64.1.100/distrib.P5a.iso
chain http://100.64.1.100/distrib.P5a.iso ||

:6.0.2.P1a
initrd http://100.64.1.100/usbfatboot-amd64-6.0.2.P1a.img
chain http://100.64.1.100/usbfatboot-amd64-6.0.2.P1a.img ||

:6.0.2.P5b
imgfetch http://100.64.1.100/usbfatboot-amd64-6.0.2.P5b.img
boot memdisk iso raw ||
goto MENU


For the ISO I get the message
Could not boot: Exec format error (http://ipxe.org/2e008001)
I read that page
For the first img I have the same message

For the second img I have memdisk no such file or directory

At boot ipxe displays DNS HTTP iSCSI TFTP AoE ELF MBOOT PXE bzImage Menu PXEXT
I downloaded undionly.kpxe

Does anybody has any hint on how to make something to work

Create CD-ROM image to install RHEL/UEFI

$
0
0
Greetings!
I've been searching around trying to find someone with a use case like mine, but I've not seen much out there. Hopefully what I'm trying to do is actually possible...

I would like to create a CD-ROM that boots, grabs a DHCP address, chain loads a menu from an http server, and based on the menu selection, begins installing Red Hat Enterprise Linux such that it will boot on hardware in UEFI mode.

Is such a thing possible when booting off of CD-ROM? Because of network complexities, I can't stand up a TFTP server, which is why I'm trying to do this via http. What's hanging me up is where I try to build a CD-ROM image...I don't know if I can boot the system in the standard iPXE environment and load straight into the linuxefi and initrdefi kernel and initial ram disk, or whether I have to boot into something like a shim on the iPXE image, and if so, how to even create such a thing?

Any ideas or help would be greatly appreciated!!

-Kermit Short

TFTP issues with current build

$
0
0
I'm working on replacing a syslinux based legacy bootloader running from WDS that provides technicians with tools with one that works over UEFI. I will admit that this is all pretty new to me, but I've hit a wall and am not sure how to proceed. Essentially I seem to not get any actual connection attempt from tftp (neither the WDS server nor a test TFTP server set up see any incoming connection attempts. the window tftp client works fine and is able to download using the same path)

I receive correct ip/subnet/gateway from DCHP verified with route command. I can ping the TFTP servers and they can ping this machine. These are on the same scope (and same switch).

Trying to use chain http://$[next-sever}/boot/x64/bootmgfw.efi or the equivalent for my test server correctly expands that variable into the IP I define, but times out after a short delay. As mentioned, logs on the TFTP server show no connection attempts from this.

Process:
git clone git://git.ipxe.org/ipxe.git
make bin-x86_64-efi/ipxe.efi EMBED=menu.ipxe (menu.ipxe is ripped from https://gist.github.com/robinsmidsrod/3871687 with some changes to accommodate continuing the boot process).

I've tried several pieces of logic found on here for this, starting here:

set netX/next-server x.x.x.x
imgexec tftp://${netX/next-server}/boot/x64/bootmgfw.efi

ipxe.efi is being served by WDS itself (it is set as n12bootprogram) and this boots correctly into the menu. The only changes I made to the build was to enable ping and embed the menu. Not sure where to go from here, would appreciate any advice.

INITRD Basics

$
0
0
When using "initrd" to download a file, how is that file accessible in UEFI context?

I was expecting to see a new file system device created, but I find no new devices. For example.

initrd http:/blahblah/disk_image.dsk
kernel http:/blahblah/bootx64.efi /efi/boot/

At this point, UEFI is able to find and execute bootx64.efi (an OS loader), but how do I locate the prior initrd of disk_image.dsk?

I expected to find a UEFI RAMdisk or new file system device created, but I am not seeing this.

Obviously the file disk_image.dsk is in memory somewhere, but how does my OS loader find it? If not via memory address and size, then through what protocol?

Is there a detailed description somewhere of what is actually happening when iPXE pulls images down?

sanboot on UEFI device

$
0
0
Hi everybody,

I have really enjoyed the functionality of iPXE and am mostly done with my project but am having a slight hiccup near the end.

I have a .ISO on an HTTP server that I want to be able to boot into on a UEFi device using the normal iPXE menu.

Command to make bootloader: "make bin-x86_64-efi/snponly.efi EMBED=embed.ipxe", using default config where sanboot is enabled by default.

Command: "sanboot http://boot.ipxe.org/freedos/fdfullcd.iso"

The error I am receiving:
[Image: Capture.png]

I believe I previously had this command working by making with ipxe.efi, but I need to use snponly.efi because I am also booting ESXi images which are higher priority.

Thanks for any help!

Sanboot Win7/8/10

$
0
0
Hello,

I want to boot an already installed operating system via iSCSI. I succeeded in the virtual environment. I have a VM as a PXE server and a VM as a client. I have installed Windows 7/8/10 on the client. Then I cloned the virtual hard drive with Clonezilla on a blank virtual hard drive in the PXE server. I then included this disk as an iSCSI target. I was able to boot successfully. My configuration is:

Code:
dhcp net0 && echo IP address: ${net0/ip} ; echo Subnet mask: ${net0/netmask}
set gateway 0.0.0.0
cpuid --ext 29 && set arch amd64 || set arch x86
set boot-url tftp://x.x.x.x
set keep-san 1
set initiator-iqn iqn.bablaba:test
sanhook iscsi:${next-server}::::iqn.blablabla:testimage
sanboot

My problem is, why i can not realize this on another real Hardware client? When I try to boot the iSCSI-Image from my physical Client the pxe process succed and one can see the loading windows logo. But after 5 minutes a bluescreen comes with the message "inaccessible bootdevice"




Can somebody help me to solve this problem please?


I used ipxe.lkrn and have deactivated UEFI. Furthermore, my bootimages are based on BIOS
The PXE-Server has the OS Ubuntu 18.04
The sanboot works in the virtual environment. I can boot windows 7, windows 8 and windows 10



Best regards
Albrecht

Unable to make

$
0
0
Hello! Downloaded the latest git commit and tried to compile. I have all of the dependencies installed but the make dies out here.

Code:
[BIN] bin/ipxe.dsk.bin
[ZINFO] bin/ipxe.dsk.zinfo
[ZBIN] bin/ipxe.dsk.zbin
[FINISH] bin/ipxe.dsk
Could not resize bin/ipxe.dsk: Operation not supported
make: *** [bin/ipxe.dsk] Error 95
make: *** Deleting file `bin/ipxe.dsk'
rm bin/ipxe.dsk.bin bin/ipxe.dsk.zinfo bin/ipxe.dsk.zbin

Not sure where to go from here.

Thanks in advance!

CS

Cannot boot due to Error 0x040ee119.

$
0
0
Hello, everyone.
I faced Error 0x040ee119 while booting my cluster with InfiniBand.
Only two of the clusters work normally, and the rest cause the following error:

Code:
FlexBoot v3.4.752 (PCI 02:00.0) starting execution...ok
FlexBoot initialising devices...
Initialising completed.


FlexBoot v3.4.752
Features: DNS HTTP iSCSI TFTP VLAN ELF MBOOT PXE bzImage COMPOOT Menu PXEXT

net0: GUID __:__:__:__:__:__:__ - MAC __:__:__:__:__:__
Using ConnectX-3 on PCI02:00.0 (open)
  [LINK:down, TX:0 TXE:0 RX:0 RXE:0]
Waiting for link-up on net0........ ok
Configuring (net0 __:__:__:__:__:__).....................
................ Error 0x040ee119 (http://ipxe.org/040ee119)
No more ports. Exiting FlexBoot...
... (Loop) ...


I am using a SwitchX®-2 based FDR InfiniBand and CentOS 7.
Please give me a solution or advice.

Lenovo Drive Erase Utility + UEFI + IPXE

$
0
0
Hello,

I cannot seem to get this utility to boot properly under IPXE. Can someone give me some pointers to see if we can get this to work?

Here is the tool:
https://support.lenovo.com/ca/en/downloads/ds019026

It comes with an EFI version in the zip folder, including a bootx64.efi and DrvErase.exe

If I put these files onto a USB (/EFI/BOOT/BootX64.efi + /DrvErase.exe) I can successfully boot the USB in UEFI mode on Lenovo devices.

However, if I try to load the bootx64.efi and drvload.exe files via IPXE, it never works. Generally I get a black screen after the files load and nothing shows on the screen, but control alt delete will reboot the machine. I suspect bootx64.efi has loaded but drverase.exe is unable to execute as it is an exe format, but somehow this works off a USB stick?

I tried to also make an ISO of the files, but SANBOOT does not like to boot it at all.

Any guidance is appreciated!

WIM Filename and wimboot

$
0
0
Hello, I'm trying to boot a WIM with wimboot on EFI. When the filename for the WIM I use is boot.wim, it boots up just fine. However if I use a different filename (i.e. myboot.wim) I get a boot manager error (0xc000000f, A required device isn't connected or can't be accessed.).

Does the WIM fiename have to be "boot.wim"?

CS

Hang on "... free base memory after PXE unload"

$
0
0
Hi iPXE-team,

within the FOG Project we have played with iPXE a lot but this is the first time I think I have ever seen a picture of a client hanging on the message "... free base memory after PXE unload" even before it would say "iPXE initializing devices..." - see picture below.

I have had a look at the code but I am not as good with assembly language. The last message stems from src/arch/x86/prefix/pxeprefix.S but I am not sure how to add debug information to see where it actually hangs.

Does anyone of you know the first entry into the C code where I could add more debugging to see if that's ever reached?

Thanks in advance!

Sebastian

[Image: OSW4zVREopJe]

Chaining kpxe from kkpxe

$
0
0
OK, I have an odd requirement. I need to be able to boot to DOS with PXE/UNDI still intact so I can use the undipd packet driver. Using the kkpxe version and adding "keeppxe" to memdisk works fine.

However, I also need to install ESXi 6.5. When using the kkpxe version, I get a purple screen but if I use the kpxe (undionly) version ESXi works fine, however DOS no longer works (no network).

I've tried chaining kkpxe from kpxe to boot DOS, but get no network.
I've tried chaining kpxe from kkpxe to install ESXi, but iPXE freezes after displaying the initial features banner.

No matter what I've tried, I can't get both DOS and ESXi working in harmony.

Any ideas??

Thank you in advance.

CS

ipxe permission denied?

$
0
0
I try to start loading of files through https, but to me gives permission denied error message, tell that it is necessary to register in default.ipxe normally to be loaded? DOWNLOAD_PROTO_HTTPS and IMAGE_TRUST_CMD are included. There is a certificate from letsencrypt. To the FAQ it is it is unclear written I cannot understand.

Booting A Remote OS Image

$
0
0
I'm very new to iPXE but have gone through the /docs and /examples to try and build my new iPXE script but am still confused as to how to build this.

I have an OS image created and placed in a cloud storage bucket and I want to be able to boot from that location.
(http://s3.aws.com/my-bucket/my-os-image).

My understanding is that I can create an iPXE script to build an iPXE OS USB image that loads from this bucket location.

along the lines of 'make bin/ipxe.usb EMBED=startup.ipxe' where startup.ipxe is my own custom script.

Is this correct?

Additionally, I'm having trouble writing startup.ipxe itself.

Would it be as simple as:

'
dhcp
imgfetch http://192.168.0.1/img.igz
boot img.igz
'

Please let me know of any examples that are relevant or docs that are useful for what I'm trying to do.

Thanks for your help.
Viewing all 1484 articles
Browse latest View live


Latest Images

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