diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 1763305e64..0ae45e1aee 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -500,7 +500,8 @@ VIR_ENUM_IMPL(virDomainVideo, VIR_DOMAIN_VIDEO_TYPE_LAST, "vmvga", "xen", "vbox", - "qxl") + "qxl", + "parallels") VIR_ENUM_IMPL(virDomainInput, VIR_DOMAIN_INPUT_TYPE_LAST, "mouse", diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 0b2f1c9bf0..ab11c0b926 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1326,6 +1326,7 @@ typedef enum { VIR_DOMAIN_VIDEO_TYPE_XEN, VIR_DOMAIN_VIDEO_TYPE_VBOX, VIR_DOMAIN_VIDEO_TYPE_QXL, + VIR_DOMAIN_VIDEO_TYPE_PARALLELS, /* pseudo device for VNC in containers */ VIR_DOMAIN_VIDEO_TYPE_LAST } virDomainVideoType; diff --git a/src/parallels/parallels_sdk.c b/src/parallels/parallels_sdk.c index 21953f09dc..b18b610171 100644 --- a/src/parallels/parallels_sdk.c +++ b/src/parallels/parallels_sdk.c @@ -997,6 +997,25 @@ prlsdkAddVNCInfo(PRL_HANDLE sdkdom, virDomainDefPtr def) if (VIR_APPEND_ELEMENT(def->graphics, def->ngraphics, gr) < 0) goto error; + if (IS_CT(def)) { + virDomainVideoDefPtr video; + if (VIR_ALLOC(video) < 0) + goto error; + video->type = virDomainVideoDefaultType(def); + if (video->type < 0) { + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + _("cannot determine default video type")); + VIR_FREE(video); + goto error; + } + video->vram = virDomainVideoDefaultRAM(def, video->type); + video->heads = 1; + if (VIR_ALLOC_N(def->videos, 1) < 0) { + virDomainVideoDefFree(video); + goto error; + } + def->videos[def->nvideos++] = video; + } return 0; error: diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 3f0df5895b..5103599261 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -112,7 +112,8 @@ VIR_ENUM_IMPL(qemuVideo, VIR_DOMAIN_VIDEO_TYPE_LAST, "vmware", "", /* no arg needed for xen */ "", /* don't support vbox */ - "qxl"); + "qxl", + "" /* don't support parallels */); VIR_ENUM_DECL(qemuDeviceVideo) @@ -122,7 +123,8 @@ VIR_ENUM_IMPL(qemuDeviceVideo, VIR_DOMAIN_VIDEO_TYPE_LAST, "vmware-svga", "", /* no device for xen */ "", /* don't support vbox */ - "qxl-vga"); + "qxl-vga", + "" /* don't support parallels */); VIR_ENUM_DECL(qemuSoundCodec)