[libvirt] [PATCH v2] Allow overriding default URI in config file

Eric Blake eblake at redhat.com
Wed Mar 14 14:10:24 UTC 2012


On 03/14/2012 07:45 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> 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
> ---

> +++ b/tools/virsh.pod
> @@ -2632,7 +2632,9 @@ 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<LIVIRT_DEFAULT_URI> variable

s/LIVIRT/LIBVIRT/

It may be worth also adding an explicit:

=item LIBVIRT_DEFAULT_URI

ACK with virsh.pod fixed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120314/d0c65bf2/attachment-0001.sig>


More information about the libvir-list mailing list