[virt-tools-list] Moving VM configs from qemu://session to qemu://system

Cole Robinson crobinso at redhat.com
Thu May 27 14:44:23 UTC 2010


On 05/27/2010 06:02 AM, Oliver Hookins wrote:
> Hi,
> 
> I stupidly created a number of VMs (which work) using my unprivileged account's
> qemu://session connection. Unfortunately due to the well known networking issues
> I need to move them to run from the qemu://system connection. The connection
> works for me (my user is already in the libvirtd group) but I am at a loss as to
> where the configs need to go.
> 
> I noticed when creating a new VM under the system connection, the XML config
> file is created under /etc/libvirt/qemu, however I can delete this file and
> restart everything and the VM is still there which leads me to believe that the
> configs are not primarily stored there or are cached somewhere.
> 
> Can someone point me in the right direction?
> 

XML files should not be moved or editted directly. Please see:

http://wiki.libvirt.org/page/FAQ#Where_are_VM_config_files_stored.3F_How_do_I_edit_a_VM.27s_XML_config.3F

You will want to dump the XML from the 'session' connection and define
it on the 'system' connection.

- Cole




More information about the virt-tools-list mailing list