Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vRA 7.3: How to reconfigure CPU/Core/Socket for VM Item?

$
0
0

HI,

 

By default vRA configures number of vCPU as number of sockets. In some cases I need 2 sockets and 4 cores = total of 8 vCPU's (Windows 7 limitation).

 

I use System.getModule("com.vmware.library.vcaccafe.request").requestResourceAction(operation,inputs) action with properties below to reconfigure VM.

 

//Create a properties object for the inputs
vmProperties = new Properties();

// Mandatory inputs:
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Requestor" , "service@domain.local");
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Storages" , "[]");
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Networks" , "[]");
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector" , 1);
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.CpuCount" , newCpuCount.toString());
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.PropertyBag" , '[{"PropertyName": "VirtualMachine.Core.Count","PropertyValue": "2"}');

vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.MemorySize" , newMemorySizeMb.toString());

 

Core.Count is ignored!

 

How do I solve this issue?

 

Findings:

If I use the “VirtualMachine.Core.Count” custom property on the VM in the blueprint and do a new deployment, the VM will have the number of cores per socket as configured. This works.

If I do a “Reconfigure task” on an VM Item in vRA and set custom property “VirtualMachine.Core.Count” it is ignored.

 

Use case:

                    Windows 7 only supports 2 sockets.

                    Windows server 2008 Enterprise supports only 8 sockets.

 

/Brian


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>