I am trying to use packer to build a virtual-box image using kickstart however the ananconda install fails due to lack of installation source and no software selection my kickstart script is shown below.
install
text
url --url=http://ift.tt/1BKDA6K
logging --level=debug
lang en_GB.UTF-8
keyboard gb
timezone --utc Europe/London
firstboot --disabled
reboot
firewall --disabled
# default for install bootloader
bootloader --location=mbr
# Disk partition
clearpart --all --initlabel
# Disk partition options
autopart
# formats drives with unknown part, eg new hardware
zerombr
authconfig --enableshadow --passalgo=sha512
selinux --permissive
# Initial User configuration
user --name=vagrant --password=vagrant --groups=vagrant,wheel
rootpw vagrant
network --bootproto=dhcp --device=eth0
skipx
%packages --ignoremissing --excludedocs
@Base
@Core
@Development Tools
sudo
wget
curl
gettext-devel
openssl-devel
perl-CPAN
perl-devel
zlib-devel
%end
%post
yum update -y
wget -O/etc/pki/tls/certs/ca-bundle.crt http://ift.tt/1c1wg83
# sudo
yum install -y sudo
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
yum clean all
%end
The install is for a Centos7 minimal image. Any help would be appreciated!
Aucun commentaire:
Enregistrer un commentaire