-
Notifications
You must be signed in to change notification settings - Fork 400
Expand file tree
/
Copy pathkvm.xml
More file actions
executable file
·212 lines (186 loc) · 9.28 KB
/
kvm.xml
File metadata and controls
executable file
·212 lines (186 loc) · 9.28 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="UTF-8"?>
<globalConfig xmlns="http://zstack.org/schema/zstack">
<config>
<category>kvm</category>
<name>vm.migrationQuantity</name>
<description>A value that defines how many vm can be migrated in parallel when putting a KVM host into maintenance mode.</description>
<defaultValue>2</defaultValue>
<type>java.lang.Integer</type>
</config>
<config>
<category>kvm</category>
<name>migrate.autoConverge</name>
<description>Enable auto converge during live migration.</description>
<defaultValue>false</defaultValue>
<type>java.lang.Boolean</type>
</config>
<config>
<category>kvm</category>
<name>migrate.xbzrle</name>
<description>Enable xbzrle compress will speed up live migration under write-frequently workload.</description>
<defaultValue>true</defaultValue>
<type>java.lang.Boolean</type>
</config>
<config>
<category>kvm</category>
<name>reservedCpu</name>
<description>The CPU capacity reserved on all KVM hosts. ZStack KVM agent is a python web server that needs some CPU capacity to run, this value reserve a portion of CPU for the agent as well as other host applications. The value can be overriden by system tag on individual host, cluster and zone level</description>
<defaultValue>512</defaultValue>
</config>
<config>
<category>kvm</category>
<name>reservedMemory</name>
<description>The memory capacity reserved on all KVM hosts. ZStack KVM agent is a python web server that needs some memory capacity to run. this value reserves a portion of memory for the agent as well as other host applications. The value can be overridden by system tag on individual host, cluster and zone level</description>
<defaultValue>1G</defaultValue>
</config>
<config>
<category>kvm</category>
<name>dataVolume.maxNum</name>
<description>Max number of data volumes allowed to attach to single KVM instance</description>
<type>java.lang.Integer</type>
<defaultValue>24</defaultValue>
</config>
<config>
<category>kvm</category>
<name>host.syncLevel</name>
<description>The number of parallel commands that can be executed on KVM host. A big number may put a host in heavy workload in a busy system. The value must be greater than zero</description>
<type>java.lang.Integer</type>
<defaultValue>10</defaultValue>
</config>
<config>
<category>kvm</category>
<name>host.snapshot.syncLevel</name>
<description>The number of parallel commands of take snapshot call per KVM host. A big number may put a host in heavy workload in a busy system. The value must be greater than zero</description>
<type>java.lang.Integer</type>
<defaultValue>10</defaultValue>
</config>
<config>
<category>kvm</category>
<name>vm.createConcurrency</name>
<description>The number of VMs that can be created concurrently on KVM host.</description>
<type>java.lang.Integer</type>
<defaultValue>1</defaultValue>
</config>
<config>
<category>kvm</category>
<name>host.DNSCheckList</name>
<description>DNS or IP check list. When adding a KVM host, if all DNS/IP in the list are failed to ping, the adding host will fail.</description>
<defaultValue>yahoo.com,google.com,baidu.com</defaultValue>
</config>
<config>
<category>kvm</category>
<name>host.DNSCheckAliyun</name>
<description>DNS or IP check list. When adding a KVM host, if all DNS/IP in the list are failed to ping, the adding host will fail.</description>
<defaultValue>mirrors.aliyun.com</defaultValue>
</config>
<config>
<category>kvm</category>
<name>host.DNSCheck163</name>
<description>DNS or IP check list. When adding a KVM host, if all DNS/IP in the list are failed to ping, the adding host will fail.</description>
<defaultValue>mirrors.163.com</defaultValue>
</config>
<config>
<category>kvm</category>
<name>redhat.liveSnapshotOn</name>
<description>when set to true, enable the live volume snapshot on RedHat series OS if the libvirt and QEMU versions match the requirement</description>
<type>java.lang.Boolean</type>
<defaultValue>false</defaultValue>
</config>
<config>
<category>kvm</category>
<name>vm.cacheMode</name>
<description>disk cache optoin:none,writethrough,writeback</description>
<defaultValue>none</defaultValue>
</config>
<config>
<category>kvm</category>
<name>vm.cpuMode</name>
<description>the cpu mode option, which could be used to enable nested virtualization, options are [none, host-model, host-passthrough, Haswell, Haswell-noTSX, Broadwell, Broadwell-noTSX, SandyBridge, IvyBridge, Conroe, Penryn, Nehalem, Westmere, Opteron_G1, Opteron_G2, Opteron_G3, Opteron_G4, pentium, pentium2, pentium3]. none: not use nested virtualization; host-model/host-passthrough will enable nested virtualization. When using host-passthrough, VM will see same CPU model in Host /proc/cpuinfo. When using host-model or host-passthrough, VM migration might be failed, due to mismatched CPU model. To use nested virtualization, user need to do some pre-configuration. Firstly, the /sys/module/kvm_intel/parameters/nested should be set as 'Y'; Secondly, the /usr/libexec/qemu-kvm binary should support nested feature as well. </description>
<type>java.lang.String</type>
<defaultValue>none</defaultValue>
</config>
<config>
<category>kvm</category>
<name>vmSyncOnHostPing</name>
<description>whether to sync VM states from hosts when host ping tasks execute</description>
<type>java.lang.Boolean</type>
<defaultValue>true</defaultValue>
</config>
<config>
<category>kvm</category>
<name>checkHostCpuModelName</name>
<description>whether check host cpu model name when migrate vm</description>
<type>java.lang.Boolean</type>
<defaultValue>false</defaultValue>
</config>
<config>
<category>kvm</category>
<name>ignoreMsrs</name>
<description>whether set ignore_msrs for kvm module</description>
<type>java.lang.Boolean</type>
<defaultValue>false</defaultValue>
</config>
<config>
<category>kvm</category>
<name>testSshPortOpenTimeout</name>
<description>the total timeout to test if host's ssh port ready when reconnecting hosts, in seconds</description>
<type>java.lang.Long</type>
<defaultValue>300</defaultValue>
</config>
<config>
<category>kvm</category>
<name>testSshPortOnConnectTimeout</name>
<description>use with testSshPortOpenTimeout, the connect timeout launching a socket connection to hosts' ssh port, in seconds</description>
<type>java.lang.Integer</type>
<defaultValue>2</defaultValue>
</config>
<config>
<category>kvm</category>
<name>restartagentwhenfakedead</name>
<description>restart agent directly if it might be fake dead</description>
<type>java.lang.Boolean</type>
<defaultValue>true</defaultValue>
</config>
<config>
<category>kvm</category>
<name>auto.set.vm.nic.multiqueue</name>
<description>auto set vm nic multiqueue, set nic queue number based on number of vm cpu cores when platform is linux</description>
<type>java.lang.Boolean</type>
<defaultValue>true</defaultValue>
</config>
<config>
<category>kvm</category>
<name>kvmagent.allow.ports</name>
<description>tcp or udp ports allowed by kvmagent, udp port start with 'u' like 'u67', port range can be like this: 1100:1200, multiple port or port range can be separated by ”,“</description>
<defaultValue>22,{KvmAgent.port},16509,49152:49261,2049,20000:30000,u4789,u8472,{KvmAgent.prometheusPort},{KvmAgent.nodeExportPort},{KvmAgent.collectdExposePort},{kvmhost.pushgateway.webListenPort}</defaultValue>
<type>java.lang.String</type>
</config>
<config>
<category>kvm</category>
<name>enable.host.tcp.connection.check</name>
<description>Enable host connection check offered by tcp detection.</description>
<defaultValue>false</defaultValue>
<type>java.lang.Boolean</type>
</config>
<config>
<category>kvm</category>
<name>connection.server.update.interval</name>
<description>Interval for tcp server update its heartbeat time.</description>
<defaultValue>1</defaultValue>
<type>java.lang.Integer</type>
</config>
<config>
<category>kvm</category>
<name>host.connection.check.interval</name>
<description>Interval to check if sockets from host are out of date.</description>
<defaultValue>3</defaultValue>
<type>java.lang.Long</type>
</config>
<config>
<category>kvm</category>
<name>redirect.vm.log.to.file</name>
<description>Redirect vm console log to file</description>
<defaultValue>false</defaultValue>
<type>java.lang.Boolean</type>
</config>
</globalConfig>