I figured out the problem. Unattended network boot installs do not work because the XCP installation reboots itself which leads to an endless loop.
I fixed it temporarily by creating a pxelinux.cfg menu that looks like this.
timeout 100 # 10 seconds
menu width 80
menu margin 10
menu title Boot Options
menu indent 4
menu label ^Remote Installation
append xenserver/xen.gz dom0_mem=752M com1=115200,8n1 console=com1,tty --- xenserver/vmlinuz xencons=hvc console=hvc0 console=tty0 answerfile=http://<IP-address>/master/answerfile.xml install --- xenserver/install.img
menu indent 4
menu label ^Local Boot
I had to install a newer version of syslinux (3.75) to make the timeout work because the one that comes with CentOS 5.5 by default is really old (3.11) and has a bug in it that causes the timeout stuff to not work.
I can now install remotely by choosing the “R” option but by default it will do a localboot.
This is not an acceptable solution for a datacenter that wants to support automatic setup when a blade or rackmount is powered up but it will do for now.
From: Joe Linoff
Sent: Saturday, November 20, 2010 4:34 PM
Cc: Joe Linoff
Subject: XCP 0.5 PXE/TFTP infinite boot loop problem
I need some help or some hints about how to debug an infinite boot loop for an XCP 0.5 host. I am almost sure that it is pilot error but I can’t figure out what I did wrong. Any insights would be greatly appreciated.
My test network is configured to PXE/TFTP install xenserver on several hosts by MAC address. I used the template in Appendix B of the installation guide. Everything seems to be working just fine. The PXE boot finds the TFTP server and installs xenserver. The answerfile is successfully invoked. The configuration process completes and everything looks fine but then it reboots itself and the process starts again.
I don’t have access to the console right now (this is on a rack in a remote location) and I had to go home so I am trying to create a setup that will reproduce the problem locally but that will take awhile. For remote debugging I am using wireshark to analyze the dhcp server/xcp host communication which allows me to observe the loop via packet interactions unfortunately I don’t have access to the console. The fact that it setups correctly and uses the answerfile seems to indicate that the DHCP setup it okay.
Here is the syslinux pxlinux.cfg file that I am using. Note that I had to remove the absolute paths from the example in the installation guide to make it work. Also note that I added an extra layer in the /tftpboot directory hierarchy but that shouldn’t matter because TFTP is finding everything.
APPEND xenserver/xen.gz dom0_mem=752M com1=115200,8n1 console=com1,tty --- xenserver/vmlinuz xencons=hvc console=hvc0 console=tty0 answerfile=http://10.45.2.1/tcc/xenserver/answerfile install --- xenserver/install.img
Here is the one that I intend to use after the host is installed for boots from the local disk:
Here is the answerfile:
<admin-interface name="eth0" proto="dhcp"></admin-interface>
Here is the post-install script:
# do nothing for now