Index: xen-3.3.0-testing/tools/python/xen/xend/image.py =================================================================== --- xen-3.3.0-testing.orig/tools/python/xen/xend/image.py +++ xen-3.3.0-testing/tools/python/xen/xend/image.py @@ -261,6 +261,8 @@ class ImageHandler: ret.append('-nographic') return ret + keymap = vmConfig['platform'].get("keymap") + vnc_config = {} has_vnc = int(vmConfig['platform'].get('vnc', 0)) != 0 has_sdl = int(vmConfig['platform'].get('sdl', 0)) != 0 @@ -268,6 +270,8 @@ class ImageHandler: for dev_uuid in vmConfig['console_refs']: dev_type, dev_info = vmConfig['devices'][dev_uuid] if dev_type == 'vfb': + if 'keymap' in dev_info: + keymap = dev_info.get('keymap',{}) vfb_type = dev_info.get('type', {}) if vfb_type == 'sdl': self.display = dev_info.get('display', {}) @@ -279,7 +283,6 @@ class ImageHandler: has_vnc = True break - keymap = vmConfig['platform'].get("keymap") if keymap: ret.append("-k") ret.append(keymap)