How does one use virt-install and kickstart ? I've seen others have success but
I've had no joy thus far.
BTW, my interactive virt-installs for centos6 guests work just fine AND I can do
unattended kickstarts for vms by booting from centos6 install dvd and typing the kickstart
commands from the boot: prompt. However, kickstart commands in --extra-args when used w/
virt-install just don't seem to work for me.
It looks like the kickstart file is just getting ignored ..
virt-install -n d2 \
-r 1024 \
--vcpus=2 \
-l
http://mirror.cogentco.com/pub/linux/centos/6/os/x86_64/ \
--accelerate -v \
--disk path=/data/vm/d2.img,size=10 \
--os-type=linux \
--os-variant=rhel6
--network=bridge:br0
-x "ks=http://10.1.10.2/id400ks.cfg ip=10.1.10.2 netmask=255.255.255.0
gateway=10.1.10.1 dns=8.8.8.8"
The above will boot from the mirror and then launch into the interactive graphical
installer as though the kickstart file isn't even there.
kickstart file is
here http://pastebin.com/ZChtv2C5
I also tried 'virsh edit domain' and set cmdline to
<cmdline>ks=http://10.1.10.2/id400ks.cfg</cmdline>
and that didn't work. vm would'nt start.
details ...
uname -a Linux myhost 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64
x86_64 x86_64 GNU/Linux
[root vm]# rpm -qa | grep libvir
libvirt-0.8.1-27.el6_0.6.x86_64
libvirt-client-0.8.1-27.el6_0.6.x86_64
libvirt-python-0.8.1-27.el6_0.6.x86_64
[root vm]# rpm -qa | grep kvm
qemu-kvm-tools-0.12.1.2-2.113.el6_0.8.x86_64
qemu-kvm-0.12.1.2-2.113.el6_0.8.x86_64
any hlp apprec.
C.