]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Added support for keymap in VNC display
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 6 Mar 2007 20:00:17 +0000 (20:00 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 6 Mar 2007 20:00:17 +0000 (20:00 +0000)
21 files changed:
AUTHORS
ChangeLog
src/xend_internal.c
src/xm_internal.c
src/xml.c
tests/sexpr2xmldata/sexpr2xml-fv-v2.sexpr
tests/sexpr2xmldata/sexpr2xml-fv-v2.xml
tests/sexpr2xmldata/sexpr2xml-fv.sexpr
tests/sexpr2xmldata/sexpr2xml-fv.xml
tests/sexpr2xmldata/sexpr2xml-pv-vfb-new.sexpr
tests/sexpr2xmldata/sexpr2xml-pv-vfb-new.xml
tests/sexpr2xmldata/sexpr2xml-pv-vfb-orig.sexpr
tests/sexpr2xmldata/sexpr2xml-pv-vfb-orig.xml
tests/xml2sexprdata/xml2sexpr-fv-v2.sexpr
tests/xml2sexprdata/xml2sexpr-fv-vncunused.sexpr
tests/xml2sexprdata/xml2sexpr-fv-vncunused.xml
tests/xml2sexprdata/xml2sexpr-fv.xml
tests/xml2sexprdata/xml2sexpr-pv-vfb-new.sexpr
tests/xml2sexprdata/xml2sexpr-pv-vfb-new.xml
tests/xml2sexprdata/xml2sexpr-pv-vfb-orig.sexpr
tests/xml2sexprdata/xml2sexpr-pv-vfb-orig.xml

diff --git a/AUTHORS b/AUTHORS
index 39c55ca4b93fdeef0a9d6e0ddcdb7b1afc8e6de3..f4ddea83aea43ea6dad1131f05e6862861e5ec68 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -5,7 +5,7 @@ The libvirt project was initiated by:
 
   Daniel Veillard      <veillard@redhat.com> or <daniel@veillard.com>
 
-The primary maintainers for various code sub-systems / drivers 
+The primary maintainers for various code sub-systems / drivers
 are:
 
   Daniel Veillard      <veillard@redhat.com>   (xen & everything else)
@@ -30,6 +30,7 @@ Patches have also been contributed by:
   Kazuki Mizushima     <mizushima.kazuk@jp.fujitsu.com>
   Saori Fukuta         <fukuta.saori@jp.fujitsu.com>
   Tatsuro Enokura      <fj7716hz@aa.jp.fujitsu.com>
+  Takahashi Tomohiro   <takatom@jp.fujitsu.com>
 
   [....send patches to get your name here....]
 
index 334a43ce394c391044e6025fdfe70c3a412854e7..765f31918e63f653cad73010f63fbe8c071af8c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Tue Mar 06 14:21:12 EST 2007 Daniel P. Berrange <berrange@redhat.com>
+
+       * src/xend_internal.c, src/xml.c, src/xm_internal.c: Support
+       the 'keymap' attribute for VNC configuration. Based on patch
+       signed off by: Takahashi Tomohiro
+       * tests/sexpr2xmldata/, tests/xml2sexprdata/: Update to test
+       handling of keymap attribute
+
 Tue Mar 06 11:47:12 EST 2007 Daniel P. Berrange <berrange@redhat.com>
 
        * src/qemud.c: Unlink read-only socket upon startup (patch
index f56d24fcad084e0b66a84313d539b7482fc03bb4..bc8023d4ef15bfdf10dea1bd1c20e63e2c89c0f9 100644 (file)
@@ -1587,11 +1587,13 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
             } else if (tmp && !strcmp(tmp, "vnc")) {
                 int port = xenStoreDomainGetVNCPort(conn, domid);
                 const char *listenAddr = sexpr_node(node, "device/vfb/vnclisten");
-                if (listenAddr) {
-                    virBufferVSprintf(&buf, "    <graphics type='vnc' port='%d' listen='%s'/>\n", port, listenAddr);
-                } else {
-                    virBufferVSprintf(&buf, "    <graphics type='vnc' port='%d'/>\n", port);
-                }
+                const char *keymap = sexpr_node(node, "device/vfb/keymap");
+                virBufferVSprintf(&buf, "    <graphics type='vnc' port='%d'", port);
+                if (listenAddr)
+                    virBufferVSprintf(&buf, " listen='%s'", listenAddr);
+                if (keymap)
+                    virBufferVSprintf(&buf, " keymap='%s'", keymap);
+                virBufferAdd(&buf, "/>\n", 3);
             }
         }
     }
@@ -1632,6 +1634,7 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
         if (tmp[0] == '1') {
             int port = xenStoreDomainGetVNCPort(conn, domid);
             const char *listenAddr = sexpr_fmt_node(root, "domain/image/%s/vnclisten", hvm ? "hvm" : "linux");
+            const char *keymap = sexpr_fmt_node(root, "domain/image/%s/keymap", hvm ? "hvm" : "linux");
             /* For Xen >= 3.0.3, don't generate a fixed port mapping
              * because it will almost certainly be wrong ! Just leave
              * it as -1 which lets caller see that the VNC server isn't
@@ -1640,10 +1643,12 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
              */
             if (port == -1 && xendConfigVersion < 2)
                 port = 5900 + domid;
+            virBufferVSprintf(&buf, "    <graphics type='vnc' port='%d'", port);
             if (listenAddr)
-                virBufferVSprintf(&buf, "    <graphics type='vnc' port='%d' listen='%s'/>\n", port, listenAddr);
-            else
-                virBufferVSprintf(&buf, "    <graphics type='vnc' port='%d'/>\n", port);
+                virBufferVSprintf(&buf, " listen='%s'", listenAddr);
+            if (keymap)
+                virBufferVSprintf(&buf, " keymap='%s'", keymap);
+            virBufferAdd(&buf, "/>\n", 3);
         }
     }
 
index 066d86db07fe0325b71b1c575f15fb10dd640760..5e76eb0cdee991357cdc346ec283f6e630f62381 100644 (file)
@@ -579,6 +579,7 @@ char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf) {
     long vncunused = 1;
     const char *vnclisten = NULL;
     const char *vncpasswd = NULL;
+    const char *keymap = NULL;
 
     if (xenXMConfigGetString(conf, "name", &name) < 0)
         return (NULL);
@@ -890,6 +891,8 @@ char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf) {
                 vnclisten = NULL;
             if (xenXMConfigGetString(conf, "vncpasswd", &vncpasswd) < 0)
                 vncpasswd = NULL;
+            if (xenXMConfigGetString(conf, "keymap", &keymap) < 0)
+                keymap = NULL;
         }
         if (xenXMConfigGetInt(conf, "sdl", &val) == 0 && val)
             sdl = 1;
@@ -924,6 +927,8 @@ char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf) {
                     vnclisten = key + 10;
                 } else if (!strncmp(key, "vncpasswd=", 10)) {
                     vncpasswd = key + 10;
+                } else if (!strncmp(key, "keymap=", 7)) {
+                    keymap = key + 7;
                 } else if (!strncmp(key, "vncdisplay=", 11)) {
                     int port = strtol(key+11, NULL, 10);
                     if (port == -1)
@@ -942,21 +947,19 @@ char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf) {
     }
 
     if (vnc) {
+        virBufferVSprintf(buf,
+                          "    <graphics type='vnc' port='%d'",
+                          (vncunused ? -1 : 5900+vncdisplay));
+        if (vnclisten) {
+            virBufferVSprintf(buf, " listen='%s'", vnclisten);
+        }
         if (vncpasswd) {
-            if (vnclisten)
-                virBufferVSprintf(buf, "    <graphics type='vnc' port='%d' listen='%s' passwd='%s'/>\n",
-                                  (vncunused ? -1 : 5900+vncdisplay), vnclisten, vncpasswd);
-            else
-                virBufferVSprintf(buf, "    <graphics type='vnc' port='%d' passwd='%s'/>\n",
-                                  (vncunused ? -1 : 5900+vncdisplay), vncpasswd);
-        } else {
-            if (vnclisten)
-                virBufferVSprintf(buf, "    <graphics type='vnc' port='%d' listen='%s'/>\n",
-                                  (vncunused ? -1 : 5900+vncdisplay), vnclisten);
-            else
-                virBufferVSprintf(buf, "    <graphics type='vnc' port='%d'/>\n",
-                                  (vncunused ? -1 : 5900+vncdisplay));
+            virBufferVSprintf(buf, " passwd='%s'", vncpasswd);
         }
+        if (keymap) {
+            virBufferVSprintf(buf, " keymap='%s'", keymap);
+        }
+        virBufferAdd(buf, "/>\n", 3);
     }
     if (sdl) {
         virBufferAdd(buf, "    <graphics type='sdl'/>\n", -1);
@@ -1863,6 +1866,9 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
         if (xenXMConfigSetStringFromXPath(conn, conf, ctxt, "vncpasswd", "string(/domain/devices/graphics[@type='vnc']/@passwd)", 1,
                                           "cannot set the vncpasswd parameter") < 0)
             goto error;
+        if (xenXMConfigSetStringFromXPath(conn, conf, ctxt, "keymap", "string(/domain/devices/graphics[@type='vnc']/@keymap)", 1,
+                                          "cannot set the keymap parameter") < 0)
+            goto error;
 
         /* XXX vncdisplay */
         /*
@@ -1894,6 +1900,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
                     xmlChar *vncport = xmlGetProp(obj->nodesetval->nodeTab[i], BAD_CAST "port");
                     xmlChar *vnclisten = xmlGetProp(obj->nodesetval->nodeTab[i], BAD_CAST "listen");
                     xmlChar *vncpasswd = xmlGetProp(obj->nodesetval->nodeTab[i], BAD_CAST "passwd");
+                    xmlChar *keymap = xmlGetProp(obj->nodesetval->nodeTab[i], BAD_CAST "keymap");
                     int vncunused = vncport ? (!strcmp((const char*)vncport, "-1") ? 1 : 0) : 1;
                     if (vncunused)
                         len += 12;
@@ -1903,6 +1910,8 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
                         len += 11 + strlen((const char*)vnclisten);
                     if (vncpasswd)
                         len += 11 + strlen((const char*)vncpasswd);
+                    if (keymap)
+                        len += 8 + strlen((const char*)keymap);
                     if ((val = malloc(len)) != NULL) {
                         strcpy(val, "type=vnc");
                         if (vncunused) {
@@ -1923,6 +1932,11 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
                             strcat(val, (const char*)vncpasswd);
                             xmlFree(vncpasswd);
                         }
+                        if (keymap) {
+                            strcat(val, ",keymap=");
+                            strcat(val, (const char*)keymap);
+                            xmlFree(keymap);
+                        }
                     }
                 }
                 xmlFree(type);
index 50c939286cfa2dd95b47cd22c3e76ed4f3676be2..25e7566f6e662aae651cb3f848c35c871f69f5f2 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -246,6 +246,7 @@ static int virDomainParseXMLGraphicsDescImage(virConnectPtr conn ATTRIBUTE_UNUSE
                 xmlChar *vncport = xmlGetProp(node, BAD_CAST "port");
                 xmlChar *vnclisten = xmlGetProp(node, BAD_CAST "listen");
                 xmlChar *vncpasswd = xmlGetProp(node, BAD_CAST "passwd");
+                xmlChar *keymap = xmlGetProp(node, BAD_CAST "keymap");
                 if (vncport != NULL) {
                     long port = strtol((const char *)vncport, NULL, 10);
                     if (port == -1)
@@ -262,6 +263,10 @@ static int virDomainParseXMLGraphicsDescImage(virConnectPtr conn ATTRIBUTE_UNUSE
                     virBufferVSprintf(buf, "(vncpasswd %s)", vncpasswd);
                     xmlFree(vncpasswd);
                 }
+                if (keymap != NULL) {
+                    virBufferVSprintf(buf, "(keymap %s)", keymap);
+                    xmlFree(keymap);
+                }
             }
         }
         xmlFree(graphics_type);
@@ -305,6 +310,7 @@ static int virDomainParseXMLGraphicsDescVFB(virConnectPtr conn ATTRIBUTE_UNUSED,
             xmlChar *vncport = xmlGetProp(node, BAD_CAST "port");
             xmlChar *vnclisten = xmlGetProp(node, BAD_CAST "listen");
             xmlChar *vncpasswd = xmlGetProp(node, BAD_CAST "passwd");
+            xmlChar *keymap = xmlGetProp(node, BAD_CAST "keymap");
             if (vncport != NULL) {
                 long port = strtol((const char *)vncport, NULL, 10);
                 if (port == -1)
@@ -321,6 +327,10 @@ static int virDomainParseXMLGraphicsDescVFB(virConnectPtr conn ATTRIBUTE_UNUSED,
                 virBufferVSprintf(buf, "(vncpasswd %s)", vncpasswd);
                 xmlFree(vncpasswd);
             }
+            if (keymap != NULL) {
+                virBufferVSprintf(buf, "(keymap %s)", keymap);
+                xmlFree(keymap);
+            }
         }
         virBufferAdd(buf, "))", 2);
         xmlFree(graphics_type);
index 3a69b3aabce468edab577f2278d66850237994e1..019fe47a2e200a0167fe392b937cd852cea69320 100644 (file)
@@ -1 +1 @@
-(domain (domid 3)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(boot c)(acpi 1)(vnc 1)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
+(domain (domid 3)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(boot c)(acpi 1)(vnc 1)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
index b635b724762288254b5f9db5196e360f6d9eb458..45476989d60e0d486c16750563a5d1a97271a7d0 100644 (file)
@@ -32,6 +32,6 @@
       <mac address='00:16:3e:1b:b1:47'/>
       <script path='vif-bridge'/>
     </interface>
-    <graphics type='vnc' port='5903'/>
+    <graphics type='vnc' port='-1' keymap='ja'/>
   </devices>
 </domain>
index 4c5540f6ecbf2dc9d98fdf526390fd09eb069001..5d4579ddb1aa78e706860f7c510254a5148318b8 100644 (file)
@@ -1 +1 @@
-(domain (domid 3)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(boot c)(cdrom '/root/boot.iso')(acpi 1)(vnc 1)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
+(domain (domid 3)(name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(boot c)(cdrom '/root/boot.iso')(acpi 1)(vnc 1)(keymap ja)))(device (vbd (dev 'ioemu:hda')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
index eaa19bf09cc98835ed8c86e67f565a20562055ad..b9ebc365b04586c207a3e925192e1e3cde76323a 100644 (file)
@@ -32,6 +32,6 @@
       <target dev='hdc'/>
       <readonly/>
     </disk>
-    <graphics type='vnc' port='5903'/>
+    <graphics type='vnc' port='5903' keymap='ja'/>
   </devices>
 </domain>
index d45d6a41dd1465fd570276675526ded3e497dce4..618be2826c8688a257d0193a2189621a10b757d8 100644 (file)
@@ -1,2 +1,2 @@
-(domain (domid 6)(name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w')))(device (vfb (type vnc)(vncunused 1)(vnclisten 0.0.0.0)(vncpasswd 123456)))))
+(domain (domid 6)(name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w')))(device (vfb (type vnc)(vncunused 1)(vnclisten 0.0.0.0)(vncpasswd 123456)(keymap ja)))))
 
index c304d2593007b0ea80338d7f813333206bf155fb..12da7028aafe7bc7df8595f9a2bc4f9da9f00c74 100644 (file)
@@ -18,6 +18,6 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
-    <graphics type='vnc' port='5906' listen='0.0.0.0'/>
+    <graphics type='vnc' port='-1' listen='0.0.0.0' keymap='ja'/>
   </devices>
 </domain>
index edceadb2842942111c402d0e26dff2eaa8815664..034fe21f5c0555e8b366662eff06e721d05d5aeb 100644 (file)
@@ -1,2 +1,2 @@
-(domain (domid 6)(name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')(vnc 1)(vncunused 1)(vnclisten 0.0.0.0)(vncpasswd 123456)))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w'))))
+(domain (domid 6)(name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')(vnc 1)(vncunused 1)(vnclisten 0.0.0.0)(vncpasswd 123456)(keymap ja)))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w'))))
 
index c304d2593007b0ea80338d7f813333206bf155fb..12da7028aafe7bc7df8595f9a2bc4f9da9f00c74 100644 (file)
@@ -18,6 +18,6 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
-    <graphics type='vnc' port='5906' listen='0.0.0.0'/>
+    <graphics type='vnc' port='-1' listen='0.0.0.0' keymap='ja'/>
   </devices>
 </domain>
index ed3082ea3c43ea40f1c4674f030b1e0af6283037..28f31d2308b8764448931304421c526a58e93fc0 100644 (file)
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(vcpus 1)(boot c)(acpi 1)(vnc 1)(vncdisplay 17)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(vcpus 1)(boot c)(acpi 1)(vnc 1)(vncdisplay 17)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
index 4f2fbe135367a12abc7ec20f802eed64edafb75e..c7946ee4d42a51468b06a67a78726b19b909a9f7 100644 (file)
@@ -1 +1 @@
-(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(vcpus 1)(boot c)(acpi 1)(vnc 1)(vncunused 1)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
+(vm (name 'fvtest')(memory 400)(maxmem 400)(vcpus 1)(uuid 'b5d70dd275cdaca517769660b059d8bc')(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')(image (hvm (kernel '/usr/lib/xen/boot/hvmloader')(device_model '/usr/lib64/xen/bin/qemu-dm')(vcpus 1)(boot c)(acpi 1)(vnc 1)(vncunused 1)(keymap ja)))(device (vbd (dev 'hdc:cdrom')(uname 'file:/root/boot.iso')(mode 'r')))(device (vbd (dev 'hda:disk')(uname 'file:/root/foo.img')(mode 'w')))(device (vif (mac '00:16:3e:1b:b1:47')(bridge 'xenbr0')(script 'vif-bridge')(type ioemu))))
\ No newline at end of file
index b074d156f433e4db29acfcb1ae73f20dab60bbbf..b9d8d5b819a7aefd4c47ede9b6ea2e58beab5ae6 100644 (file)
@@ -30,7 +30,7 @@
       <source file='/root/foo.img'/>
       <target dev='ioemu:hda'/>
     </disk>
-    <graphics type='vnc' port='-1'/>
+    <graphics type='vnc' port='-1' keymap='ja'/>
   </devices>
 </domain>
 
index 68aef9105becb295f2d992bfaa592cac596f0e0b..9a5b1878317442a27c86389ef8c02992bde0883f 100644 (file)
@@ -30,7 +30,7 @@
       <source file='/root/foo.img'/>
       <target dev='ioemu:hda'/>
     </disk>
-    <graphics type='vnc' port='5917'/>
+    <graphics type='vnc' port='5917' keymap='ja'/>
   </devices>
 </domain>
 
index aac8c42a5420a03be0ddb52733947f0e451bb61b..4df78759fcec6d40ed05bae8feac03990bd62805 100644 (file)
@@ -1 +1 @@
-(vm (name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w')))(device (vkbd))(device (vfb (type vnc)(vncdisplay 6)(vnclisten 127.0.0.1)(vncpasswd 123456))))
\ No newline at end of file
+(vm (name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w')))(device (vkbd))(device (vfb (type vnc)(vncdisplay 6)(vnclisten 127.0.0.1)(vncpasswd 123456)(keymap ja))))
\ No newline at end of file
index b75cf3b2389ecc9d97182f58e45720365bc15a13..a8430eb1ef84536dcce3e3c83ab05187e5bcf4f3 100644 (file)
@@ -18,6 +18,6 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
-    <graphics type='vnc' port='5906' listen="127.0.0.1" passwd="123456"/>
+    <graphics type='vnc' port='5906' listen="127.0.0.1" passwd="123456" keymap="ja"/>
   </devices>
 </domain>
index a1dc66ff437be5c356f54fd53b8e2669700ad9e5..a8dc3ce4d3964a08c1405a6e1291d711ee540cfe 100644 (file)
@@ -1 +1 @@
-(vm (name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')(vnc 1)(vncdisplay 6)(vnclisten 127.0.0.1)(vncpasswd 123456)))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w'))))
\ No newline at end of file
+(vm (name 'pvtest')(memory 420)(maxmem 420)(vcpus 2)(uuid '596a5d2171f48fb2e068e2386a5c413e')(on_poweroff 'destroy')(on_reboot 'destroy')(on_crash 'destroy')(image (linux (kernel '/var/lib/xen/vmlinuz.2Dn2YT')(ramdisk '/var/lib/xen/initrd.img.0u-Vhq')(args ' method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os  ')(vnc 1)(vncdisplay 6)(vnclisten 127.0.0.1)(vncpasswd 123456)(keymap ja)))(device (vbd (dev 'xvda')(uname 'file:/root/some.img')(mode 'w'))))
\ No newline at end of file
index b75cf3b2389ecc9d97182f58e45720365bc15a13..a8430eb1ef84536dcce3e3c83ab05187e5bcf4f3 100644 (file)
@@ -18,6 +18,6 @@
       <source file='/root/some.img'/>
       <target dev='xvda'/>
     </disk>
-    <graphics type='vnc' port='5906' listen="127.0.0.1" passwd="123456"/>
+    <graphics type='vnc' port='5906' listen="127.0.0.1" passwd="123456" keymap="ja"/>
   </devices>
 </domain>