Scroll to navigation

VIRT-WHO-CONFIG(5) File Formats Manual VIRT-WHO-CONFIG(5)

NAME

virt-who-config - configuration for virt-who

SYNOPISIS

/etc/sysconfig/virt-who /etc/virt-who.conf /etc/virt-who.d/*.conf

DESCRIPTION

Configuration format is ini-like for files /etc/virt-who.conf and /etc/virt-who.d/*.conf. The contents of /etc/sysconfig/virt-who are environment variables to be used when virt-who is run as a service. The configuration files located at /etc/virt-who.d/*.conf are called virtualization backend configurations. All non-hidden files in this directory (ending in '.conf') are considered configuration files. If no section (name in square brackets) is present in the configuration file, it will be ignored and warning will be shown. The configuration located at /etc/virt-who.conf is the main configuration for virt-who. Below are descriptions of both the required and optional options for both kinds of configs and how they are used.

GENERAL CONFIGURATION

The general configuration file (located at /etc/virt-who.conf), has two special sections global and defaults. The settings that can be specified in defaults are any setting listed in the VIRTUALIZATION BACKEND CONFIGURATION section of this manual. These settings are applied as defaults to the configurations found in /etc/virt-who.d/*.conf.

The settings in the global affect the overall operation of the application. The following are options that can be specified in the global section:

how often to check connected hypervisors for changes (seconds). Also affects how often a mapping is reported.
The id of this virt-who instance, reported with all mappings. Defaults to HOSTNAME-MACHINEID
Enable debugging output
Send the list of guest IDs and exit immediately
Write a seperate log file per configuration in the config directory
The absolute path of the directory to write logs to.
The file name to write logs to (used only if log_per_config=False)
A list of files containing configurations for virt-who Used to specify locations other than default

VARIABLES UNIQUE TO SYSCONFIG

A comma-separated list of hostnames or domains or ip addresses to ignore proxy settings for. Optionally this may be set to '*' to bypass proxy settings for all hostnames domains or ip addresses.

VIRTUALIZATION BACKEND CONFIGURATION

Each section (or group), denoted by an arbitrary name for the configuration (in square brackets), is read in

Only required key is type that has to have one of the allowed virtualization backend names, see virt-who(8).

Please note that special characters must not be escaped (opposed to /etc/sysconfig/virt-who).

Other options that can be supplied are:

Hostname, IP address or URL of the server that provides virtualization information (not applicable for vdsm and kubevirt mode).
Username for authentication to the server (not applicable for vdsm and kubevirt mode). May include domain. Do not escape the backslash between domain and username.
Password for authentication to the server (not applicable for vdsm and kubevirt mode).
Alternative to the password option, encrypted password that is generated by virt-who-password(8) utility.
Owner for use with Subscription Asset Manager, the Red Hat Customer Portal, or Satellite 6 (not applicable for Satellite 5)
Optional username to use to communicate with Subscription Asset Manager or Satellite 6 instead of the registered system's identity certificate. (not applicable for Satellite 5)
Optional password to use to communicate with Subscription Asset Manager or Satellite 6 instead of the registered system's identity certificate. (not applicable for Satellite 5)
Alternative to the rhsm_password option, encrypted password that is generated by virt-who-password(8) utility.
Optional hostname of the Subscription Asset Manager or Satellite 6 server to use in place of the host defined in the system's rhsm.conf.
Optional port for the Subscription Asset Manager or Satellite 6 server to use in place of the port defined in the system's rhsm.conf.
Optional prefix for the Subscription Asset Manager or Satellite 6 server to use in place of the prefix defined in the system's rhsm.conf.
Optional proxy host name for the Subscription Asset Manager or Satellite 6 server to use in place of the proxy host name defined in the system's rhsm.conf.
Optional proxy port for the Subscription Asset Manager or Satellite 6 server to use in place of the proxy port defined in the system's rhsm.conf.
Optional proxy username for the Subscription Asset Manager or Satellite 6 server to use in place of the proxy username defined in the system's rhsm.conf.
Optional proxy password for the Subscription Asset Manager or Satellite 6 server to use in place of the proxy password defined in the system's rhsm.conf.
Alternative to the rhsm_proxy_password option; encrypted password generated by the virt-who-password(8) utility.
As per the NO_PROXY parameter in SYSCONFIG.
Hostname, IP address or URL of the Satellite 5 server.
Username for authentication to the Satellite 5 server.
Password for authentication to the Satellite 5 server.
Alternative to sat_password option, encrypted password that is generated by virt-who-password(8) utility.
Only hosts which uuid (or hostname or hwuuid, based on hypervisor_id) is specified in comma-separated list in this option will be reported. Wildcards and regular expressions are supported. Put the value into the double-quotes if it contains special characters (like comma). filter_host_uuids is deprecated alias for this option.
Hosts which uuid (or hostname or hwuuid, based on hypervisor_id) is specified in comma-separated list in this option will NOT be reported. Wildcards and regular expressions are supported. Put the value into the double-quotes if it contains special characters (like comma). exclude_host_uuids is deprecated alias for this option.
When this propery is not set, then virt-who tries to detect wildcards or regular expression in value of filter_hosts or exclude_hosts. This option allows to specify usage of regular expression (value 'regex') or wildcards (value 'wildcards').
Property that should be used as identification of the hypervisor. Can be one of following: uuid, hostname, hwuuid. Note that some virtualization backends don't have all of them implemented. Default is uuid. hwuuid is applicable to esx and rhevm only. This property is meant to be set up before initial run of virt-who. Changing it later will result in duplicated entries in the subscription manager.
#kubeconfig
Path to Kubernetes configuration file which contains authentication and connection details. Used by kubevirt option
#kubeversion
API version used to override kubevirt api version fetched from the cluster. Used by kubevirt option

EXAMPLE

[test-esx]
type=esx
server=1.2.3.4
username=admin
password=password
owner=test
rhsm_username=admin
rhsm_password=password

BACKEND SPECIFIC OPTIONS

ESX BACKEND

Only hosts which cluster ID is specified in comma-separated list in this option will be reported. Put the name into the double-quotes if it contains special characters (like comma). PowerCLI command to find the domain names in VMware `Get-Cluster “ClusterName” | Select ID`
Exclude hosts which cluster ID is specified in comma-separated list in this option will NOT be reported. Put the name into the double-quotes if it contains special characters (like comma). PowerCLI command to find the domain names in VMware `Get-Cluster “ClusterName” | Select ID`
virt-who by default uses stripped-down version of vimService.wsdl file that contains vSphere SOAP API definition. Set this option to false to use server provided wsdl file that will be retrieved automatically.

RHEV-M BACKEND

The default port number is 8443 (that was used the default in RHEV-M <= 3.0). Newer RHEV-M installations uses port 443 by default. Use correct value for your server in format:

server=<HOSTNAME_OR_IP_ADDRESS>:<PORT_NUMBER>

KUBEVIRT BACKEND

Kubevirt backend uses a Kubernetes configuration file where there are cluster connection details and an authentication token. There is no need to provide a hostname nor user credentials. Before using the kubeconfig file please make sure to login to the cluster so the token is written to the file. To login you need to run:

oc login --username=myuser --password=mypass

FAKE BACKEND

Fake backend reads host/guests associations from the file on disk, for example:

[fake-virt]
type=fake
file=/path/to/json
is_hypervisor=True

Must be always fake.

If true (default), the option determines that the fake data are fetched from multihost environment.

Absolute path to the JSON file that has the same structure as file returned from virt-who --print command, for example:
{
"hypervisors": [
{
"uuid": "7e98b6ea-0af1-4afa-b846-919549bb0fe2",
"guests": [
{
"guestId": "8ae19f08-2605-b476-d42e-4bd5a39f466c",
"state": 1
},
...
]
},
...
]
}

AUTHOR

Radek Novacek <rnovacek at redhat dot com>

SEE ALSO

virt-who(8), virt-who-password(8)

October 2015 virt-who