[virt-tools-list] Scripting virt-install to automate image building

Richard W.M. Jones rjones at redhat.com
Sun Jan 19 17:59:46 UTC 2014


On Sat, Jan 18, 2014 at 11:59:58PM -0800, Anthony Shortland wrote:
> We're running version 0.600.0 of virt-install with version 0.10.2 of libvert and version 0.12.1.2 of qemu-kvm on RHEL 6.3.
> 
> We're trying to script an automated image build process and want virt-install to exit when Kickstart completes and halts the guest virtual machine (using the "shutdown" option).
> 
> The thing is that virt-install hangs indefinitely staying connected to the text console (on ttyS0 with --graphics=none) and only exits on timeout if the --wait option is specified.
> 
> Is there any way virt-install can simply wait for the Kickstart to complete and halt the guest and then exit gracefully? 
> 
> We intend to package the built image for use in our operational infrastructure.

Why not look at Oz and/or virt-builder?  They have slightly different
angles on this, but both are expressly designed to create guests from
scripts.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)




More information about the virt-tools-list mailing list