[ipxe-devel] Track bug: https://bugs.centos.org/view.php?id=8295, failed to setup an ipxe server
hhei
hhei at redhat.com
Fri Apr 15 01:58:42 UTC 2016
Hi,
Thanks for your responding!
I have tried it as your suggestion, result is not good.
1. After update dhcpd.conf as your suggestion, uefi does not work, and
bios does not work well, it will download undionly.kpxe again and again.
2. I change the section to the following description, and bios works
well, but uefi does not work well, and the result is the same as mentioned(
After type the "boot" command from the command-line (not from the
script), that I do not see an error-message, then boot from pxe network,
then load ipxe.efi, be stuck in loop, after 3 times, guest turns off.
)
-------------------------------------------
if option arch = 00:07 {
if exists user-class and option user-class = "iPXE"
{
filename "ipxe.cfg";
}
else {
filename "ipxe.efi";
}
}
else {
if exists user-class and option user-class = "iPXE" {
filename "ipxe.cfg";
}
else {
filename "undionly.kpxe";
}
}
-------------------------------------------
After tried many times, I thought it was related to "boot", why boot
command can not load vmlinuz correctly, but kernel and initrd command
can exec successfully, and "imgstat" command seems right with correct size.
Best Regards
hhei
On 04/14/2016 03:11 PM, Hummel Frank wrote:
> I think you should replace this section:
> ---------------------------------------------------------------------
> else if option arch = 00:07 {
>
> filename "ipxe.efi";
>
> }
> ---------------------------------------------------------------------
> by this section to break the bootloop:
> ---------------------------------------------------------------------
> if option arch = 00:07 {
> if exists user-class {
> if option user-class = "iPXE" {
> filename "ipxe.cfg";
> }
> }
> filename "ipxe.efi";
> }
> ---------------------------------------------------------------------
> mit freundlichen Grüßen
> with kind regards
>
> i. A. Dipl.Ing. (FH) Frank Hummel
> Systementwicklung
> System development
>
> ads-tec GmbH
> Heinrich-Hertz Str. 1
> 72622 Nürtingen
> Germany
>
> Tel.: +49 7022 2522-2412
> Fax: +49 7022 2522-400
> E-Mail: F.Hummel at ads-tec.de
> Web: www.ads-tec.de
>
> Von: ipxe-devel-bounces at lists.ipxe.org [mailto:ipxe-devel-bounces at lists.ipxe.org] Im Auftrag von hhei
> Gesendet: Donnerstag, 14. April 2016 03:48
> An: ipxe-devel at ipxe.org
> Betreff: [ipxe-devel] Track bug: https://bugs.centos.org/view.php?id=8295, failed to setup an ipxe server
>
>
> Hi,
>
> Track bug: https://bugs.centos.org/view.php?id=8295
>
> I am now setting up an ipxe server to install UEFI guest, but I have one problem:
> After type the "boot" command from the command-line (not from the script), that I do not see an error-message, then boot from pxe network, then load ipxe.efi, be stuck in loop, after 3 times, guest turns off.
>
> Could you help to resolve the problem? I checked the bug, and found that it does not have the problem. Thanks!
>
> My environment:
> Host: windows 2012R2, gen2(UEFI firmware)
> Guest: rhel7.1 (same kernel version as http://vault.centos.org/7.1.1503/os/x86_64/)
> PXE server: rhel7.1
>
> Setup iPXE Server:
> 1) yum install binutils-devel gcc zlib-devel bintutils perl make git xz-devel
> 2) git clone git://git.ipxe.org/ipxe.git
> 3) cd ipxe/src
> 4) make bin-x86_64-efi/ipxe.efi
> 5) make bin/undionly.kpxe
> 6) Setup dhcpd server
> 7) Setup tftp server
>
> # ls /var/lib/tftpboot/
> initrd.img ipxe.cfg ipxe.efi undionly.kpxe vmlinuz
>
> dhcpd.conf:
>
> option arch code 93 = unsigned integer 16;
>
> subnet 192.168.199.0 netmask 255.255.255.0 {
>
> option routers 192.168.199.1;
>
> range 192.168.199.10 192.168.199.50;
>
> class "pxeclients" {
>
> match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
>
> next-server 192.168.199.5;
>
> if exists user-class and option user-class = "iPXE" {
>
> filename "ipxe.cfg";
>
> }
>
> else if option arch = 00:07 {
>
> filename "ipxe.efi";
>
> }
>
> else {
>
> filename "undionly.kpxe";
>
> }
>
> }
>
> }
>
>
> ipxe.cfg:
>
> #!ipxe
> dhcp
> kernel vmlinuz ro ip=dhcp inst.repo=http://192.168.99.10/rhel/7/os/x86_64 initrd=initrd.img
> initrd initrd.img
> boot
>
>
> Exec Steps:
> 1. Create a gen2 Hyper-V VM with 2GB RAM, network boot, defaults for everything else.
> 2. Disable Secure Boot in EFI firmware config.
> 3. Start VM.
>
> Actual Result:
> After type the "boot" command from the command-line (not from the script), that I do not see an error-message, then boot from pxe network, then load ipxe.efi, be stuck in loop, after 3 times, guest turns off
>
> Additional Info:
> 1. For gen1(bios), can install OS successfully.
> 2. After type imgstat command, shows "[EFI] [selected]"
>
>
> Best Regards
>
--
Best Regards
Huijing Hei
IRC: hhei@#eng-china, #virt
Tel: 8389425
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipxe-uefi-rhel7.png
Type: image/png
Size: 14442 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20160415/d2956db4/attachment.png>
More information about the ipxe-devel
mailing list