[PATCH 1/3] parallels: change URI to parallels:///system

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

 



Let's change URI to parallels:///system. Parallels Server supports
creating VMs from non-privileged accounts, but it's not main usage
scenario and it may be forbidden in the future.

Also containers, which will be supported by the driver, can be managed
only by root, so /system path is more suitable for this driver.

Signed-off-by: Dmitry Guryanov <dguryanov@xxxxxxxxxxxxx>
---
 docs/drvparallels.html.in        |   10 +++++-----
 src/parallels/parallels_driver.c |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/docs/drvparallels.html.in b/docs/drvparallels.html.in
index 40a0fe5..8e1430b 100644
--- a/docs/drvparallels.html.in
+++ b/docs/drvparallels.html.in
@@ -19,10 +19,10 @@
         The libvirt Parallels driver is a single-instance privileged driver, with a driver name of 'parallels'. Some example connection URIs for the libvirt driver are:
     </p>
 <pre>
-parallels:///default                     (local access)
-parallels+unix:///default                (local access)
-parallels://example.com/default          (remote access, TLS/x509)
-parallels+tcp://example.com/default      (remote access, SASl/Kerberos)
-parallels+ssh://root@xxxxxxxxxxx/default (remote access, SSH tunnelled)
+parallels:///system                     (local access)
+parallels+unix:///system                (local access)
+parallels://example.com/system          (remote access, TLS/x509)
+parallels+tcp://example.com/system      (remote access, SASl/Kerberos)
+parallels+ssh://root@xxxxxxxxxxx/system (remote access, SSH tunnelled)
 </pre>
 </body></html>
diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c
index 05db54f..53b5a50 100644
--- a/src/parallels/parallels_driver.c
+++ b/src/parallels/parallels_driver.c
@@ -670,11 +670,11 @@ parallelsOpen(virConnectPtr conn,
         (conn->uri->path[0] == '/' && conn->uri->path[1] == '\0')) {
         virReportError(VIR_ERR_INVALID_ARG, "%s",
                        _("parallelsOpen: supply a path or use "
-                         "parallels:///session"));
+                         "parallels:///system"));
         return VIR_DRV_OPEN_ERROR;
     }
 
-    if (STREQ(conn->uri->path, "/session"))
+    if (STREQ(conn->uri->path, "/system"))
         ret = parallelsOpenDefault(conn);
     else
         return VIR_DRV_OPEN_DECLINED;
-- 
1.7.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]