xen:// (was: Re: [Libvir] remote access ?)

Richard W.M. Jones rjones at redhat.com
Mon Oct 15 15:35:47 UTC 2007


Daniel Veillard wrote:
> On Mon, Oct 15, 2007 at 09:26:26AM -0400, Mark Johnson wrote:
>> On 10/15/07, Richard W.M. Jones <rjones at redhat.com> wrote:
>>> Mark Johnson wrote:
>>>> [root at fedora ~]# virsh connect xen+tcp://localhost
>>>> libvir: Remote error : Connection refused
>>>> error: Failed to connect to the hypervisor
>>> IME this usually happens because I forget to open the right port on the
>>> firewall (both incoming and outgoing ...)
>> Thanks Rich.  My problem was I typed the line wrong.  It needed
>> a trailing /
>>
>>  e.g.
>>
>>> [root at fedora ~]# virsh connect xen+tcp://localhost
>> Should have been...
>>   [root at fedora ~]# virsh connect xen+tcp://localhost/
> 
>   Hum, strange, that's still a valid absolute URI except with an empty
> path I find strange we have a problem with this, as we don't use the 
> path for the access in practice ...

The attached patch is "a bit of a hack" (but so is the current code).

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-xen-uri.patch
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071015/17c44474/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071015/17c44474/attachment-0003.bin>


More information about the libvir-list mailing list