1VIRT-WHO-CONFIG(5) File Formats Manual VIRT-WHO-CONFIG(5)
2
3
4
6 virt-who-config - configuration for virt-who
7
9 /etc/sysconfig/virt-who /etc/virt-who.conf /etc/virt-who.d/*.conf
10
12 Configuration format is ini-like for files /etc/virt-who.conf and
13 /etc/virt-who.d/*.conf. The contents of /etc/sysconfig/virt-who are
14 environment variables to be used when virt-who is run as a service.
15 The configuration files located at /etc/virt-who.d/*.conf are called
16 virtualization backend configurations. All non-hidden files in this
17 directory (ending in '.conf') are considered configuration files. If no
18 section (name in square brackets) is present in the configuration file,
19 it will be ignored and warning will be shown. The configuration
20 located at /etc/virt-who.conf is the main configuration for virt-who.
21 Below are descriptions of both the required and optional options for
22 both kinds of configs and how they are used.
23
25 The general configuration file (located at /etc/virt-who.conf), has two
26 special sections global and defaults. The settings that can be speci‐
27 fied in defaults are any setting listed in the VIRTUALIZATION BACKEND
28 CONFIGURATION section of this manual. These settings are applied as
29 defaults to the configurations found in /etc/virt-who.d/*.conf.
30
31 The settings in the global affect the overall operation of the applica‐
32 tion. The following are options that can be specified in the global
33 section:
34
35 interval
36 how often to check connected hypervisors for changes (seconds).
37 Also affects how often a mapping is reported.
38
39 reporter_id
40 The id of this virt-who instance, reported with all mappings.
41 Defaults to HOSTNAME-MACHINEID
42
43 debug Enable debugging output
44
45 oneshot
46 Send the list of guest IDs and exit immediately
47
48 log_per_config
49 Write a seperate log file per configuration in the config direc‐
50 tory
51
52 log_dir
53 The absolute path of the directory to write logs to.
54
55 log_file
56 The file name to write logs to (used only if log_per_con‐
57 fig=False)
58
59 configs
60 A list of files containing configurations for virt-who Used to
61 specify locations other than default
62
63
65 NO_PROXY
66 A comma-separated list of hostnames or domains or ip addresses
67 to ignore proxy settings for. Optionally this may be set to '*'
68 to bypass proxy settings for all hostnames domains or ip
69 addresses.
70
71
73 Each section (or group), denoted by an arbitrary name for the configu‐
74 ration (in square brackets), is read in
75
76 Only required key is type that has to have one of the allowed virtual‐
77 ization backend names, see virt-who(8).
78
79 Please note that special characters must not be escaped (opposed to
80 /etc/sysconfig/virt-who).
81
82 Other options that can be supplied are:
83
84 server Hostname, IP address or URL of the server that provides virtual‐
85 ization information (not applicable for vdsm and kubevirt mode).
86
87 username
88 Username for authentication to the server (not applicable for
89 vdsm and kubevirt mode). May include domain. Do not escape the
90 backslash between domain and username.
91
92 password
93 Password for authentication to the server (not applicable for
94 vdsm and kubevirt mode).
95
96 encrypted_password
97 Alternative to the password option, encrypted password that is
98 generated by virt-who-password(8) utility.
99
100 owner Owner for use with Subscription Asset Manager, the Red Hat Cus‐
101 tomer Portal, or Satellite 6 (not applicable for Satellite 5)
102
103 env Environment for use with Subscription Asset Manager or Satellite
104 6 (not applicable for Satellite 5)
105
106 rhsm_username
107 Optional username to use to communicate with Subscription Asset
108 Manager or Satellite 6 instead of the registered system's iden‐
109 tity certificate. (not applicable for Satellite 5)
110
111 rhsm_password
112 Optional password to use to communicate with Subscription Asset
113 Manager or Satellite 6 instead of the registered system's iden‐
114 tity certificate. (not applicable for Satellite 5)
115
116 rhsm_encrypted_password
117 Alternative to the rhsm_password option, encrypted password that
118 is generated by virt-who-password(8) utility.
119
120 rhsm_hostname
121 Optional hostname of the Subscription Asset Manager or Satellite
122 6 server to use in place of the host defined in the system's
123 rhsm.conf.
124
125 rhsm_port
126 Optional port for the Subscription Asset Manager or Satellite 6
127 server to use in place of the port defined in the system's
128 rhsm.conf.
129
130 rhsm_prefix
131 Optional prefix for the Subscription Asset Manager or Satellite
132 6 server to use in place of the prefix defined in the system's
133 rhsm.conf.
134
135 rhsm_proxy_hostname
136 Optional proxy host name for the Subscription Asset Manager or
137 Satellite 6 server to use in place of the proxy host name
138 defined in the system's rhsm.conf.
139
140 rhsm_proxy_port
141 Optional proxy port for the Subscription Asset Manager or Satel‐
142 lite 6 server to use in place of the proxy port defined in the
143 system's rhsm.conf.
144
145 rhsm_proxy_user
146 Optional proxy username for the Subscription Asset Manager or
147 Satellite 6 server to use in place of the proxy username defined
148 in the system's rhsm.conf.
149
150 rhsm_proxy_password
151 Optional proxy password for the Subscription Asset Manager or
152 Satellite 6 server to use in place of the proxy password defined
153 in the system's rhsm.conf.
154
155 rhsm_encrypted_proxy_password
156 Alternative to the rhsm_proxy_password option; encrypted pass‐
157 word generated by the virt-who-password(8) utility.
158
159 sat_server
160 Hostname, IP address or URL of the Satellite 5 server.
161
162 sat_username
163 Username for authentication to the Satellite 5 server.
164
165 sat_password
166 Password for authentication to the Satellite 5 server.
167
168 sat_encrypted_password
169 Alternative to sat_password option, encrypted password that is
170 generated by virt-who-password(8) utility.
171
172 filter_hosts
173 Only hosts which uuid (or hostname or hwuuid, based on hypervi‐
174 sor_id) is specified in comma-separated list in this option will
175 be reported. Wildcards and regular expressions are supported.
176 Put the value into the double-quotes if it contains special
177 characters (like comma). filter_host_uuids is deprecated alias
178 for this option.
179
180 exclude_hosts
181 Hosts which uuid (or hostname or hwuuid, based on hypervisor_id)
182 is specified in comma-separated list in this option will NOT be
183 reported. Wildcards and regular expressions are supported. Put
184 the value into the double-quotes if it contains special charac‐
185 ters (like comma). exclude_host_uuids is deprecated alias for
186 this option.
187
188 hypervisor_id
189 Property that should be used as identification of the hypervi‐
190 sor. Can be one of following: uuid, hostname, hwuuid. Note that
191 some virtualization backends don't have all of them implemented.
192 Default is uuid. hwuuid is applicable to esx and rhevm only.
193 This property is meant to be set up before initial run of virt-
194 who. Changing it later will result in duplicated entries in the
195 subscription manager.
196
197
199 [test-esx]
200 type=esx
201 server=1.2.3.4
202 username=admin
203 password=password
204 owner=test
205 env=staging
206 rhsm_username=admin
207 rhsm_password=password
208
209
211 ESX BACKEND
212 filter_host_parents
213 Only hosts which parent (usually ComputeResource) name is speci‐
214 fied in comma-separated list in this option will be reported.
215 Put the name into the double-quotes if it contains special char‐
216 acters (like comma).
217
218 exclude_host_parents
219 Hosts which parent (usually ComputeResource) name is specified
220 in comma-separated list in this option will NOT be reported. Put
221 the name into the double-quotes if it contains special charac‐
222 ters (like comma).
223
224 simplified_vim
225 virt-who by default uses stripped-down version of vimSer‐
226 vice.wsdl file that contains vSphere SOAP API definition. Set
227 this option to false to use server provided wsdl file that will
228 be retrieved automatically.
229
230
231 RHEV-M BACKEND
232 server The default port number is 8443 (that was used the default in
233 RHEV-M <= 3.0). Newer RHEV-M installations uses port 443 by
234 default. Use correct value for your server in format:
235
236 server=<HOSTNAME_OR_IP_ADDRESS>:<PORT_NUMBER>
237
238
239 FAKE BACKEND
240 Fake backend reads host/guests associations from the file on disk, for
241 example:
242
243 [fake-virt]
244 type=fake
245 file=/path/to/json
246 is_hypervisor=True
247
248
249 type Must be always fake.
250
251
252 is_hypervisor
253 If true (default), the option determines that the fake data are
254 fetched from multihost environment.
255
256
257 file Absolute path to the JSON file that has the same structure as
258 file returned from virt-who --print command, for example:
259 {
260 "hypervisors": [
261 {
262 "uuid": "7e98b6ea-0af1-4afa-b846-919549bb0fe2",
263 "guests": [
264 {
265 "guestId":
266 "8ae19f08-2605-b476-d42e-4bd5a39f466c",
267 "state": 1
268 },
269 ...
270 ]
271 },
272 ...
273 ]
274 }
275
276
278 Radek Novacek <rnovacek at redhat dot com>
279
280
282 virt-who(8), virt-who-password(8)
283
284
285
286virt-who October 2015 VIRT-WHO-CONFIG(5)