1
0
Fork 0

switch to atlas, new keyboard

This commit is contained in:
Massaki Archambault 2023-05-25 16:33:50 -04:00
parent 571a0d16cc
commit 08ccb78734
4 changed files with 8 additions and 7 deletions

View File

@ -28,7 +28,7 @@
function: '0' function: '0'
usb_device_ids: [] usb_device_ids: []
keyboards: keyboards:
- '/dev/input/by-path/platform-i8042-serio-0-event-kbd' - '/dev/input/by-id/usb-Keychron_K4_Keychron_K4-event-kbd'
mice: [] mice: []
roles: roles:
- win10 - win10

View File

@ -99,10 +99,10 @@
block: | block: |
cgroup_device_acl = [ cgroup_device_acl = [
{% for item in keyboards %} {% for item in keyboards %}
"/dev/input/by-id/uinput-persist-keyboard{{ loop.index0 }}", "{{ item }}",
{% endfor %} {% endfor %}
{% for item in mice %} {% for item in mice %}
"/dev/input/by-id/uinput-persist-mouse{{ loop.index0 }}", "{ item }}",
{% endfor %} {% endfor %}
"/dev/kvm", "/dev/kvm",
"/dev/null", "/dev/full", "/dev/zero", "/dev/null", "/dev/full", "/dev/zero",

View File

@ -1,12 +1,13 @@
{ {
"cache": "/opt/persistent-evdev/cache", "cache": "/opt/persistent-evdev/cache",
"devices": { "devices": {
{% if keyboards or mice %}
{% for item in keyboards %} {% for item in keyboards %}
"persist-keyboard{{loop.index0}}": "{{ item }}", "persist-keyboard{{loop.index0}}": "{{ item }}"{%if not loop.last or mice %},{% endif %}
{% endfor %} {% endfor %}
{% for item in mice %} {% for item in mice %}
"persist-mouse{{loop.index0}}": "{{ item }}", "persist-mouse{{loop.index0}}": "{{ item }}"{%if not loop.last %},{% endif %}
{% endfor %} {% endfor %}
"dummy" : "/dev/null" {% endif %}
} }
} }

View File

@ -99,7 +99,7 @@
<memballoon model='none'/> <memballoon model='none'/>
<disk type='file' device='disk'> <disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/> <driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/>
<source file='/data/marchambault/VirtualMachines/img/win10.img'/> <source file='/data/marchambault/VirtualMachines/img/atlas.img'/>
<target dev='sda' bus='scsi' rotation_rate="1"/> <target dev='sda' bus='scsi' rotation_rate="1"/>
<boot order='2'/> <boot order='2'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/>