# MSVSphere 9 Vagrant boxes kickstart file # TODO: change url to the kickstart one when we have it url --url https://rsync.inferitos.ru/msvsphere/9.2/BaseOS/x86_64/os/ repo --name=BaseOS --baseurl=https://rsync.inferitos.ru/msvsphere/9.2/BaseOS/x86_64/os/ repo --name=AppStream --baseurl=https://rsync.inferitos.ru/msvsphere/9.2/AppStream/x86_64/os/ text skipx eula --agreed firstboot --disabled lang C.UTF-8 keyboard us timezone UTC --utc network --bootproto=dhcp firewall --disabled services --enabled=sshd selinux --enforcing bootloader --location=mbr zerombr clearpart --all --initlabel autopart --type=plain --nohome --noboot --noswap rootpw vagrant user --name=vagrant --plaintext --password vagrant reboot --eject %packages --inst-langs=en @core bzip2 dracut-config-generic tar usermode -biosdevname -dnf-plugin-spacewalk -dracut-config-rescue -iprutils -iwl*-firmware -langpacks-* -mdadm -open-vm-tools -plymouth -rhn* sphere-release-identity-server sphere-release-server %end # disable kdump service %addon com_redhat_kdump --disable %end %post # allow passwordless sudo for the vagrant user echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant # see Vagrant documentation (https://docs.vagrantup.com/v2/boxes/base.html) # for details about the requiretty. sed -i "s/^.*requiretty/# Defaults requiretty/" /etc/sudoers yum clean all # permit root login via SSH with password authentication echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/01-permitrootlogin.conf %end