public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* VM config file
@ 2009-07-01 14:15 Zhang Qian
  2009-07-01 16:22 ` Charles Duffy
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Qian @ 2009-07-01 14:15 UTC (permalink / raw)
  To: kvm

Hi,

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?

Thanks in advance!



Regards,
Qian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: VM config file
  2009-07-01 14:15 VM config file Zhang Qian
@ 2009-07-01 16:22 ` Charles Duffy
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Duffy @ 2009-07-01 16:22 UTC (permalink / raw)
  To: kvm; +Cc: zhq527725

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-01 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 14:15 VM config file Zhang Qian
2009-07-01 16:22 ` Charles Duffy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox