Andrei Perietanu
2015-Nov-02 10:56 UTC
[libvirt-users] problem connecting to libvirtd remotely; compiled from sources
I am trying to add libvirt to a linux machine running a custom built linux- there is no packet manager, everything is compiled using buildroot. On this VM server, I am running libvirt-1.2.2 and the linux kernel is 3.18.21 Libvirtd starts and runs in the background. I can add/edit VMs using Virt-install. If I try to connect to the local qemu, everything works: virsh -c qemu:///system If I ssh in from the remote machine, as root, and run virsh, everything seems to work But if I try to connect using virt-manager, or *virsh -c qemu+ssh://root@<server_ip>/system* I get an error: error: failed to connect to the hypervisor error: Cannot recv data: ssh: connect to host 10.10.200.85 port 22: Connection refused: Connection reset by peer Any ideas? Thanks, Andrei -- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you receive this in error please contact the sender and delete the material from any computer immediately. It is the policy of Klas Limited to disavow the sending of offensive material and should you consider that the material contained in the message is offensive you should contact the sender immediately and also your I.T. Manager. Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, Washington, DC 20007. Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish Limited Liability Company, with its registered office at Fourth Floor, One Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20151102/485fdf09/attachment.htm>
Michal Privoznik
2015-Nov-02 11:43 UTC
[libvirt-users] problem connecting to libvirtd remotely; compiled from sources
On 02.11.2015 11:56, Andrei Perietanu wrote:> I am trying to add libvirt to a linux machine running a custom built linux- > there is no packet manager, everything is compiled using buildroot. > > On this VM server, I am running libvirt-1.2.2 and the linux kernel is > 3.18.21 > > Libvirtd starts and runs in the background. I can add/edit VMs using > Virt-install. > If I try to connect to the local qemu, everything works: virsh -c > qemu:///system > If I ssh in from the remote machine, as root, and run virsh, everything > seems to work > > But if I try to connect using virt-manager, or *virsh -c > qemu+ssh://root@<server_ip>/system* I get an error: > > error: failed to connect to the hypervisor > error: Cannot recv data: ssh: connect to host 10.10.200.85 port 22: > Connection refused: Connection reset by peer >Does the regular ssh work? When it comes to ssh transport, libvirt uses netcat to tunnel its RPC packets through, so maybe you are missing the nc binary on one side. You may want to switch to libssh which drops the dependency. Michal