[Libvir] update after changing XML

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. -Max This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.

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 -=|

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.
Did you do 'virsh define file.xml' to actually update libvirt's idea about what the domain XML is? Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
participants (3)
-
Daniel P. Berrange
-
Maxwell Bottiger
-
Richard W.M. Jones