On Wed, Jun 01, 2016 at 04:27:02PM +0100, Richard W.M. Jones wrote: > [libvirt-users should be able to help out] > > On Wed, Jun 01, 2016 at 01:58:09PM +0000, John L. Magee wrote: > > Rich- do you know a way we could use virsh in scripts without > > manually entering the username/password creds for every invocation? > > Or could you point me to a source who may be able to help? We need > > to be able to set Linux VM memory and cpu configurations from a > > linux monitoring system and, if the cred entry could be overcome, > > virsh would be so much simpler than conventional VMWare > > alternatives. Yep libvirt supports a config file for credentials http://libvirt.org/auth.html#Auth_client_config For vmware esx IIRC you would create $HOME/.config/libvirt/auth.conf containing [credentials-prod] username=fred password=123456 [auth-esx-test1.example.com] credentials=prod [auth-esx-test2.example.com] credentials=prod [auth-esx-test3.example.com] credentials=prod Regards, Daniel -- |: 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 :| _______________________________________________ libvirt-users mailing list libvirt-users@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvirt-users