<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-forward-container">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hi, <br>
<br>
Track bug: <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://bugs.centos.org/view.php?id=8295">https://bugs.centos.org/view.php?id=8295</a>
<br>
<br>
I am now setting up an ipxe server to install UEFI guest, but I
have one problem: <br>
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. <br>
<br>
Could you help to resolve the problem? I checked the bug, and
found that it does not have the problem. Thanks!<br>
<br>
My environment: <br>
Host: windows 2012R2, gen2(UEFI firmware) <br>
Guest: rhel7.1 (same kernel version as <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://vault.centos.org/7.1.1503/os/x86_64/">http://vault.centos.org/7.1.1503/os/x86_64/</a>)
<br>
PXE server: rhel7.1 <br>
<br>
Setup iPXE Server: <br>
1) yum install binutils-devel gcc zlib-devel bintutils perl make
git xz-devel <br>
2) git clone git://git.ipxe.org/ipxe.git <br>
3) cd ipxe/src <br>
4) make bin-x86_64-efi/ipxe.efi <br>
5) make bin/undionly.kpxe <br>
6) Setup dhcpd server <br>
7) Setup tftp server <br>
<br>
# ls <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/lib/tftpboot<span
class="moz-txt-tag">/</span></i> <br>
initrd.img ipxe.cfg ipxe.efi undionly.kpxe vmlinuz <br>
<br>
dhcpd.conf: <br>
<br>
option arch code 93 = unsigned integer 16; <br>
<br>
subnet 192.168.199.0 netmask 255.255.255.0 { <br>
<br>
option routers 192.168.199.1; <br>
<br>
range 192.168.199.10 192.168.199.50; <br>
<br>
class "pxeclients" { <br>
<br>
match if substring (option vendor-class-identifier, 0, 9) =
"PXEClient"; <br>
<br>
next-server 192.168.199.5; <br>
<br>
if exists user-class and option user-class = "iPXE" { <br>
<br>
filename "ipxe.cfg"; <br>
<br>
} <br>
<br>
else if option arch = 00:07 { <br>
<br>
filename "ipxe.efi"; <br>
<br>
} <br>
<br>
else { <br>
<br>
filename "undionly.kpxe"; <br>
<br>
} <br>
<br>
} <br>
<br>
} <br>
<br>
<br>
ipxe.cfg: <br>
<br>
#!ipxe <br>
dhcp <br>
kernel vmlinuz ro ip=dhcp inst.repo=<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://192.168.99.10/rhel/7/os/x86_64">http://192.168.99.10/rhel/7/os/x86_64</a>
initrd=initrd.img <br>
initrd initrd.img <br>
boot <br>
<br>
<br>
Exec Steps: <br>
1. Create a gen2 Hyper-V VM with 2GB RAM, network boot, defaults
for everything else. <br>
2. Disable Secure Boot in EFI firmware config. <br>
3. Start VM. <br>
<br>
Actual Result: <br>
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 <br>
<br>
Additional Info: <br>
1. For gen1(bios), can install OS successfully. <br>
2. After type imgstat command, shows "[EFI] [selected]" <br>
<br>
<br>
Best Regards<br>
<pre class="moz-signature" cols="72">--
Best Regards
Huijing Hei
IRC: hhei@#eng-china, #virt
Tel: 8389425</pre>
<br>
</div>
<br>
</body>
</html>