virt-install 调用kickstart 问题

[CentOS] virt-install and kickstart

Johnny Tan jtan at limewire.com 
Thu Jun 7 16:46:13 UTC 2007
  • Previous message: [CentOS] virt-install and kickstart
  • Next message: [CentOS] CentOS Based Linux Firewall Document
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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=http://192.168.1.98/centos45.cfg 
> ip=192.168.1.97 netmask=255.255.255.0 dns=192.168.1.1 gateway=192.168.1.1"

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 
"ks=nfs:myserver:/srv/kickstart/ks64vm02.cfg"
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 
itself.
johnn

你可能感兴趣的:(职场,休闲,kickstart,virt-install)