]> xenbits.xensource.com Git - libvirt.git/commitdiff
parallels: don't enable VNC when we define a new domain
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 23 Apr 2014 14:35:01 +0000 (18:35 +0400)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 7 May 2014 13:56:39 +0000 (14:56 +0100)
I added this code year ago, instead of implementing ability
to change VNC configuration, which was not trivial, I added
extra call to prlctl, which sets up VNC with auto port, despite
VNC configuration given by a user.

Let's remove this hack, because, first, it doesn't work on the
latest Parallels Cloud Server release (you have to either specify
--vnc-nopasswd option or password). And also has problem with
error handling. If second call to prlctl fails, VM, created by
first call to prlctl, will not be removed.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
src/parallels/parallels_driver.c

index 41bb34b5af53f3fc7ac7132cca8a3ca57f11f152..1c58b456fbd532e73d097ed9a4b238dba42f191e 100644 (file)
@@ -2258,9 +2258,6 @@ parallelsCreateVm(virConnectPtr conn, virDomainDefPtr def)
                         "--uuid", uuidstr, NULL) < 0)
         goto error2;
 
-    if (parallelsCmdRun(PRLCTL, "set", def->name, "--vnc-mode", "auto", NULL) < 0)
-        goto error2;
-
     virStoragePoolObjUnlock(pool);
     virObjectUnref(vol);
 
@@ -2294,9 +2291,6 @@ parallelsCreateCt(virConnectPtr conn ATTRIBUTE_UNUSED, virDomainDefPtr def)
                         "--ostemplate", def->fss[0]->src, NULL) < 0)
         goto error;
 
-    if (parallelsCmdRun(PRLCTL, "set", def->name, "--vnc-mode", "auto", NULL) < 0)
-        goto error;
-
     return 0;
 
  error: