[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.-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
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 :|
Thanks much --- jlm --- John L Magee jlmagee@mageenet.net http://www.mageenet.net/ US Mobile: +1(917)855-7109 US Facsimile: +1(646)349-2741 -----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] Sent: Wednesday, June 01, 2016 11:46 AM To: libvirt-users@redhat.com Cc: John L. Magee Subject: Re: [libvirt-users] virsh for VMWare 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 :|
Possibly Parallel Threads
- [Bug 106787] New: Thinkpad P52s NVIDIA Quadro P500 gp108 WARNING: CPU: 3 PID: 395 at drivers/gpu/drm/nouveau/nvkm/subdev/pmu/base.c:86 nvkm_pmu_reset+0x14c/0x160
- Re: virsh for VMWare
- [RFC][QEMU] ATI graphics VBIOS passthru support
- virsh : Need help to manage a vm on a remote vmWare
- Create VMWare ESXi domain via virsh error(error: this function is not supported by the connection driver: virDomainCreateXML)