On 11/06/2012 01:29 AM, Joe Linoff wrote:
Hi Everybody:
I am trying to get virt-install to work with a kickstart file that is on the local file system.
I tried using the --initrd-inject="/tmp" --extra-args="ks=file:/myks.cfg" but I got this error message:
ERROR --extra-args only work if specified with --location.
Here is the basic command:
virt-install \ --accelerate \ --cdrom /tools/iso/CentOS-6.3-x86_64-bin-DVD1.iso \ --disk device=disk,path="/var/lib/libvirt/images/myguest.img" \ --graphics vnc \ --name myguest \ --os-type linux \ --os-variant rhel6 \ --ram 2048 \ --vpcus 1,maxvcpus=4 \ --initrd-inject "/tmp" \ --extra-args "ks=file:/myks.cfg"
Why do I need the location? I thought that was only used when installatiing from a distribution tree. I am using a DVD ISO image. If I have to use it, how would I specify it?
--extra-args is just kernel arguments, and when booting off an ISO libvirt/qemu has no way to pass the arguments to the kernel. You would have to actually edit files on the ISO media. - Cole