Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 294344

vSphere SDK Perl vmreconfig.pl (Need to change CPU,memory of vm)

$
0
0

I Deployed the Applicance from

 

http://www.vmware.com/go/importvma/vma4.ovf

 

It is up and running fine. If I run a command like

 

 

[vi-admin@vMA-test vm]$ ./vminfo.pl --url https://10.5.6.210:443/sdk/vimService --username root --password ''  --vmname=sl61
Information of Virtual Machine sl61
Name:           sl61
No. of CPU(s):           1
Memory Size:           2048
Virtual Disks:           1
Template:           0
vmPathName:           [datastore1] sl61/sl61.vmx
Guest OS:           Not Known
guestId:           Not Known
Host name:           Not Known
IP Address:           Not Known
VMware Tools:           VMware Tools is not running.
Cpu usage:           Not Known
Host memory usage:           Not Known
Guest memory usage:           Not Known
Overall Status:           The entity is OK

 

It works.

 

BUT the vmreconfig.pl does not have an option to change the number of CPUs of a VM.

 

How can I do that?

 

 

Another issue is if I want to add another adapter I get

 

I created a copy of the vmreconfig file

/sampledata/rajan-vmreconfig.xml

 

Only difference in the new one is

 

<Reconfigure-Virtual-Machine>

   <Name>"sl61"</Name>

   <Host>10.5.6.210</Host>

   <Add-Device>

Then I run
[vi-admin@vMA-test vm]$ ./vmreconfig.pl --url https://10.5.6.210:443/sdk/vimService --username root --password ''  --server 10.5.6.210 --filename=../sampledata/rajan-vmreconfig.xml
Any ideas? The same host can be connected to for other scripts.

Thanks

-Rajan


Viewing all articles
Browse latest Browse all 294344

Trending Articles