How to use pxe provision


#1

I use IPXE, and i can provision pxe, but it need manul input, and i
can not get anyfiles been written by ManageIQ on my PXE server, i have
read Creating new VMs through ManageIQ and PXE, but i still do not not how to solve my problem, i think i have missed something, could you help me?
here is my configuration:

/etc/dhcp/dhcpd.conf:
next-server 172.30.8.172;
subnet 172.30.0.0 netmask 255.255.240.0 {
if exists user-class and option user-class = “iPXE” {
filename “http://${next-server}/ipxe/menu.php”;
} else {
filename “/undionly.kpxe”;

}
range 172.30.9.1 172.30.9.254;
}

my menu.php:

!ipxe

menu CFME iPXE Boot Menu

item --gap – -----My-Images:
item RHEL7mini RHEL7 mininmal
item CENTOS7mini CENTOS7 minamal

choose --default RHEL7mini --timeout 60000 os && goto ${os}

:RHEL7mini
kernel http://{next-server}/ipxe/image/rhel/7.0/vmlinuz ks=http://{next-server}/ipxe/ks/rhel/minimal.ks.cfg
initrd http://{next-server}/ipxe/image/rhel/7.0/initrd.img boot :CENTOS7mini kernel http://{next-server}/ipxe/image/centos/7/vmlinuz ks=http://{next-server}/ipxe/ks/centos7/centos7_minimal.ks.cfg initrd http://{next-server}/ipxe/image/centos/7/initrd.img
boot

my nfs setting:
/mnt
/var/www/html/ipxe

folder setting:
/var/www/html/ipxe
/var/www/html/ipxe/menu.php
/var/www/html/ipxe/mac
/var/www/html/ipxe/image
/var/www/html/ipxe/ks

thanks verymuch


#2

@blomquisg can you review this question from @theseaofstars and forward if necessary.


#3

@bdunne Can you review this issue?