5

Modify VM attributes from VMware CLI

view full story
linux-howto

http://serverfault.com – There has to be a way to do this that I'm missing. I'm trying to modify attributes on a whole bunch of VMs at the same time from the CLI: Look! 24 VMs: $ vmware-cmd --server 10.91.1.1 --username root --password vmware -h 10.91.1.3 -l /vmfs/volumes/volumes/V-RHEL-01/V-RHEL-01.vmx /vmfs/volumes/volumes/V-RHEL-02/V-RHEL-02.vmx /vmfs/volumes/volumes/V-RHEL-03/V-RHEL-03.vmx … /vmfs/volumes/volumes/V-RHEL-24/V-RHEL-24.vmx Let's try and modify them: $ for i in `seq -w 1 24`; do CFG="/vmfs/volumes/volumes/V-RHEL-$i/V-RHEL-$i.vmx" echo $CFG vmware-cmd --server 10.91.1.1 --username root --p (HowTos)