Quantcast
Viewing all 1484 articles
Browse latest View live

Using "||" as a string literal?

Is there a way to put a string containing "||" into a variable, and then using said variable in a kernel command?

This doesn't work - I can see in /proc/cmdline that the ocs_postrun is cut off at the double-pipe, while cmd_netdev is still included (so I shouldn't be hitting some limit, AFAICT)
Code:
...
set cmd_postrun       ocs_postrun=" (cat error.log || echo success) | nc -l -p 4444"
...
kernel ${clonezilla-url} ${cmd_common} ${cmd_postrun} ${cmd_netdev}

EDIT: It turns out bash doesn't mind if its own double-pipe isn't surrounded with spaces, so I'll probably resolve my issue by removing them. Still, it would be nice to know if the literal usage is somehow possible.

NIC shuts off during Windows boot

I'm trying to get Windows via PXE/iSCSI running on one of my PCs. I've had a lot of success on other PCs, but this one keeps resisting...

I can install Windows 10 just fine on the iSCSI drive, but booting the installed system fails with "inaccessible boot device". That's a pretty common error, but in my case, I can see the network card actually turns off shortly into the boot - which inevitably leads to the failure.

It's an integrated RTL8169SC. Have you ever seen this problem / dealt with it? I can surely install a PXE-capable NIC into a PCIe slot and use that one instead... but I wonder if there's a different solution.

DECchip NIC is not booting

Hello
I've got a DEC DECchip 21142/43 (rev30) 1011:0019 NIC and failed get it working with iPXE. It should be working according to hardware compatibility list.
First iPXE prints something about legacy mode then tries to do dhcp and fails.
dhcp command from command line fails too.
PC and network are 100% working. I've tried another NIC on same PC and it boots perfectly. I've tried premade images and tried to build them by myself - no luck.
I know this NIC is very old, but it is working in Windows without problems.

iPXE over WAN with manual address

Hello,

We own a fleet of pcengines that are a pain to updgrade manually, especially because of their number and geographical location. They all run the same custom iso image, that we update frequently.

We would like to PXE boot them all over HTTPS, but also need to authenticate each client. Is it possible to pre-program the iPXE clients to skip DHCP entirely and download the iso from our server using a trusted certificate as password? If not, what are the alternatives?

VLAN - not able to establish connection.

hi,
i am using ipxe.lkrn for booting into a ipxe shell. I am able to create a vlan interface, assign ip/gw/nm. But not able to ping to my gateway.

do the following:

vcreate --tag 443 net0
ifopen net0-443
set net0/ip 10.146.19.102
set net0/gw 10.146.19.1
set net0/netmask 255.255.255.0

If i try to ping the gateway, i got connection timed out.
Cisco Switchport ist configured to trunk.

did i miss anything?

BSOD on windows 10 using iscsi and intel nuc

Hi Everyone,

First I'd like to say that this forum has provided a wealth of information regarding iPXE, it's been a great resource for me and my team.

I'm currently upgrading an ISCSI setup from windows 7 to Windows 10 Enterprise, our setup uses iPXE to setup iscsi and chain into WDS to install the OS.

Everything works fine until it comes time to install the latest NIC drivers, our model NUC uses the I218-LM nic. Once the NIC drivers are installed the system reboots and BSOD's with an inaccessible boot device error.

I've tried every combination of drivers and settings prior to rebooting, even different versions of Windows 10, using cmd line I've traced the issue to the base driver, once the base driver is installed the system will no longer boot to windows.

ISCI Target-Service logs on the server (Windows Server 2016) during boot stay that the initiator successfully logged on than 5-7 seconds say that initiator successfully logged off.

I've posted this same question on the intel support forums as it really seems to be a specific driver issue, I've tried newer model NUCs with the same issue.

Has anyone encountered this problem? It really seems specific to Windows 10 and intel NUC and their drivers, our regular PC's have no issue booting via ISCSI once the intel drivers are installed.


Any ideas would be greatly appreciated.



Thanks

squashfs cannot be downloaded when ipxe chainloading, dracut-initqueue fail find root

Hi,

I am trying to chainload booting rhel server 7.4 from http to kickstart install the OS for my Lenovo thinkstation.

I have the ipxe chainloaded correctly, the initrd and kernel are downloaded from my http server.
However, the squashfs is not downloaded. I think ipxe used curl to download this.

The install failed at the dracut-initqueue where it spit out the error of /dev/root is not located.

The following script is chainloaded.

#!ipxe

echo Setting up the network interfaces
ifopen

echo Setting eth0 on MAC address ${eth0/mac}
set net0/ip 192.168.56.130
set net0/netmask 255.255.255.0
set net0/gateway 192.168.56.254

ifstat

echo Printing the routing table
route

echo Downloading image and kernel for chainloading from http://192.168.56.13/ftp/tree/isolinux

initrd http://192.168.56.13/ftp/tree/isolinux/initrd.img
kernel http://192.168.56.13/ftp/tree/isolinux/vmlinuz initrd=initrd.img inst.ks=http://192.168.56.13/ftp/ks_files/192.168.56.130.ks.cfg inst.repo=http://192.168.56.13/ftp/tree ro root=live:http://192.168.56.13/ftp/tree/LiveOS/squashfs.img rd.AUTO=1 rd_NO_LUKS LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd.shell
boot

Note that I have my VirtualBox vm works without any problem using same script except for different ip and http server.

Any suggestions are greatly appreciated.

Is it posible to use variable arguments (parameters) when run ipxe and then pars it i

Hi

Is it posible to use variable arguments (parameters) when run ipxe and then pars it in script?
I need load some iso images, but write script for each is not good idea.
It will be better to run its in one script by specifying the path to the file as an argument.

HPE Ethernet 1Gb 4-port 331i - Installation failed

Hi,

I try to boot an ISO file compiled from ipxe master branch on a HPE Server, with HPE Ethernet 1Gb 4-port 331i adapter, but as soon as it try to initialize devices, I it crash:

Code:
Loading ipxe.krn...ok
iPXE initializing devices...1B101B10 00100004 000007E2
Installation failed - cannot continue

Is is a device not supported or any special target I need to build ?

Thanks[/code]

IPXE WITH UEFI and Secureboot Enabled

Hello I'm trying to find a way how i can use IPXE with uefi and secureboot enabled. If i disable the secureboot and legacy boot process is working fine. But i dont want change anything in the BIOS, the BIOS comes with the default option as Secureboot enabled and "all uefi", i want to use it as it is. I'm using the network boot and using the Linux OS where TFTP and http service is been enabled.

I have used the sign shrim files for ubuntu and trying with GRUB2 to work but its also not working as expected to load the windows boot file... but still trying.
Any way we can use a mix of ipxe and GRUB2 to make the windows 10 boot through network works....

Could Not Open SAN Device

I have the following ipxe config:

#!ipxe
goto startme
:retry
sleep 5
:startme
sanboot http://bla.com/vmware/6.5/iso/ESXi65u1.iso || goto retry


I am getting a Could not open SAN device. This is an ESXi iso located on an http server. Does anyone have any ideas or things I could check?


Thanks

Ipxe and System Rescue CD

Hello,
I have a problem with my ipxe server.
I want to do an entry for system rescue CD, so i have download the iso from the website, i mount it for to take the files "rescue32" "rescue64" "initram.igz" in my tftp folder and "sysrcd.md5 and "sysrcd.dat" on my web server.

I do an entry on my menu ipxe (i replace my server ip by "IpServer") :
:rescueCD64
kernel /images/sysresccd/rescue64 dodhcp setkmap=fr scandelay=1 netboot=http://IpServer/sysrcd.dat
initrd /images/sysresccd/initram.igz
boot || goto failed

when i select this entry, kernel is download, initrd too but after i have problem :
Image may be NSFW.
Clik here to view.
[Image: ipxe_error.jpg]


It's like there is no network...
Could you help me to understand this problem?
Thanks alot

X710 network drivers

Digging through the threads, I saw something back in 2015 about adding X710 network drivers. But I'm not seeing them in the list. Did this ever get accomplished or was it abandoned?

I have Dell Poweredge r740 servers with 10G X710 network cards that are causing me a headache. I just got my automation setup with iPXE, but these new servers are having issues finding those cards. Any help would be appreciated.

SSLVerifyClient optional

I'm using the latest version of iPXE with HTTPS enabled and without any embedded client certificate. If the HTTPS server is configured with "SSLVerifyClient optional", when an HTTPS file transfer is initiated, iPXE throws this error:
http://ipxe.org/err/410de3
"Error: No suitable client certificate available"

I am seeing this with Apache2 on Ubuntu. If I change the Apache2 configuration to "SSLVerifyClient none", the error goes away and the file transfer is successful. However, for my application, it cannot be assumed that the HTTPS server will not be configured with "SSLVerifyClient optional".

Does iPXE support "SSLVerifyClient optional"? Or is it expected that the server only be configured with "SSLVerifyClient none" or "SSLVerifyClient require"?

Thanks,
Eric

Wimboot UEFI Crash/Bootloop

Hello,

Dell Precision Tower 3620 (latest BIOS), UEFI (secureboot OFF)
wimboot 2.6.0

Code:
kernel http://${fog-ip}/fog/os/win/wimboot pause gui
initrd --name BCD http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/BCD BCD
initrd --name boot.sdi http://${fog-ip}/fog/os/win/winpe/amd64/media/Boot/boot.sdi boot.sdi
initrd --name boot.wim http://${fog-ip}/fog/os/win/winpe/amd64/media/sources/boot.wim boot.wim
boot || goto MENU

This machine boots and displays the iPXE menus. In BIOS boot WinPE boots just fine. In UEFI after selecting the entry it downloads the 3 files. wimboot starts patching the boot.wim. It gets to the point that its found and loaded bootx64.efi and then immediately reboots (with a single loud beep from the PC). In other words it never actually loads winpe.

Its worth mention that iPXE will run other installers on this machine UEFI booted just fine (like CentOS 7). The above entry will run UEFI on a Dell R620.

Some background tidbits. I created the winpe via a Windows Server 2016 box with the latest MDT and ADK installed, everything updated. Used
Quote:copype amd64 /path
.

I also tried via dism adding in the dell winpe10 drivers pack from their website (version 1.0 A08). Extracted the cab, ran the dism command to add drivers. It added about 65 drivers, unmounted and commited changes.

Worked in BIOS boot, still the same issue in UEFI on the Dell 3620.

I have tried without the gui line, tried with rawbcd, tried with -n instead of --name.

I am at a loss here, any advise would be great. Thanks

Any network commands don’t work.

Hi,
I’m so frustrated, because I can’t make any network commands work, like DHCP, so the my script just freezes every time. At school, it works just fine! I’m using HP Pavilion x360, with 64-bit processor; it’s Intel i3.
Here’s what it looks like at home, in iPXE shell, when I issue the DHCP command:

iPXE> dhcp
iPXE> ifstat
iPXE> _

No response, just another prompt. And like I said, if I put it in a script, it freezes.

Does anyone know, why or have a similar experience?
Thanks.

zlib error

I have tried and tried to make this work. I have tried to bypass the need to run make in order to use this program, as running the make command results in an error. I keep getting this error at the end of the make command within the src folder:
quote-
[BUILD] bin/hyperv.ids.o
[AR] bin/blib.a
ar: creating bin/blib.a
[HOSTCC] util/zbin
util/zbin.c:7:18: fatal error: lzma.h: No such file or directory
#include <lzma.h>
^
compilation terminated.
Makefile.housekeeping:1294: recipe for target 'util/zbin' failed
make: *** [util/zbin] Error 1
-end quote

I have all the required dependencies installed and I am trying to run this on a debian jessie install. I have found a few posts about this error from 2012 and it was noted to amend the make command with NO_WERROR=1 but this does not change the result. It still fails.

I have tried to create my own files at https://rom-o-matic.eu/ and can't get it to work. I am really confused about doing the simplest thing with this program, but I shall keep trying. This is what I would like to do.

A little background - I have a fully functioning PXE server with both the http and tftp daemons, with several grub entries serving up several different systems from both iso files and squashfs files (like gparted). It works fine because I have access to the router running dhcp and I can amend the dhcp.conf file to set the next-server and file information for other systems to boot from. I even created my own live version of debian to pxe boot. Again, it works fine.

Need to do - On another corporate network, I need to use a usb device to point the boot information to a specific ip address on a LAN (and/or WAN), because I will not have access to the router or the dhcp server. Can this be done with iPXE? From reading, and more reading, it seems like it would be easy but I am having no luck at all.

What I have done - I have successfully created a usb boot device with grub installed, and I can boot the ipxe.iso file from it. But from there I am brain locked and can't get past this.

Any help with the error message above and/or a way around this to make it work would be very appreciated. Thank you.

No nics detect by ipxe

Hello,

I'm trying to install a cisco servers with ipxe but it can't detect any nics.
My server needs the enic driver.
Is there someone who has integrate this driver to ipxe ?
Any idea on how to add this driver to ipxe ?

Thanks in advance for your help !

chainloading grub from local hdd

Hi,

I'm stucking in the following problem.

I have a PC with 3 harddrives.
Harddrive 1 is only running grub2
Harddrive 2 is running Windows 7
Harddrive 3 ist running Windows 10

In my case Harddrive 1 (grub 2) will always be launched. Grub2 is chainloading ipxe.lkrn.

Once reached ipxe, I can do 'dhcp' and analyse the gateway 'show gateway'.
Depending on the gateway-IP-address either Harddrive 2 or 3 will be launched. Basically this could be dann by 'sanboot', but I will additionally hide Drive 1 and 2 it Drive 3 ist starting. This could be done very easy in Grub.

So my question, is there any posibility to run grub again from ipxe, but on a local storage, not from a server. There is already a description how do to from a Server (http://ipxe.org/appnote/work_around_bios...ipxe_exit) but I have to run grub again from Harddrive 1.

Hopfully I summarized my problem not too confusing Image may be NSFW.
Clik here to view.
Wink


Thanks,
Martl

Using 31-Bit Prefixes as bitmask

Hi all.
is ipxe support in Using 31-Bit Prefixes on IPv4 Point-to-Point Links ?
i have a problem when using 31/ netmask for example :
host :
ip:1.1.1.0 netmask : 255.255.255.254

server :
ip 1.1.1.1 netmask : 255.255.255.254

the ipxe send to request to the server ( ip "1.1.1.1" ) as broadcast address so for this reason the server don't reply to ipxe request .
Viewing all 1484 articles
Browse latest View live


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