Bug 1652518

Summary: Rebase ipxe to latest upstream
Product: Red Hat Enterprise Linux 8 Reporter: Miroslav Rezanina <mrezanin>
Component: ipxeAssignee: Neil Horman <nhorman>
ipxe sub component: ipxe-bootimgs QA Contact: Jeff Bastian <jbastian>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: urgent    
Priority: urgent CC: augol, bhu, bloch, chayang, ealcaniz, jbastian, jshortt, jwboyer, mjenner, mrezanin, nhorman, pveiga, rbartal
Version: 8.0Keywords: Rebase
Target Milestone: rc   
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Story Points: ---
Clone Of: 1597210 Environment:
Last Closed: 2019-06-14 00:56:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1597210    
Bug Blocks: 1623566, 1634838, 1649545    

Comment 3 Raviv Bar-Tal 2018-11-27 13:47:45 UTC
Sorry Beth,
As we discuss on a long mail thread, I am not the right QE for the verification of this BZ.

Comment 5 Neil Horman 2018-12-11 15:58:22 UTC
just havent close duped it yet, I was holding off though, becuase I 1634838 was public facing and was going to close it when the work was done here

Comment 9 Neil Horman 2019-01-02 13:21:23 UTC
*** Bug 1634838 has been marked as a duplicate of this bug. ***

Comment 10 Chao Yang 2019-02-25 02:24:27 UTC
Hi Jeff,

Could you please help verify this bug? Thanks!

Comment 11 Jeff Bastian 2019-02-25 22:17:51 UTC
Verified on RHEL-8.0.0-20180213.0 (Snapshot 6.0) by iPXE booting a virtual machine.  The host system was configured as a PXE server (DHCP + TFTP) for the guests.

[root@localhost ~]# rpm -qa ipxe\*
ipxe-roms-20181214-1.git133f4c47.el8.noarch
ipxe-bootimgs-20181214-1.git133f4c47.el8.noarch
ipxe-roms-qemu-20181214-1.git133f4c47.el8.noarch

[root@localhost ~]# virsh net-dumpxml default
...
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
      <bootp file='pxelinux/pxelinux.0'/>
    </dhcp>
  </ip>
...

[root@localhost ~]# ls /var/lib/tftpboot/pxelinux/pxelinux.0
/var/lib/tftpboot/pxelinux/pxelinux.0

[root@localhost ~]# cat /var/lib/tftpboot/pxelinux/pxelinux.cfg/default 
default kickstart
label kickstart
  linux ../RHEL-8.0.0-20190213.0/vmlinuz
  append initrd=../RHEL-8.0.0-20190213.0/initrd.img ks=http://192.168.122.1/kickstart/ks-rhel800-snap6.cfg console=ttyS0,9600

[root@localhost ~]# virt-install \
    --name rhel8 \
    --memory 4096 \
    --vcpus 2 \
    --boot network,hd,useserial=on,menu=on \
    --rng /dev/random \
    --disk /var/lib/libvirt/images/rhel8.qcow2,bus=virtio,format=qcow2,size=20 \
    --network network=default,model=virtio \
    --graphics none \
    --noautoconsole \
    --serial file,path=/var/tmp/rhel8-serial.out \
    --pxe
WARNING  No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.

Starting install...
Domain installation still in progress. You can reconnect to 
the console to complete the installation process.

[root@localhost ~]# tail -f /var/tmp/rhel8-serial.out

Google, Inc.
Serial Graphics Adapter 12/14/18
SGABIOS $Id$ (mockbuild@) Fri Dec 14 14:55:54 UTC 2018
Term: 80x24
4 0
SeaBIOS (version 1.11.1-3.module+el8+2529+a9686a4d)
Machine UUID 398c0503-4ae6-491f-8103-74ff3e33e7fb


iPXE (http://ipxe.org) 00:02.0 C100 PCI2.10 PnP PMM+BFF911D0+BFED11D0 C100
Press Ctrl-B to configure iPXE (PCI 00:02.0)...



Press ESC for boot menu.

Booting from ROM...
iPXE (PCI 00:02.0) starting execution...ok
iPXE initialising devices...ok



iPXE 1.0.0+ -- Open Source Network Boot Firmware -- http://ipxe.org
Features: DNS HTTP iSCSI TFTP VLAN AoE ELF MBOOT PXE bzImage Menu PXEXT

Press Ctrl-B for the iPXE command line...
net0: 52:54:00:7d:e0:9e using virtio-net on 0000:00:02.0 (open)
  [Link:up, TX:0 TXE:0 RX:0 RXE:0]
Configuring (net0 52:54:00:7d:e0:9e).................. ok
net0: 192.168.122.182/255.255.255.0 gw 192.168.122.1
net0: fe80::5054:ff:fe7d:e09e/64
Next server: 192.168.122.1
Filename: pxelinux/pxelinux.0
tftp://192.168.122.1/pxelinux/pxelinux.0... ok
pxelinux.0 : 42819 bytes [PXE-NBP]
PXELINUX 6.04 PXE  Copyright (C) 1994-2015 H. Peter Anvin et al
Loading ../RHEL-8.0.0-20190213.0/vmlinuz... ok
Loading ../RHEL-8.0.0-20190213.0/initrd.img...ok
Probing EDD (edd=off to disable)... ok
[    0.000000] Linux version 4.18.0-67.el8.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sat Feb 9 12:44:00 UTC 2019
[    0.000000] Command line: BOOT_IMAGE=../RHEL-8.0.0-20190213.0/vmlinuz initrd=../RHEL-8.0.0-20190213.0/initrd.img ks=http://192.168.122.1/kickstart/ks-rhel800-snap6.cfg console=ttyS0,9600
...
...
...
Starting installer, one moment...
anaconda 29.19.0.34-1.el8 for Red Hat Enterprise Linux 8.0.0 (pre-release) started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2
 * if the graphical installation interface fails to start, try again with the
   inst.text bootoption to start text installation
 * when reporting a bug add logs from /tmp as separate text/plain attachments
...
...
...
Installing libgcc.x86_64 (1/406)
Installing geolite2-country.noarch (2/406)
Installing geolite2-city.noarch (3/406)
...
...
...