Charles
2011-Aug-01 06:48 UTC
[libvirt-users] centos6.0 unable to install guests w/ kickstart via virt-install
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.
JDF. Franklin
2011-Aug-02 20:50 UTC
[libvirt-users] centos6.0 unable to install guests w/ kickstart via virt-install
Looks like you're missing some backslashes toward the bottom, so virt-install wouldn't see anything past "os-variant". Here's mine (adding the ttyS0 allows looking at it on the cli with "virsh console" as well): virt-install \ --name=myhost \ --connect qemu:///system \ --disk path=/data/virt/guest$$,size=20,bus=virtio \ --vcpus=2 --ram=1024 \ --graphics vnc,keymap=en-us \ --autostart \ --location=http://example.org/ks/el6/x86_64/ \ -x "console=ttyS0,115200 ks=http://example.org/ks/myhost.cfg" \ --network bridge=br0 \ --os-type=linux \ --os-variant=virtio26