Im trying to edit xml file of running instances in openstack but couldn't able to find out where it is placed .
When i tried with #virsh list -all
Which is listing some vms which is not created via openstack
Please someone help me out to take xml of running instances in openstack.
There are several different libvirt instances, and
virshwill auto-detect a connection. If you runvirshas root it'll connect toqemu:///systemwhile if you run it as non-root it'll connect toqemu:///session. OpenStack / Nova will be usingqemu:///system. If you want to make this explicit tellvirshwhich to usevirsh -c qemu:///system list --allshould show you the VMs.A further complication is that some deployments of OpenStack will put libvirt and QEMU inside a container, so if you run
virshin your host, it won't be able to access the libvirt/QEMU inside the container. You would need to find which container its using, enter the container namespaces, and then runvirshinside the container.