install
url --url=http://www.mirrorservice.org/sites/mirror.centos.org/6.5/os/x86_64/
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
firewall --enabled --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone UTC
bootloader --location=mbr

text
skipx
zerombr

clearpart --all --initlabel
autopart

auth  --useshadow  --enablemd5
firstboot --disabled
reboot

%packages --nobase
@core
%end

%post
/usr/bin/yum -y install sudo
/usr/sbin/groupadd veewee
/usr/sbin/useradd veewee -g veewee -G wheel
echo "veewee"|passwd --stdin veewee
echo "veewee        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers.d/veewee
chmod 0440 /etc/sudoers.d/veewee
%end


install
url --url=http://www.mirrorservice.org/sites/mirror.centos.org/6.5/os/x86_64/
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
firewall --enabled --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone UTC
bootloader --location=mbr

text
skipx
zerombr

clearpart --all --initlabel
autopart

auth  --useshadow  --enablemd5
firstboot --disabled
reboot

%packages --nobase
@core
openssh-clients
openssh-server
%end

%post
/usr/bin/yum -y install sudo
/usr/sbin/groupadd veewee
/usr/sbin/useradd veewee -g veewee -G wheel
echo "veewee"|passwd --stdin veewee
echo "veewee        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers.d/veewee
chmod 0440 /etc/sudoers.d/veewee
%end


Fix a bug when build kvm box. The error message is like: ========================== Transferring /tmp/.veewee_version20140523-4519-1mh5ulu to .veewee_version Error transfering file /tmp/.veewee_version20140523-4519-1mh5ulu failed, possible not enough permissions to write? SCP did not finish successfully (127): SCP did not finish successfully (127): ========================== Turns out the guest machine doesn't have `scp` installed.
Fix a bug when build kvm box.
The error message is like:
==========================
		Transferring /tmp/.veewee_version20140523-4519-1mh5ulu to .veewee_version
		Error transfering file /tmp/.veewee_version20140523-4519-1mh5ulu failed, possible not enough permissions to write? SCP did not finish successfully (127):
		SCP did not finish successfully (127):
==========================
Turns out the guest machine doesn't have `scp` installed.
