Hi everybody, I'ld to use virsh over ssh in order to connect to my xen hypervisor from one of my DomU. I tried: virsh -c xen+ssh://root at 192.168.0.67:22 list --all And it correctly listed the started virtual computers. And when I tried virsh connect xen+ssh://root at 192.168.0.67:22 And I got. error: no connection driver available for xen:/// error: failed to connect to the hypervisor Does that mean I wrongly configured my computers or that libvirt does not support such connection from a DomU. -- Armand Leclercq EPITA 2013 06 71 57 90 73 armand.leclercq at gmail.com. /Computer Science is embarrassed by the computer./ _Alan Perlis_ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120104/d3c2db40/attachment.htm>
2012/1/4 Armand Leclercq <armand.leclercq at gmail.com>:> Hi everybody, > > I'ld to use virsh over ssh in order to connect to my xen hypervisor from one > of my DomU. > > I tried: > virsh -c xen+ssh://root at 192.168.0.67:22 list --all > > And it correctly listed the started virtual computers. > > And when I tried > virsh connect xen+ssh://root at 192.168.0.67:22 > > And I got. > error: no connection driver available for xen:/// > error: failed to connect to the hypervisor > > Does that mean I wrongly configured my computers or that libvirt does not > support such connection from a DomU.Your configuration is fine, but you are probably using a libvirt version older than 0.9.2. There is a difference between the -c option and the connect command in virsh. Without the -c option libvirt tries to auto-detect the connection URI and fails and then never tries the connection URI you gave to the connect command. So either use the -c option instead of the connect command, or update your libvirt version to 0.9.2 or newer to make the connect command working as expected in your case. -- Matthias Bolte http://photron.blogspot.com
On Wed, Jan 04, 2012 at 05:03:00PM +0100, Armand Leclercq wrote:> Hi everybody, > > I'ld to use virsh over ssh in order to connect to my xen hypervisor > from one of my DomU. > > I tried: > virsh -c xen+ssh://root at 192.168.0.67:22 list --all > > And it correctly listed the started virtual computers. > > And when I tried > virsh connect xen+ssh://root at 192.168.0.67:22The 'connect' command is only intended to be used from an interactive libvirt session. You want to use '-c' or '--connect' in non-interactive mode like you have here, and *not* the 'connect' command. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|