[virt-tools-list] virt-install not rebooting guest after install

Daniel P. Berrange berrange at redhat.com
Mon Nov 28 21:36:57 UTC 2011


On Mon, Nov 28, 2011 at 01:29:32PM -0800, Micheal Waltz wrote:
> On 11/28/2011 12:09 PM, Daniel P. Berrange wrote:
> >To
> >get virt-install to hang around, either remove that option, or
> >add '--wait'
> 
> Daniel, thank you for the information and adding the --wait does
> allow the guest to restart itself properly and complete the install.
> 
> Ideally though I want a script that starts automated installs of
> multiple guests so they all install simultaneously. Using the --wait
> it wouldn't start the next install until the first completes which
> adds up when creating 50+ guests.
> 
> Is virt-install maybe not the right tool to use here for automated
> mass guest installs? The script we're using is specifically to test
> our PXE/kickstart install process for different versions of RHEL and
> nothing else. We tear everything down and build again when something
> changes to our image process.

If you're going to be writing a script to automate all this, then
instead of using --wait, you could just have your wrapper script
do the final restart. All you would have to do is watch to see
when the guest has shutdown, and then virsh start it again. Thus
you could parallelize things fairly easily.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list