virDomainDefParseString assigns 0 to port if autoport enabled. So fix code, which check different between old and new configurations. --- src/parallels/parallels_driver.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c index fd6ba88..9eb2526 100644 --- a/src/parallels/parallels_driver.c +++ b/src/parallels/parallels_driver.c @@ -1223,7 +1223,7 @@ parallelsApplyGraphicsParams(virDomainGraphicsDefPtr *oldgraphics, int nold, new = newgraphics[0]; if (old->data.vnc.port != new->data.vnc.port && - (old->data.vnc.port != 0 && new->data.vnc.port != -1)) { + (old->data.vnc.port != 0 && new->data.vnc.port != 0)) { goto error; } else if (old->data.vnc.autoport != new->data.vnc.autoport || -- 1.7.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list