From: Jim Fehlig <jfehlig@novell.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] Set device model when creating rfb console via XenAPI
Date: Thu, 13 Mar 2008 15:08:50 -0600 [thread overview]
Message-ID: <47D997E2.5070403@novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
When creating a rfb console via XenAPI the device model is not being set
to qemu-dm, resulting in no pvfb since qemu-dm is not launched when domU
is started. This patch sets device model when a rfb console is created
via XenAPI.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
[-- Attachment #2: xenapi-console-dm.diff --]
[-- Type: text/x-patch, Size: 897 bytes --]
diff -r dc0f82bcc7a1 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py Thu Mar 13 15:00:43 2008 -0600
+++ b/tools/python/xen/xend/XendConfig.py Thu Mar 13 15:02:13 2008 -0600
@@ -1282,6 +1282,12 @@ class XendConfig(dict):
target['devices'][dev_uuid] = ('vfb', dev_info)
target['console_refs'].append(dev_uuid)
+ # if console is rfb, set device_model ensuring qemu
+ # is invoked for pvfb services
+ if 'device_model' not in target['platform']:
+ target['platform']['device_model'] = \
+ xen.util.auxbin.pathTo("qemu-dm")
+
# Finally, if we are a pvfb, we need to make a vkbd
# as well that is not really exposed to Xen API
vkbd_uuid = uuid.createString()
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2008-03-13 21:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D997E2.5070403@novell.com \
--to=jfehlig@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.