search for: virconnectopen

Displaying 20 results from an estimated 70 matches for "virconnectopen".

2013 Oct 14
2
Re: event handler
...nt loop: %s\n", err && >> err->message ? err->message : "Unknown error"); >> } >> } >> } >> >> >> >> ... >> >> virSetErrorFunc(NULL, libvirt_error_handler); >> libvirt_connection = virConnectOpen("qemu:///system"); > > Move this line ^^^ ... > >> if (virEventRegisterDefaultImpl() < 0) >> { >> virErrorPtr err = virGetLastError(); >> fprintf(stderr, "Failed to register event implementation: >> %s\n", >...
2013 Oct 14
2
Re: event handler
..."Unknown error"); >>>> } >>>> } >>>> } >>>> >>>> >>>> >>>> ... >>>> >>>> virSetErrorFunc(NULL, libvirt_error_handler); >>>> libvirt_connection = virConnectOpen("qemu:///system"); >>> >>> Move this line ^^^ ... >>> >>>> if (virEventRegisterDefaultImpl() < 0) >>>> { >>>> virErrorPtr err = virGetLastError(); >>>> fprintf(stderr, "Failed to r...
2011 Feb 12
4
if xend block
Hi, All I use python, I want to know If xend is blocked, then I call virConnectOpen will it return or block? Thanks, Allan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2010 Jul 01
0
non-root user "virConnectOpen() faile" in libvirt-0.3
...ion. >>> import libvirt >>> libvirt.open("xen:///") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/libvirt.py", line 123, in open if ret is None:raise libvirtError('virConnectOpen() failed') libvirt.libvirtError: virConnectOpen() failed >>> *I encountered the error "virConnectOpen() failed". if I changed the user into root, it worked well. * *But I hava to use the non-root account "nimbus". I looked into the problem on the net, in order * *t...
2006 Nov 10
0
Re: [Libvir] First virConnectOpen() failed
Thanks, Daniel, I can see virsh nodeinfo (custom) passes now, but I still get the same error: when running under my user account: PASS: virshtest confdata/fc4.conf OK PASS: test_conf.sh First virConnectOpen() failed FAIL: reconnect when running as root: PASS: virshtest confdata/fc4.conf OK PASS: test_conf.sh First lookup for domain 0 failed FAIL: reconnect I suspect there is something wrong with my Xen installation. What to you think? Thanks, Glen Daniel Veil...
2010 Sep 16
1
virConnectOpen question.
Hi, I am using virConnectOpen(const char *uri) to connect to the local hypervisor. When uri is set to "lxc:///", an error gets logged in /var/log/messages about failed connection. But I do not see any error for "xen:///". The machine does not have these drivers installed, and I am using libvirt 0.6.3. My que...
2013 Oct 14
2
event handler
...ntRunDefaultImpl() < 0) { virErrorPtr err = virGetLastError(); fprintf(stderr, "Failed to run event loop: %s\n", err && err->message ? err->message : "Unknown error"); } } } ... virSetErrorFunc(NULL, libvirt_error_handler); libvirt_connection = virConnectOpen("qemu:///system"); if (virEventRegisterDefaultImpl() < 0) { virErrorPtr err = virGetLastError(); fprintf(stderr, "Failed to register event implementation: %s\n", err && err->message ? err->message: "Unknown error"); return -1; } { int cal...
2008 May 12
5
virt-install fails on SXDE build 87
...File "/usr/bin/virt-install", line 657, in ? main() File "/usr/bin/virt-install", line 509, in main conn = libvirt.open(options.connect) File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 135, in open if ret is None:raise libvirtError(''virConnectOpen() failed'') libvirt.libvirtError: virConnectOpen() failed I have also tried using "--cdrom" instead of "--location" and "--ram" instead of "-r", I''ve also typed out the full pathname for $HOME and I''ve gotten the same error message....
2011 Aug 23
1
libvirt ruby binding with vmware
Hi, I've been trying to use the ruby libvirt binding with vmware esx on F15, however it doesnt seems to work, I get: Libvirt::ConnectionError: Call to virConnectOpen failed: Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory I've using the same uri with virsh and it works. it seems like somehow the no_verify is not passed, or we are back to old libvirt error messages :) any idea? thanks, Ohad -------------- next part...
2007 Oct 31
3
virt-install fails in b75a
...File "/usr/bin/virt-install", line 666, in ? main() File "/usr/bin/virt-install", line 518, in main conn = libvirt.open(options.connect) File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 123, in open if ret is None:raise libvirtError(''virConnectOpen() failed'') libvirt.libvirtError: virConnectOpen() failed # xm list ERROR Internal error: Could not obtain handle on privileged command interface (2 = No such file or directory) Error: Unable to connect to xend: No such file or directory. Is xend running? # svccfg -s xvm/xend setprop config...
2014 Jun 10
2
TCP connection works for only remote host
...host:16509': Connection refused Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/fluent/cvt/convirt-enterprise/tg2env/local/lib/python2.7/site-packages/libvirt.py", line 239, in open if ret is None:raise libvirtError('virConnectOpen() failed') libvirt.libvirtError: unable to connect to server at 'localhost:16509': Connection refused >>> Is there any other params to be set for local host connection..? please help
2009 Sep 23
1
virt-install error - failed to connect
Hi all, I installed Xen 3.4.0 on RH5.3 from the source, It is working fine (Dom0), but when i tried to create new guest (hvm) by the virt-install i got the next message: Wed, 23 Sep 2009 12:02:15 ERROR virConnectOpen() failed Traceback (most recent call last): File "/usr/sbin/virt-install", line 560, in ? main() File "/usr/sbin/virt-install", line 348, in main conn = cli.getConnection(options.connect) File "/usr/lib/python2.4/site-packages/virtinst/cli.py", line 92, i...
2013 Oct 14
0
Re: event handler
...>> err->message ? err->message : "Unknown error"); >>> } >>> } >>> } >>> >>> >>> >>> ... >>> >>> virSetErrorFunc(NULL, libvirt_error_handler); >>> libvirt_connection = virConnectOpen("qemu:///system"); >> >> Move this line ^^^ ... >> >>> if (virEventRegisterDefaultImpl() < 0) >>> { >>> virErrorPtr err = virGetLastError(); >>> fprintf(stderr, "Failed to register event implementation:...
2013 Oct 14
0
Re: event handler
...;>>> } >>>>> } >>>>> } >>>>> >>>>> >>>>> >>>>> ... >>>>> >>>>> virSetErrorFunc(NULL, libvirt_error_handler); >>>>> libvirt_connection = virConnectOpen("qemu:///system"); >>>> >>>> Move this line ^^^ ... >>>> >>>>> if (virEventRegisterDefaultImpl() < 0) >>>>> { >>>>> virErrorPtr err = virGetLastError(); >>>>> fprintf...
2014 Apr 01
3
set keep alive
Can anyone explain what is happening. After call virConnectOpen virEventRegisterDefaultImpl() call virConnectSetKeepAlive returns VirtError(1): internal error: the caller doesn't support keepalive protocol; perhaps it's missing event loop implementation, but the next call this sequence of commands returns success. Why virConnectSetKeepAlive not work...
2016 Jul 24
2
Lifecycle of a connection to libvirtd
Hey! I am trying to figure out how to reliably maintain a connection to libvirtd. From the documentation, I would expect something like that: - virConnectOpen() - virConnectRegisterCloseCallback() - virConnectSetKeepAlive() - Application logic And in the registered callback, I would: - virConnectUnregisterCloseCallback() - virConnectClose() - virConnectOpen() - virConnectRegisterCloseCallback() - virConnectSetKeepAlive() However, looking at th...
2019 Sep 15
0
[PATCH nbdkit 2/4] guestfs, libvirt: Rename ‘connect’ global to avoid -Wshadow warning.
...key, const char *value) { if (strcmp (key, "connect") == 0) { - connect = value; + libvirt_uri = value; } else if (strcmp (key, "domain") == 0) { domain = value; @@ -119,7 +119,7 @@ virt_open (int readonly) } /* Connect to libvirt. */ - h->conn = virConnectOpen (connect); + h->conn = virConnectOpen (libvirt_uri); if (!h->conn) { nbdkit_error ("virConnectOpen failed, see earlier error messages"); goto err1; -- 2.23.0
2008 Jul 15
1
Error while staring "xend"
Hello, i installed a Xen 3.3 on Fedora 7 successfully I booted system with xen 3.3. checked using the command uname -r but while starting xend i will get an error please help me out this... error is as: ImportError: /usr/lib/python/xen/lowlevel/xs.so thanks in advance _______________________________________________ Xen-users mailing list
2014 Jun 11
2
Status of Host machine.
Hi, Using libvirt how can we check the status of a remote/local host machine.. isAlive() method is giving true even if the internet connection is broken OR libvirt demon in the remote machine is being stopped. so isAlive() does not seems to be handy, Is there some other way to get the status of remote host..? Thanks -Sijo
2014 Jun 13
1
Re: Status of Host machine.
Hi Michal, virConnectOpen is for connecting to a host right..? I want to check the host status, whether the connection to the host is active or not.. for that purpose we have to use virConnectIsAlive() I'm using libvirt python bindings, here is the function defnintion. def isAlive(self): ""&quot...