1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
kvmd:
server:
unix_mode: 0666
info:
hw:
procfs_prefix: /fake_procfs
sysfs_prefix: /fake_sysfs
hid:
keyboard:
device: /dev/null
mouse:
device: /dev/null
noop: true
msd:
remount_cmd: /bin/true
unlock_cmd: /bin/true
sysfs_prefix: /fake_sysfs
streamer:
desired_fps: 30
max_fps: 40
cmd:
- "/usr/bin/ustreamer"
- "--device=/dev/kvmd-video"
- "--quality={quality}"
- "--desired-fps={desired_fps}"
- "--resolution=800x600"
- "--last-as-blank=0"
- "--unix={unix}"
- "--unix-rm"
- "--unix-mode=0666"
- "--exit-on-parent-death"
- "--process-name-prefix={process_name_prefix}"
- "--notify-parent"
- "--no-log-colors"
gpio:
drivers:
gpio2:
type: gpio
state_poll: 0.3
scheme:
host1: # any name like foo_bar_baz
pin: 1
mode: input
host2:
pin: 2
mode: input
host3:
pin: 3
mode: input
host4:
pin: 4
mode: input
change_host:
pin: 5
mode: output
switch: false
host1_pwr:
pin: 11
mode: input
host2_pwr:
pin: 12
mode: input
host3_pwr:
pin: 13
mode: input
host4_pwr:
pin: 14
mode: input
host1_pwr_btn:
pin: 21
mode: output
switch: false
host2_pwr_btn:
pin: 22
mode: output
switch: false
host3_pwr_btn:
pin: 23
mode: output
switch: false
host4_pwr_btn:
pin: 24
mode: output
switch: false
lamp:
pin: 50
mode: output
pulse:
delay: 0
view:
header:
title: Switch
table:
- ["#Multihost controller"]
- []
- ["", "#Current", "#Power"]
- ["#host1.localdomain:", host1, host1_pwr, "host1_pwr_btn,Pwr"]
- ["#host2.localdomain:", host2, host2_pwr, "host2_pwr_btn,Pwr"]
- ["#host3.localdomain:", host3, host3_pwr, "host3_pwr_btn,Pwr"]
- ["#host4.localdomain:", host4, host4_pwr, "host4_pwr_btn,Pwr"]
- []
- ["change_host,Change host"]
- []
- ["#Lamp in the rack", lamp]
vnc:
keymap: /usr/share/kvmd/keymaps/ru
auth:
vncauth:
enabled: true
|