# Fedora 20 Server kickstart for XenServer # branch: master (version 0.1) ########################################## # Install, not upgrade install # Install from a friendly mirror and add updates url --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-20&arch=$basearch repo --name=updates # Language and keyboard setup lang en_US.UTF-8 keyboard us # Configure networking without IPv6, firewall off # for STATIC IP: uncomment and configure # network --onboot=yes --device=eth0 --bootproto=static --ip=192.168.###.### --netmask=255.255.255.0 --gateway=192.168.###.### --nameserver=###.###.###.### --noipv6 --hostname=$$$ # for DHCP: network --bootproto=dhcp --device=eth0 --onboot=on firewall --disabled # Set timezone timezone --utc Etc/UTC # Authentication rootpw Asdfqwerty # if you want to preset the root password in a public kickstart file, use SHA512crypt e.g. # rootpw --iscrypted $6$9dC4m770Q1o$FCOvPxuqc1B22HM21M5WuUfhkiQntzMuAV7MY0qfVcvhwNQ2L86PcnDWfjDd12IFxWtRiTuvO/niB0Q3Xpf2I. authconfig --enableshadow --passalgo=sha512 # SELinux enabled selinux --enforcing # Disable anything graphical skipx text # Setup the disk zerombr clearpart --all --drives=xvda part / --fstype=ext3 --grow --size=1024 --asprimary bootloader --location=partition --timeout=5 --driveorder=xvda --append="console=hvc0" # Shutdown when the kickstart is done halt # Minimal package set %packages --excludedocs @standard man vim deltarpm yum-plugin-fastestmirror realmd net-tools -dracut-config-rescue -fprintd-pam -wireless-tools %end # Copy grub.cfg to a backup and then make adaptations for buggy pygrub %post cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak cp /etc/default/grub /etc/default/grub.bak cp --no-preserve=mode /etc/grub.d/00_header /etc/grub.d/00_header.bak sed -i 's/GRUB_DEFAULT=saved/GRUB_DEFAULT=0/' /etc/default/grub sed -i 's/default="\\${next_entry}"/default="0"/' /etc/grub.d/00_header grub2-mkconfig -o /boot/grub2/grub.cfg %end