Hi !

To resolv this problem I have had to add the section that deals with the pxeclients class into the group section of the DHCP template.

 

I’ve replaced the condition that load the net bios file under the “group” section:

filename "$iface.filename";

By these lines

#filename "$iface.filename";

    class "pxeclients" {

          match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";

          if option pxe-system-type = 00:02 {

                  filename "ia64/elilo.efi";

          } else if option pxe-system-type = 00:06 {

                  filename "grub/grub-x86.efi";

          } else if option pxe-system-type = 00:07 {

                  filename "grub/grub-x86_64.efi";

          } else {

                  filename "pxelinux.0";

          }

     }

 

That’s it.

 

De : Marcq, Nicolas
Envoyé : lundi 3 août 2015 15:40
À : 'cobbler@lists.fedorahosted.org' <cobbler@lists.fedorahosted.org>
Objet : VMware EFI + CentOS7

 

Hi experts !

I’m testing Cobbler and I’m stuck when I try to deploy CentOS 7 on VMware VM (ESX 5.5) with EFI bios activated.

 

I don’t see anything about specific configuration I should have added on the official documentation. In DHCP log I can see the requested boot file is pxelinux.0 instead of grub-x86_64.efi but I don’t know why.

 

Thx for any help!

 

My Cobbler version

cobbler --version

Cobbler 2.6.9

  source: ?, ?

  build time: Mon Jun 22 18:06:11 2015

 

This is my DCHP config

subnet 192.168.0.0 netmask 255.255.255.0 {

     option routers             192.168.0.1;

     option domain-name-servers 16.110.135.51;

     option subnet-mask         255.255.255.0;

     range dynamic-bootp        192.168.0.100 192.168.0.200;

     default-lease-time         21600;

     max-lease-time             43200;

     next-server                192.168.0.1;

     class "pxeclients" {

          match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";

          if option pxe-system-type = 00:02 {

                  filename "ia64/elilo.efi";

          } else if option pxe-system-type = 00:06 {

                  filename "grub/grub-x86.efi";

          } else if option pxe-system-type = 00:07 {

                  filename "grub/grub-x86_64.efi";

          } else {

                  filename "pxelinux.0";

          }

     }

}

 

My System declaration

cat /var/lib/tftpboot/grub/01-00-50-56-BD-48-E7

title CentOS-7-x86_64

    root (nd)

    kernel /images/CentOS-7-x86_64/vmlinuz  ksdevice=bootif lang=  kssendmac text  ks=http://192.168.0.1/cblr/svc/op/ks/system/test

    initrd /images/CentOS-7-x86_64/initrd.img

 

My DHCP log

tail -f /var/log/messages

Aug  3 15:14:43 hwosvm12 dhcpd:

Aug  3 15:14:43 hwosvm12 dhcpd: Sending on   Socket/fallback/fallback-net

Aug  3 15:14:43 hwosvm12 systemd: Started DHCPv4 Server Daemon.

Aug  3 15:14:57 hwosvm12 dhcpd: DHCPDISCOVER from 00:50:56:bd:48:e7 via ens224

Aug  3 15:14:58 hwosvm12 dhcpd: DHCPOFFER on 192.168.0.101 to 00:50:56:bd:48:e7 via ens224

Aug  3 15:15:00 hwosvm12 dhcpd: DHCPREQUEST for 192.168.0.101 (192.168.0.1) from 00:50:56:bd:48:e7 via ens224

Aug  3 15:15:00 hwosvm12 dhcpd: DHCPACK on 192.168.0.101 to 00:50:56:bd:48:e7 via ens224

Aug  3 15:15:00 hwosvm12 in.tftpd[23148]: RRQ from 192.168.0.101 filename /pxelinux.0

Aug  3 15:15:00 hwosvm12 in.tftpd[23148]: tftp: client does not accept options

Aug  3 15:15:00 hwosvm12 in.tftpd[23149]: RRQ from 192.168.0.101 filename /pxelinux.0

Aug  3 15:30:01 hwosvm12 xinetd[13037]: EXIT: tftp status=0 pid=22585 duration=1699(sec)