何鑫
2012-Oct-30 00:56 UTC
[libvirt-users] error: Cannot open network interface control socket
Hi all? I try to use gdb to debug libvirt's source code, but when I tend to create a domain with xml, it shows "error: internal error Network 'default' is not active", so I use the net-related commands as below."virsh # net-start defaulterror: Failed to start network defaulterror: Cannot open network interface control socket: Operation not permitted" Then I check my URI, which is "qemu:///session", because adding "sudo virsh". I try to change URI to "qemu:///system" by clicking "virsh # connect qemu:///system". The following logs shown below:virsh # connect qemu:///systemerror: Failed to connect to the hypervisorerror: Failed to connect socket to '/usr/local/libvirt/var/run/libvirt/libvirt-sock': No such file or directory Could you please tell me the reason? Thanks a lot! Corey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121030/c1e732c2/attachment.htm>
Eric Blake
2012-Oct-30 18:25 UTC
[libvirt-users] error: Cannot open network interface control socket
On 10/29/2012 06:56 PM, ?? wrote:> Hi all? I try to use gdb to debug libvirt's source code, but when I tend to create a domain with xml, it shows "error: internal error Network 'default' is not active", so I use the net-related commands as below."virsh # net-start defaulterror: Failed to start network defaulterror: Cannot open network interface control socket: Operation not permitted" > Then I check my URI, which is "qemu:///session", because adding "sudo virsh". I try to change URI to "qemu:///system" by clicking "virsh # connect qemu:///system".Instead of trying to change connections after starting virsh, you can use 'virsh -c qemu:///system' to force the correct connection to begin with.> The following logs shown below:virsh # connect qemu:///systemerror: Failed to connect to the hypervisorerror: Failed to connect socket to '/usr/local/libvirt/var/run/libvirt/libvirt-sock': No such file or directoryThis sounds like your version of virsh is self-built and installed into /usr/local, but you don't have a self-built counterpart libvirtd also in /usr/local running at the moment.> > Could you please tell me the reason? > Thanks a lot! > Corey > > > > > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >-- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 617 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121030/dfde0fa6/attachment.sig>
Apparently Analagous Threads
- error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable
- Failed to connect socket to '/usr/local/libvirt/var/run/libvirt/libvirt-sock':
- libvirtd may need to be started: Permission denied
- Failed to bind socket to '/var/run/libvirt/libvirt-sock': Permission denied
- virDomainMemoryPeek: bad behavior under workload