[libvirt] libvirt and qemu

when i do virsh connect qemu:///system i can connect but virsh list dosent show anything my qemu vms are not created with virt-manager

On 07/04/2012 06:43 AM, mattias wrote:
when i do virsh connect qemu:///system i can connect but virsh list dosent show anything my qemu vms are not created with virt-manager
How were your qemu vms created? Was it by direct invocation of 'qemu'? If so, you _might_ be able to teach libvirt about those vms by using 'virsh qemu-attach $pid', but it depends on the vm having been created with a proper monitor connection. In general, libvirt is better suited to managing vms created via libvirt interfaces (virt-manager is only one of many programs that uses libvirt interfaces for creating a vm) than it is for managing random vms created via direct command-line invocation of qemu. The 'virsh domxml-from-native' command might help you in creating a libvirt XML representation that matches what you are currently passing directly to qemu, although that area of code is not the best-maintained at the moment. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On Wed, Jul 04, 2012 at 02:43:20PM +0200, mattias wrote:
when i do virsh connect qemu:///system i can connect but virsh list dosent show anything
Are your VMs running? virsh list will only show running VMs, so show non-running VMs use: virsh list --all Dave
my qemu vms are not created with virt-manager
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (3)
-
Dave Allan
-
Eric Blake
-
mattias