FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 06-26-2008, 08:57 PM
Cole Robinson
 
Default Added a --replace option to virt-image which allows it to replace an existing machine if it is current running or defined

Bryan Kearney wrote:
>
> David Lutterkort wrote:
>> On Thu, 2008-06-26 at 12:47 -0400, Bryan M. Kearney @redhat.com wrote:
>>> # HG changeset patch
>>> # User "Bryan M. Kearney <bkearney@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.
>>
>
> For me, if I have a shutoff machine then 'virsh list' does not return
> anything, but virt-manager shows me the shutoff machine. In addition,
> virt-image will fail on an install because of the shutoff machine.
>

You need to use 'virsh list --all' to see inactive vms. Yeah, it annoys
lots of people

- Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-27-2008, 11:40 AM
Bryan Kearney
 
Default Added a --replace option to virt-image which allows it to replace an existing machine if it is current running or defined

Cole Robinson wrote:

Bryan Kearney wrote:

David Lutterkort wrote:

On Thu, 2008-06-26 at 12:47 -0400, Bryan M. Kearney @redhat.com wrote:

# HG changeset patch
# User "Bryan M. Kearney <bkearney@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.

For me, if I have a shutoff machine then 'virsh list' does not return
anything, but virt-manager shows me the shutoff machine. In addition,
virt-image will fail on an install because of the shutoff machine.




You need to use 'virsh list --all' to see inactive vms. Yeah, it annoys
lots of people

- Cole



I still want the tool to do it for me

-- bk

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 01:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org