install cdrom lang en_US.UTF-8 keyboard us network --bootproto=dhcp --onboot=on --device=eth0 rootpw --plaintext vagrant firewall --disabled selinux --permissive timezone UTC unsupported_hardware bootloader --timeout=1 --location=mbr --append="net.ifnames=0 biosdevname=0" text skipx zerombr clearpart --all --initlabel autopart auth --enableshadow --passalgo=sha512 --kickstart firstboot --disabled reboot --eject user --name=vagrant --plaintext --password vagrant key --skip %packages --nobase --ignoremissing --excludedocs --instLangs=en_US.utf8 # vagrant needs this to copy initial files via scp openssh-clients sudo wget nfs-utils virt-what rsync -fprintd-pam -intltool # unnecessary firmware -*firmware -microcode_ctl %post # Force to set SELinux to a permissive mode sed -i -e 's/\(^SELINUX=\).*$/\1permissive/' /etc/selinux/config # sudo echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant chmod 440 /etc/sudoers.d/vagrant # update the repos to point to the archive sed -i '/mirrorlist/d' /etc/yum.repos.d/*.repo sed -i -e 's/#baseurl/baseurl/g' /etc/yum.repos.d/*.repo sed -i -e 's/mirror.centos.org\/centos\/\$releasever/vault.centos.org\/6.10/g' /etc/yum.repos.d/*.repo # Enable hyper-v daemons only if using hyper-v virtualization if [ $(virt-what) == "hyperv" ]; then ifup eth0 yum -y install hyperv-daemons chkconfig hypervvssd on chkconfig hypervkvpd on fi