1
UBUNTU: xen: Do not use vfb device in HVM definitions
3
When talking to xend to create or modify an HVM instance,
4
graphics should be defined outside (without) any vfb device.
5
(see http://lists.xen.org/archives/html/xen-users/2011-11/msg00119.html)
7
The vfb definition works just out of luck, but doing so also defines
8
a vkbd device which causes xenbus init to fail after a long
11
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
12
Index: libvirt-0.9.8/src/xenxs/xen_xm.c
13
===================================================================
14
--- libvirt-0.9.8.orig/src/xenxs/xen_xm.c 2012-04-03 17:09:59.000000000 +0200
15
+++ libvirt-0.9.8/src/xenxs/xen_xm.c 2012-04-04 14:36:38.434001687 +0200
16
@@ -1669,7 +1669,7 @@ virConfPtr xenFormatXM(virConnectPtr con
19
if (def->ngraphics == 1) {
20
- if (xendConfigVersion < (hvm ? 4 : XEND_CONFIG_MIN_VERS_PVFB_NEWCONF)) {
21
+ if (hvm || (xendConfigVersion < XEND_CONFIG_MIN_VERS_PVFB_NEWCONF)) {
22
if (def->graphics[0]->type == VIR_DOMAIN_GRAPHICS_TYPE_SDL) {
23
if (xenXMConfigSetInt(conf, "sdl", 1) < 0)
25
Index: libvirt-0.9.8/src/xenxs/xen_sxpr.c
26
===================================================================
27
--- libvirt-0.9.8.orig/src/xenxs/xen_sxpr.c 2012-04-03 17:09:59.000000000 +0200
28
+++ libvirt-0.9.8/src/xenxs/xen_sxpr.c 2012-04-04 17:41:41.228280488 +0200
29
@@ -2296,9 +2296,8 @@ xenFormatSxpr(virConnectPtr conn,
33
- /* PV graphics for xen <= 3.0.4, or HVM graphics for xen <= 3.1.0 */
34
- if ((!hvm && xendConfigVersion < XEND_CONFIG_MIN_VERS_PVFB_NEWCONF) ||
35
- (hvm && xendConfigVersion < 4)) {
36
+ /* PV graphics for xen <= 3.0.4, or HVM graphics */
37
+ if (hvm || (xendConfigVersion < XEND_CONFIG_MIN_VERS_PVFB_NEWCONF)) {
38
if ((def->ngraphics == 1) &&
39
xenFormatSxprGraphicsOld(def->graphics[0],
40
&buf, xendConfigVersion) < 0)
41
@@ -2327,10 +2326,8 @@ xenFormatSxpr(virConnectPtr conn,
42
if (xenFormatSxprAllPCI(def, &buf) < 0)
45
- /* New style PV graphics config xen >= 3.0.4,
46
- * or HVM graphics config xen >= 3.0.5 */
47
- if ((xendConfigVersion >= XEND_CONFIG_MIN_VERS_PVFB_NEWCONF && !hvm) ||
48
- (xendConfigVersion >= 4 && hvm)) {
49
+ /* New style PV graphics config xen >= 3.0.4 */
50
+ if (!hvm && (xendConfigVersion >= XEND_CONFIG_MIN_VERS_PVFB_NEWCONF)) {
51
if ((def->ngraphics == 1) &&
52
xenFormatSxprGraphicsNew(def->graphics[0], &buf) < 0)