[et-mgmt-tools] [PATCH] Added a --replace option to virt-image which allows it to replace an existing machine if it is current running or defined
David Lutterkort
dlutter at redhat.com
Thu Jun 26 17:53:51 UTC 2008
On Thu, 2008-06-26 at 12:47 -0400, Bryan M. Kearney @redhat.com wrote:
> # HG changeset patch
> # User "Bryan M. Kearney <bkearney at redhat.com>"
> # Date 1214497967 14400
> # Node ID efba908eb79ad0bf2805c27f784de92578207f1b
> # Parent 63aca2dbb3154a65505b1ccef080a8887742cef5
> Added a --replace option to virt-image which allows it to replace an existing machine if it is current running or defined
Couldn't the same be achieved with a small shell script wrapper around
the virt-image invocation, something like
virsh list | grep -q $NAME && virsh destroy $NAME
virt-image $IMAGE_XML
It seems that this patch addresses a very specific use case (repeatedly
starting a VM based on the same image.xml)
Other than that it might be redundant though, the patch looks fine.
David
More information about the et-mgmt-tools
mailing list