[libvirt-users] Updating Multiple VM Guests?

Dale Amon amon at vnl.com
Wed Nov 10 18:38:56 UTC 2010

On Wed, Nov 10, 2010 at 10:20:21AM -0800, Kenneth Stailey wrote:
> The "sed, etc." is a mistake since XML does not have guaranteed format.  

Depends on the complexity. If you are just changing the size of
the memory, you could probably do it with rpl; if you are just
inserting fixed blocks of text, I'm sure you could manage it
with sed.

If it gets arbitrarily complex, then you can do arbitrarily
complex things in emacs. The question then becomes whether
it is worth the time. If the job were big enough (ie thousands
of VM's) perhaps yes. If only a dozen or so, then emacs *.xml
and manually fixing each is probably the most efficient, albiet
boring, thing to do.

Oh, and don't forget, emacs has an xml mode. So does vi.

More information about the libvirt-users mailing list