diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-03-14 12:30:52 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-03-15 11:20:17 +0000 |
commit | e457d5ef2015e6106094b85f8bbd1582002edc4d (patch) | |
tree | 7b18a670b0a5feb1695881410679e536ec1a5669 /tools | |
parent | 6227a220ccdd0193a1912f3a0010a72d91f06818 (diff) | |
download | libvirt-e457d5ef2015e6106094b85f8bbd1582002edc4d.tar.gz |
Allow overriding default URI in config file
Currently if the URI passed to virConnectOpen* is NULL, then we
- Look for LIBVIRT_DEFAULT_URI env var
- Probe for drivers
This changes it so that
- Look for LIBVIRT_DEFAULT_URI env var
- Look for 'uri_default' in $HOME/.libvirt/libvirt.conf
- Probe for drivers
Diffstat (limited to 'tools')
-rw-r--r-- | tools/virsh.pod | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/virsh.pod b/tools/virsh.pod index 64b00ee03b..ecf6aaad05 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -2632,7 +2632,16 @@ The file to log virsh debug messages. =item VIRSH_DEFAULT_CONNECT_URI The hypervisor to connect to by default. Set this to a URI, in the same -format as accepted by the B<connect> option. +format as accepted by the B<connect> option. This environment variable +is deprecated in favour of the global B<LIBVIRT_DEFAULT_URI> variable +which serves the same purpose. + +=item LIBVIRT_DEFAULT_URI + +The hypervisor to connect to by default. Set this to a URI, in the +same format as accepted by the B<connect> option. This overrides +the default URI set in any client config file and prevents libvirt +from probing for drivers. =item VISUAL |