Jungnam Lee<jungnam.lee@kaist.ac.kr>
2013-Aug-07 07:38 UTC
[libvirt-users] direct local access to Xen without libvirtd
Hi all. I'm just new to libvirt. Looking page here http://libvirt.org/drvxen.html , there are examples of connection URIs to Xen. xen:/// (local access, direct) xen+unix:/// (local access, via daemon) xen://example.com/ (remote access, TLS/x509) xen+tcp://example.com/ (remote access, SASl/Kerberos) xen+ssh://root@example.com/ (remote access, SSH tunnelled) I thought the first example 'xen:///' would not need libvirtd, because the second line said 'via daemon'. But my C code using URI above prompts 'Failed to connect socket' error. So it seems that running libvirtd is mandatory. Is this right? Thanks for your reply in advance. Regards, Jungnam Lee
Eric Blake
2013-Aug-07 12:23 UTC
Re: [libvirt-users] direct local access to Xen without libvirtd
On 08/07/2013 01:38 AM, Jungnam Lee wrote:> Hi all. I'm just new to libvirt. > > Looking page here http://libvirt.org/drvxen.html , there are examples of connection URIs to Xen. > > xen:/// (local access, direct) > xen+unix:/// (local access, via daemon) > xen://example.com/ (remote access, TLS/x509) > xen+tcp://example.com/ (remote access, SASl/Kerberos) > xen+ssh://root@example.com/ (remote access, SSH tunnelled) > > I thought the first example 'xen:///' would not need libvirtd, because the second line said 'via daemon'.At one point, the code was able to do limited interaction with xen without needing libvirtd, if you had enough privileges as a user; but it turns out that there is enough stateful interaction for xen:/// to be useful that we have required libvirtd for ALL xen interaction as of commit e65812d4 (version 0.8.6, several years ago). I guess that means we need to fix that web page example.> > But my C code using URI above prompts 'Failed to connect socket' error. > > So it seems that running libvirtd is mandatory. Is this right?Yes. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Reasonably Related Threads
- How to use xl (in place of xm) with libvirt 1.0.2 and Xen 4.2.1 in Ubuntu 13.04?
- vnc ip binding problem
- Is tunnelled "managed direct" live migration actually possible?
- About IBM PowerVM hypervisor support
- cannot perform tunnelled migration without using peer2peer flag