[libvirt] [virsh] [PATCH BZ#732364] please add a .virsh/rc file

Daniel P. Berrange berrange at redhat.com
Mon Feb 27 15:44:56 UTC 2012

On Mon, Feb 27, 2012 at 04:56:01PM +0200, Feniks Gordon Freeman wrote:
> Hi, libvirt developers
> I found very interesting libvirt and i wrote patch for BZ#732264
> I added support for parsing ~/.virsh/rc file.
> rc file in format KEY = VALUE
> symbol '#' - comment
> Now, only one value added for parsing - VIRSH_DEFAULT_CONNECT_URI.
> This value can be overwrite by env variable VIRSH_DEFAULT_CONNECT_URI.

Hmm, I didn't know we had a VIRSH_DEFAULT_CONNECT_URI - we also
have LIBVIRT_DEFAULT_CONNECT_URI, which applies to any libvirt
app. We also already have a $HOME/.libvirt/libvirt.conf for
configuring client apps. I think it'd be better to extend that
existing config file so the defaults affect all apsp (eg virt-top,
virt-install, etc) - chances are if you want to change one, you
want to change them all. And to deprecate usage of VIRSH_DEFAULT_CONNECT_URI
too while we're at it.

|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

More information about the libvir-list mailing list