I am trying to a install Centos 5.1 32-bit Xen HVM DomU onto a Centos 5.1 64bit DomU with the default xen installed and the kickstart hangs at random points during the install process. Sometimes retrieving the image, sometimes formatting the filesystem, sometimes installing the packages,etc.
I tried upgrading to xen 3.2 and encounter the same problem before rebuilding back to stock Centos 5.1 64-bit Xen. I am able to use our kickstarts configs to install Centos 5.1 64-bit HVM and Centos 4.5 32-bit HVM on this machine without any problem's.
Below is xen configuration and the Centos 5.1 32-bit kickstart Config file I have been using.
Any help would be greatly appreciated and I can provide addition information if needed. * Xen DomU configuration file:*
name = "prod-xen-2" maxmem = 2048 memory = 2048 vcpus = 2 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" boot = "d" pae = 1 acpi = 1 apic = 1 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" device_model = "/usr/lib64/xen/bin/qemu-dm.debug" sdl = 0 vnc = 1 vncunused = 0 vncdisplay = 1 disk = [ "file:/tmp/prod-xenl-2.img,hda,w","file:/tmp/kickstart-20080307.iso,hdc:cdrom,r" ] vif = [ "bridge=xenbr0,type=ioemu,model=rtl8139" ] * Kickstart file:*
#System language lang en_US #Language modules to install langsupport en_US en --default=en_US #System keyboard keyboard us #System mouse mouse none #Sytem timezone timezone America/Los_Angeles #Root password rootpw --iscrypted $1$zdTapqUj$q.NMaDmwi1CjOPiRsyILB1 #Install OS instead of upgrade install url --url http://10.200.250.11/kickstart/OS/centos_5_1_32/ #Clear the Master Boot Record zerombr yes firewall --disabled selinux --disabled authconfig --enableshadow --enablemd5 bootloader --location=mbr --append="nofb" network --bootproto=dhcp --device=eth0 logging --host=prod-utility-1.sea2.jobster.us --port=514 --level=info skipx reboot
#Partition clearing information clearpart --all #Partition the Drives part /boot --fstype ext3 --size=100 part swap --fstype swap --size=4096 part / --fstype ext3 --size=500 --grow
#Package install information %packages resolvedeps acl acpid adjtimex -alsa-lib -amtu -anaconda -anaconda-runtime #?anacron -apmd apr apr-devel apr-util apr-util-devel -arpwatch aspell aspell-en -at -atk -at-spi attr -audiofile audit audit-libs -audit-libs-python authconfig autoconf -autofs automake automake17 -avahi -avahi-glib basesystem bash bc beecrypt bind-libs bind-utils binutils bison blas -bluez-gnome -bluez-libs -bluez-utils booty byacc bzip2 bzip2-devel bzip2-libs -cairo ccid centos-release centos-release-notes -checkpolicy chkconfig chkfontpath cman compat-db compat-gcc-34 compat-gcc-34-c++ compat-glibc compat-glibc-headers compat-libgcc-296 compat-libstdc++-296 compat-libstdc++-33 compat-openldap compat-readline43 compat-slang comps-extras -conman -coolkey coreutils cpio cpp cpuspeed cracklib cracklib-dicts crash createrepo crontabs cryptsetup-luks -cups -cups-libs curl -cyrus-sasl -cyrus-sasl-lib -cyrus-sasl-plain -dasher db4 db4-devel -dbus -dbus-glib -dbus-python -Deployment_Guide-en-US -desktop-file-utils device-mapper device-mapper-multipath -dhcdbd dhclient -dhcpv6_client dialog diffstat diffutils distcache dmidecode dmraid docbook-dtds dos2unix dosfstools dump e2fsprogs -e2fsprogs-devel e2fsprogs-libs -ed eject elfutils elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static elfutils-libs elinks emacs emacs-common enscript -esound ethtool -evince expat expat-devel expect fbset -festival file -file-roller filesystem findutils finger -firstboot-tui flex fontconfig fontconfig-devel fonts-sinhala freetype freetype-devel ftp -gail gamin gamin-devel gawk gcc gcc-c++ -GConf2 gd gdb gdbm gdbm-devel gd-devel -gdm gettext gfs2-utils ghostscript ghostscript-devel ghostscript-fonts giflib glib glib-devel glib2 glib2-devel glibc glibc-common glibc-devel glibc-headers gmp gmp-devel -gnome-keyring -gnome-mime-data -gnome-mount -gnome-python2 -gnome-python2-bonobo -gnome-python2-canvas -gnome-python2-gconf -gnome-python2-gnomevfs -gnome-speech -gnome-vfs2 -gnu-efi gnupg gnutls gnutls-utils gperf -gpm grep groff grub -gtk2 -gtk2-engines gzip -hal hdparm -hesiod -hicolor-icon-theme -htmlview hwdata -ibmasm -ifd-egate ImageMagick ImageMagick-c++ ImageMagick-c++-devel ImageMagick-devel imake info initscripts iproute ipsec-tools iptables -iptables-ipv6 iptstate iputils -irda-utils irqbalance iscsi-initiator-utils jwhois kbd kexec-tools kernel kernel-devel kernel-headers keyutils keyutils-libs kpartx -krb5-devel -krb5-libs -krb5-workstation ksh -kudzu -lapack -lcms -lcms-devel less lftp libacl libacl-devel libaio libart_lgpl libart_lgpl-devel libattr libattr-devel libbdevid-python -libbonobo -libbonoboui libcap libcap-devel -libcroco -libdaemon libdbi -libdbi-dbd-pgsql libdbi-drivers libdhcp libdhcp4client -libdhcp6client libdmx -libdrm libevent libexif libexif-devel libfontenc libFS libgcc libgcrypt -libgfortran -libglade2 -libgnome libgnomecanvas -libgnomecups -libgnomeprint22 -libgnomeprintui22 -libgnomeui libgomp libgpg-error libgsf libgssapi libhugetlbfs libhugetlbfs-lib libICE libICE-devel libIDL libidn libjpeg libjpeg-devel libmng libmng-devel libnl libnotify libpcap libpng libpng-devel -librsvg2 -libselinux -libselinux-devel -libselinux-python -libsemanage -libsepol -libsepol-devel libSM libSM-devel libstdc++ libstdc++-devel libsysfs libtermcap libtermcap-devel libtiff libtiff-devel libtool libtool-ltdl libtool-ltdl-devel libusb -libuser -libuser-devel libutempter libvolume_id libwmf libwnck libX11 libX11-devel libXau libXau-devel libXaw libXcursor libXdmcp libXdmcp-devel libXevie libXext libXext-devel libXfixes libXfont libXfontcache libXft libXi libXinerama libxkbfile libxml2 libxml2-devel libxml2-python libXmu libXpm libXpm-devel libXrandr libXrender libXres libxslt libXt libXt-devel libXTrap libXtst libXv libXxf86dga libXxf86misc libXxf86vm lksctp-tools lm_sensors lockdev lockdev-devel logrotate -logwatch -lrzsz lsof ltrace lvm2 lvm2-cluster lynx -m17n-db-sinhala -m2crypto -m4 mailcap mailx make MAKEDEV man man-pages -mcstrans mdadm mesa-libGL mesa-libGL-devel mgetty microcode_ctl -mikmod mingetty minicom -mkbootdisk mkinitrd mkisofs mktemp mlocate module-init-tools mtools mtr -mt-st nano nash -nautilus-extensions nc ncurses ncurses-devel -neon #netconfig netpbm netpbm-devel netpbm-progs net-snmp net-snmp-libs net-snmp-perl net-tools -NetworkManager -newt nfs-utils nfs-utils-lib nmap -notification-daemon -notify-python -nscd nspr nss nss_db -nss_ldap nss-tools ntp ntsysv -numactl -oddjob -oddjob-libs -openais OpenIPMI OpenIPMI-libs OpenIPMI-tools openjade openldap opensp openssh openssh-clients openssh-server openssl openssl097a openssl-devel -oprofile -ORBit2 pam pam-devel pam_ccreds -pam_krb5 pam_passwdqc pam_pkcs11 pam_smb pango paps parted passwd patch patchutils pax pciutils pciutils-devel -pcmciautils pcre pcre-devel pcsc-lite pcsc-lite-libs perl perl-Compress-Zlib perl-Convert-ASN1 perl-Crypt-SSLeay perl-DateManip perl-DBD-Pg perl-DBI perl-HTML-Parser perl-HTML-Tagset perl-IO-Socket-SSL perl-LDAP perl-libwww-perl perl-libxml-perl perl-Net-SSLeay perl-Net-Telnet perl-NKF perl-String-CRC32 perl-URI perl-XML-Dumper perl-XML-Grove perl-XML-NamespaceSupport perl-XML-Parser perl-XML-SAX perl-XML-Twig pinfo -pirut pkgconfig pkinit-nss pm-utils -policycoreutils poppler popt portmap postfix postgresql-libs ppp prelink procinfo procps psacct psgml psmisc pstack psutils -pycairo -pygobject2 -pygtk2 -pygtk2-libglade -pykickstart -pyorbit -pyparted python python-elementtree python-numeric python-pyblock -python-sqlite python-urlgrabber pyxf86config -quota -rdate -rdist readahead readline readline-devel -redhat-artwork -redhat-logos redhat-lsb -redhat-menus redhat-rpm-config rgmanager rhpl rhpxl -rmt rng-utils rootfiles rpm rpm-build rpm-devel rpm-libs -rpm-python -rp-pppoe -rsh rsync samba samba-client samba-common screen scrollkeeper sed -selinux-policy -selinux-policy-targeted -sendmail setarch -setools setserial setup setuptool sgml-common shadow-utils shared-mime-info sharutils slang slang-devel smartmontools sos specspo splint -sqlite -sqlite-devel squashfs-tools -startup-notification statserial strace stunnel subversion sudo swig symlinks sysfsutils sysklogd syslinux #sysreport sysstat -system-config-date -system-config-network-tui -system-config-securitylevel-tui -systemtap -systemtap-runtime SysVinit talk tar tcl tcl-devel tcpdump tcp_wrappers tcsh telnet -telnet-server termcap tetex tetex-dvips tetex-fonts tetex-latex texinfo tftp time tk tk-devel tmpwatch traceroute -tree ttmkfdir tzdata udev unix2dos unzip urw-fonts usbutils usermode util-linux vconfig vim-common vim-enhanced -vim-minimal vixie-cron wget which -wireless-tools words -wpa_supplicant x86info Xaw3d -xferstats xinetd xkeyboard-config xml-common -xorg-x11-drv-evdev -xorg-x11-drv-keyboard -xorg-x11-drv-mouse -xorg-x11-drv-vesa -xorg-x11-drv-void xorg-x11-filesystem xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-base xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-fonts-ISO8859-1-75dpi xorg-x11-fonts-ISO8859-9-100dpi xorg-x11-fonts-ISO8859-9-75dpi xorg-x11-fonts-misc xorg-x11-fonts-truetype xorg-x11-fonts-Type1 xorg-x11-font-utils xorg-x11-proto-devel xorg-x11-resutils xorg-x11-server-utils xorg-x11-server-Xorg xorg-x11-utils xorg-x11-xauth xorg-x11-xbitmaps xorg-x11-xfs xorg-x11-xinit xorg-x11-xkb-utils xorg-x11-xsm xorg-x11-xtrans-devel -ypbind -yp-tools yum yum-updatesd zip zlib zlib-devel
#Post install scripts %post (
cat <<EOF; ############################################################################### ## CFEngine Install ## ############################################################################### EOF
rpm -Uvh http://kickstart.sea2.jobster.us/updates/rhel_5_32/cfengine/cfengine-2.1.22-... wget http://kickstart.sea2.jobster.us/kickstart/post-installs/common/cfengine/cfa... /var/cfengine/inputs/cfagent.conf wget http://kickstart.sea2.jobster.us/kickstart/post-installs/common/cfengine/upd... /var/cfengine/inputs/update.conf wget http://kickstart.sea2.jobster.us/kickstart/post-installs/common/cfengine/roo... /var/cfengine/ppkeys/root-10.200.1.39.pub wget http://kickstart.sea2.jobster.us/kickstart/post-installs/common/cfengine/roo... /var/cfengine/ppkeys/root-10.10.20.44.pub chown root.root /var/cfengine/inputs/cfagent.conf /var/cfengine/inputs/update.conf /var/cfengine/ppkeys/* chmod 664 /var/cfengine/inputs/cfagent.conf /var/cfengine/inputs/update.conf /var/cfengine/ppkeys/*
cat <<EOF; ############################################################################### ## Network Failover (Bonding) Configuration ## ############################################################################### EOF
wget http://10.200.250.11/kickstart/post-installs/fc4/teaming/ifcfg-bond0 -O /etc/sysconfig/network-scripts/ifcfg-bond0 wget http://10.200.250.11/kickstart/post-installs/fc4/teaming/ifcfg-eth0 -O /etc/sysconfig/network-scripts/ifcfg-eth0 wget http://10.200.250.11/kickstart/post-installs/fc4/teaming/ifcfg-eth1 -O /etc/sysconfig/network-scripts/ifcfg-eth1 echo "alias bond0 bonding" >>/etc/modprobe.conf echo "options bond0 mode=1 miimon=100" >>/etc/modprobe.conf chmod 644 /etc/sysconfig/network-scripts/ifcfg-bond0
cat <<EOF; ############################################################################### ## Time Sync ## ############################################################################### EOF ntpdate prod-utility-vip.sea2.jobster.us hwclock --systohc
cat <<EOF; ############################################################################### ## Disable Grub Splash Screen ## ############################################################################### EOF sed -i s'/^splash/#splash/'g /boot/grub/menu.lst sed -i s'/^hidden/#hidden/'g /boot/grub/menu.lst sed -i s'/quiet//'g /boot/grub/menu.lst
cat <<EOF; ############################################################################### ## Disable IPv6 ## ############################################################################### EOF sed -i s'/^NETWORKING_IPV6=yes/NETWORKING_IPV6=no/'g /etc/sysconfig/network
cat <<EOF; ############################################################################### ## Clean /etc/hosts ## ############################################################################### EOF cat /etc/hosts | grep -v dhcp >/etc/hosts.new rm -f /etc/hosts mv /etc/hosts.new /etc/hosts chmod 644 /etc/hosts
cat <<EOF; ############################################################################### ## Copy searchdmi.sh ## ############################################################################### EOF wget http://kickstart.sea2.jobster.us/kickstart/post-installs/common/searchdmi.sh... /usr/local/sbin/searchdmi.sh chown root.root /usr/local/sbin/searchdmi.sh chmod 555 /usr/local/sbin/searchdmi.sh
cat <<EOF; ############################################################################### ## Email Notification upon initial install only ## ############################################################################### EOF wget http://kickstart.sea2.jobster.us/kickstart/post-installs/common/email_el5.sh... /etc/rc3.d/S99email chmod 555 /etc/rc3.d/S99email chown root.root /etc/rc3.d/S99email
cat <<EOF; ############################################################################### ## Turn off unneeded services in advance ## ############################################################################### EOF
export SERVICES="anacron atd auditd avahi-daemon cpuspeed cups gpm haldaemon ip6tables iptables iscsi iscsid iscsid kudzu lm_sensors mcstrans mdmonitor messagebus pcscd readahead_early resto recond rpcgssd rpcidmapd xfs yum-updatesd"
for service in $SERVICES; do chkconfig --level 12345 $service off; chkconfig --list $service; done
cat <<EOF; ############################################################################### ## Turn on needed services in advance ## ############################################################################### EOF
export ON_SERVICES="snmpd ntpd" for service in $ON_SERVICES; do chkconfig --level 12345 $service on; chkconfig --list $service; done
############################################################################### ## Update the Linux Kernel ## ############################################################################### EOF rpm -Uvh http://kickstart.sea2.jobster.us/updates/centos5/static/i386/kernel-PAE-2.6.... http://kickstart.sea2.jobster.us/updates/centos5/static/i386/kernel-PAE-deve... . 18-53.1.4.el5.i686.rpm http://kickstart.sea2.jobster.us/updates/centos5/static/i386/kernel-headers-...
sed -i s'/default=.*/default=0/'g /boot/grub/grub.conf rpm -e kernel-2.6.18-53.1.4.el5
cat <<EOF; ############################################################################### ## Update System RPMS ## ############################################################################### EOF wget -P /tmp -np -q -r http://kickstart.sea2.jobster.us/updates/centos5/kickstart-postinstall/i386/ rpm -Uvh /tmp/ kickstart.sea2.jobster.us/updates/centos5/kickstart-postinstall/i386/*rpm rm -rfv /tmp/kickstart.sea2.jobster.us
cat <<EOF; # Done EOF )