[Libvir] update after changing XML

Daniel P. Berrange berrange at redhat.com
Tue Jan 29 16:26:05 UTC 2008


On Tue, Jan 29, 2008 at 11:20:06AM -0500, Maxwell Bottiger wrote:
> Hi,
> 
>         I changed some of the XML for a qemu virtual machine.  The original
> file was generated by virt-manager, but I wanted to use bridged
> networking as described in the documentation on the libvirt website.  Is
> there something I need to for my xml changes to show up in the virtual
> machine?  Right now my VM will not start because it's looking for it's
> old network configuration.

Rather than editing XML files directly, I recommend using 'virsh define'
to load a new copy into libvirt.  This ensures its visible immediately.
If you do edit it directly, then you need to send SIGHUP to the libvirt
daemon - 'service libvirtd reload' will do this

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the libvir-list mailing list