[CentOS] virt-install and kickstart

Johnny Tan jtan at limewire.com
Thu Jun 7 16:46:13 UTC 2007

Costa, Jeff wrote:
> Has anyone successfully used a kickstart file in tandem with the "virt-install" command? I can get a generic install to begin if I omit the "-x" flag and the kickstart parameters? It seems that virt-install simply ignores my kickstart parameters.
> virt-install --location=http://www.gtlib.gatech.edu/pub/centos/4.5/os/i386/ --noautoconsole --file=/dev/VolGroup00/lv_centos45 --name=CENTOS_45 --ram=256 --nographics -d -p -x "ks= 
> ip= netmask= dns= gateway="

Yes, I've gotten it to work successfully. Mine looks like this:

/usr/sbin/virt-install -n vm02 -r 256 -l 
http://myserver/centos/5/os/x86_64 --nographics -f 
/srv/xen/images/vm02 -x 

Do you need to specify the IP in the ks parameters? I think 
it should be able to just use whatever the xen host uses. 
And then you can manually set an IP within the ks.cfg file 


More information about the CentOS mailing list