[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] default URI in probe



I specified default URI in probe().

To use libvirt with OpenVZ:
# ./configure --with-openvz
# make
# ./src/virsh list
 Id Name                 State
----------------------------------
 33 33                   running
105 105                  running
108 108                  running


Index: src/openvz_driver.c
===================================================================
RCS file: /data/cvs/libvirt/src/openvz_driver.c,v
retrieving revision 1.27
diff -u -r1.27 openvz_driver.c
--- src/openvz_driver.c	10 Jul 2008 12:21:09 -0000	1.27
+++ src/openvz_driver.c	11 Jul 2008 10:28:59 -0000
@@ -599,7 +599,7 @@
 {
 #ifdef __linux__
     if ((getuid() == 0) && (virFileExists("/proc/vz")))
-        return("openvz:///");
+        return("openvz:///system");
 #endif
     return(NULL);
 }

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]