Zhang Qian wrote:
I'd like to know if there is a configuration file for each KVM virtual machine? I can define a domain by "virsh define" command, but where the configuraiton parameters are persisted for the VM?
virsh is not a part of kvm, but rather libvirt; you should ask for support for it on the libvirt mailing list.
That said -- you can list defined VMs through "virsh list --all", edit them through "virsh edit", and dump their XML via "virsh dumpxml". The config files are kept in /etc/libvirt/qemu, but you SHOULD NOT edit them directly -- just like /etc/sudoers should be edited only through visudo, /etc/libvirt/qemu/* should be edited only through libvirt methods (which can be accessed through the virsh command); this makes sure libvirtd is always aware of any changes, and prevents invalid configuration from ever being written to disk.
-- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html