Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
CentOS 6.3 install on KVM from kickstart
# Kickstart file automatically generated by anaconda.
rootpw --iscrypted [HASH PASSWORD]
keyboard us
lang en_US.UTF-8
selinux --disabled
timezone --utc Asia/Tokyo
network --device eth0 --bootproto dhcp
url --url=
bootloader --location=mbr --driveorder=vda
clearpart --all
part /boot --fstype ext3 --size=100 --ondisk=vda
part swap --size=2048
part / --fstype ext4 --size=1 --grow
%packages --nobase
yum -y update
echo "ttyS0" >> /etc/securetty
virt-install --connect qemu:///system \
--name [VM NAME] \
--vcpus 1 \
--ram=512 \
--hvm \
--location \
--os-type=Linux \
--os-variant=virtio26 \
--disk=/var/lib/libvirt/images/[DISKNAME].img \
--network bridge=br0 \
--extra-args='ks=http://[HOSTNAME]/centos6.ks console=tty0 console=ttyS0,115200n8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment