install cdrom lang en_US.UTF-8 keyboard us network --bootproto=dhcp --onboot=on --device=eth0 rootpw vagrant firewall --disabled selinux --permissive timezone UTC unsupported_hardware bootloader --location=mbr text skipx zerombr clearpart --all --initlabel autopart auth --enableshadow --passalgo=sha512 --kickstart firstboot --disabled reboot --eject user --name=vagrant --plaintext --password vagrant %packages --nobase --ignoremissing --excludedocs # vagrant needs this to copy initial files via scp openssh-clients sudo make perl selinux-policy-devel wget nfs-utils net-tools bzip2 -fprintd-pam -intltool # unnecessary firmware -*firmware -microcode_ctl %end %post # sudo echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant #Enable hyper-v daemons only if using hyper-v virtualization if [ $(virt-what) == "hyperv" ]; then yum -y install hyperv-daemons cifs-utils systemctl enable hypervvssd systemctl enable hypervkvpd fi %end