<domain type='kvm'>
    <name>scenarioRun{{ id }}</name>
    <description>Scenario &quot;{{ scenario.title }}&quot; played by {{ user.username }}</description>
    <memory>{{ memory }}</memory>
    <vcpu>1</vcpu>
    <os>
        <type arch="x86_64">hvm</type>
    </os>
    <devices>
        <disk type='file' device='disk'>
            <driver name='qemu' type='qcow2' />
            <source file='{{ volume }}' />
            <target dev='vda' bus='virtio' />
        </disk>
        <interface type='bridge'>
            <mac address='{{ mac }}' />
            <source bridge='{{ bridge }}' />
            <model type='virtio' />
        </interface>
        <graphics type='vnc' port='-1' autoport='yes' />
    </devices>
</domain>

<domain type='kvm'>
    <name>scenarioRun{{ id }}</name>
    <description>Scenario &quot;{{ scenario.title }}&quot; played by {{ user.username }}</description>
    <memory>{{ memory }}</memory>
    <vcpu>1</vcpu>
    <os>
        <type arch="x86_64">hvm</type>
    </os>
    <devices>
        <disk type='file' device='disk'>
            <driver name='qemu' type='qcow2' />
            <source file='{{ volume }}' />
            <target dev='vda' bus='virtio' />
        </disk>
        <interface type='bridge'>
            <mac address='{{ mac }}' />
            <source bridge='{{ bridge }}' />
            <model type='virtio' />
        </interface>
        <graphics type='vnc' port='-1' autoport='yes' keymap='en-us' />
    </devices>
</domain>

Set the keymap to 'en-us' in the libvirt machine template
Set the keymap to 'en-us' in the libvirt machine template

The setting is a bit confusing imho, but this tells libvirt that the
guest is using the en-us keyboard layout and creates a translation
table for him. This is a bit quirky since qemu has to send scancodes
which cannot be easily derived from the information vnc provides.

With this in it is possible to use alternative keyboard layouts when
connecting to the virtual machines via libvirts vnc viewer. It has
some quirks but works well for colemak and doesn't break qwerty.

Closes #5.

Signed-off-by: Justus Winter <522fcaaef407d95406902b8e5b9b27285a3f8540@informatik.uni-hamburg.de>
