From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH] Set device model when creating rfb console via XenAPI Date: Thu, 13 Mar 2008 15:08:50 -0600 Message-ID: <47D997E2.5070403@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000909090106090107000603" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000909090106090107000603 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------000909090106090107000603 Content-Type: text/x-patch; name="xenapi-console-dm.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xenapi-console-dm.diff" 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() --------------000909090106090107000603 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000909090106090107000603--