lost and found ( for me ? )

Linux KVM : how to specify keybord layout of a VM



# tail -1 /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 11.10"

# libvirtd --version
libvirtd (libvirt) 0.9.2

# virt-manager --version
0.9.0

# kvm --version
QEMU emulator version 0.14.1 (qemu-kvm-0.14.1), Copyright (c) 2003-2008 Fabrice Bellard


Here’s a VM called Mint12-64-1.
# virsh list --all | grep -i mint
 - Mint12-64-1          shut off


[ specify keyboard layout ]

How to check what kind of keyboard layouts you can configure

You could specify the following keyboard layout. ( /usr/shar/qemu-kvm/keymaps/* )
# ls /usr/share/qemu-kvm/keymaps/
ar      da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv
bepo    de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th
common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr

set Mint12-64-1 VM’s keymaps as ja ( Japanese )

edit Mint12-64-1 VM’s xml ( # virsh edit Mint12-64-1) :

from
# virsh dumpxml Mint12-64-1 | grep graphics
   <graphics type='vnc' port='-1' autoport='yes'/>


to
# virsh dumpxml Mint12-64-1 | grep graphics
   <graphics type='vnc' port='-1' autoport='yes' keymap='ja'/>

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.