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'
usb_device_ids: []
keyboards:
- '/dev/input/by-path/platform-i8042-serio-0-event-kbd'
- '/dev/input/by-id/usb-Keychron_K4_Keychron_K4-event-kbd'
mice: []
roles:
- win10

View File

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

View File

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

View File

@ -99,7 +99,7 @@
<memballoon model='none'/>
<disk type='file' device='disk'>
<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"/>
<boot order='2'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>