[libvirt-users] location of network xml files

Hello, On Ubuntu 9.04 (libvirt 0.6.1-0ubuntu5.1) I have 2 different network files: root@sauron:~# ls -l `locate default.xml` lrwxrwxrwx 1 root root 14 2010-02-13 12:34 /etc/libvirt/qemu/networks/autostart/default.xml -> ../default.xml -rw-r--r-- 1 root root 373 2010-03-01 00:02 /etc/libvirt/qemu/networks/default.xml -rw------- 1 root root 319 2010-03-01 00:04 /var/lib/libvirt/network/default.xml Modifications I do on the /etc file are ignored (I'd like to modify the dhcp range and set fixed ips to VM mac addresses). I don't understand why this file is there, as it seems ignored by everything, and why the autostart symlink points to it instead of the /var/lib/libvirt one. Is it reasonable to symlink (or hardlink if possible) one file to the other? Or to remove the /etc file and point the autostart to the /var file? Also, does the autostart do something? because it's pointing to the ignored file. thanks, carlos. -- Si no puedes deslumbrar con tu sabiduría, desconcierta con tus gilipolleces

Hello again, 2010/3/1 carlos campderrós <gilipollas.desconcertante@gmail.com>
Is it reasonable to symlink (or hardlink if possible) one file to the other? Or to remove the /etc file and point the autostart to the /var file? Also, does the autostart do something? because it's pointing to the ignored file.
Now I see that the contents of both files are different, so I suppose that linking one to another wouldn't work. So, in short, what's the purpose of /etc/libvirt/qemu/networks/default.xml? thanks again, carlos. -- Si no puedes deslumbrar con tu sabiduría, desconcierta con tus gilipolleces

On 02/28/2010 06:50 PM, carlos campderrós wrote:
Hello again,
2010/3/1 carlos campderrós <gilipollas.desconcertante@gmail.com <mailto:gilipollas.desconcertante@gmail.com>>
Is it reasonable to symlink (or hardlink if possible) one file to the other? Or to remove the /etc file and point the autostart to the /var file? Also, does the autostart do something? because it's pointing to the ignored file.
Now I see that the contents of both files are different, so I suppose that linking one to another wouldn't work. So, in short, what's the purpose of /etc/libvirt/qemu/networks/default.xml?
You aren't supposed to edit the XML files in /etc/libvirt/qemu directly, you should use virsh for that: http://wiki.libvirt.org/page/FAQ#Where_are_VM_config_files_stored.3F_How_do_... Basically, the location of files under /etc/libvirt/qemu are an implementation detail and its really not important what their purpose is: you should always use virsh. Also, making changes to the XML while the network is running won't take immediate effect, you will need to restart it. This has more info with respect to VMs, but it applies to networks as well: http://wiki.libvirt.org/page/FAQ#If_I_change_the_XML_of_running_machine.2C_d... - Cole

Hi Cole, 2010/3/1 Cole Robinson <crobinso@redhat.com>
You aren't supposed to edit the XML files in /etc/libvirt/qemu directly, you should use virsh for that:
http://wiki.libvirt.org/page/FAQ#Where_are_VM_config_files_stored.3F_How_do_...
Thank you, didn't see that wiki FAQ, but only http://libvirt.org/FAQ.html. carlos. -- Si no puedes deslumbrar con tu sabiduría, desconcierta con tus gilipolleces

On 03/01/2010 03:47 AM, carlos campderrós wrote:
Hi Cole,
2010/3/1 Cole Robinson <crobinso@redhat.com <mailto:crobinso@redhat.com>>
You aren't supposed to edit the XML files in /etc/libvirt/qemu directly, you should use virsh for that:
http://wiki.libvirt.org/page/FAQ#Where_are_VM_config_files_stored.3F_How_do_...
Thank you, didn't see that wiki FAQ, but only http://libvirt.org/FAQ.html.
No worries, it's only a week old. We will probably be linking to it from the homepage soon. - Cole
participants (2)
-
carlos campderrós
-
Cole Robinson