[libvirt] [PATCH 2/4] parallels: don't enable VNC when we define a new domain

Daniel P. Berrange berrange at redhat.com
Wed May 7 13:53:25 UTC 2014


On Wed, Apr 23, 2014 at 06:35:01PM +0400, Dmitry Guryanov wrote:
> 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.

And even if we do want VNC, then we should only do it if
the virDomainDefPtr graphics config actually requests VNC.

> Signed-off-by: Dmitry Guryanov <dguryanov at parallels.com>
> ---
>  src/parallels/parallels_driver.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c
> index 41bb34b..1c58b45 100644
> --- a/src/parallels/parallels_driver.c
> +++ b/src/parallels/parallels_driver.c
> @@ -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;

ACK,


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list