- create answers.xml
- unpack iso file
mount sudo mount XenServer-7.1.0-s1-install-cd.iso /mnt
mkdir newContent
(cd /mnt; sudo tar cf - .) | (cd newContent; tar xfp -)
- alter install.img to add answers.xml
chmod +w newContent/install.img
echo ./answers.xml | cpio -H newc -o | bzip2 | cat /mnt/install.img - > newContent/install.img
- chmod +w then edit boot/isolinux/isolinux.cfg
add answerfile=file:///answers.xml install
to the default target, the file address is relative to the initram FS, hence the prior addition of the file to intall.img
- repack iso
sudo genisoimage -o newIso.iso -b boot/isolinux/isolinux.bin -c boot/isolinux/isolinux.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "XenServer-7.1.0 Base Pack" newContent