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

Anthony Shortland anthony.shortland at me.com
Sun Jan 19 20:09:49 UTC 2014


Hi Rich,

We're after building cloud images from fresh installs driven by ISOs and Kickstart files. We're also trying to stay within he tooling included in RHEL 6.

Is there any other choice than virt-install given these contraints?

Anthony.

> On Jan 19, 2014, at 9:59 AM, "Richard W.M. Jones" <rjones at redhat.com> wrote:
> 
>> 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