[chef] Re: Re: Setting VM memory reservation with knife vsphere vm clone


Chronological Thread 
  • From: Aditya Karanjkar < >
  • To: " " < >
  • Subject: [chef] Re: Re: Setting VM memory reservation with knife vsphere vm clone
  • Date: Fri, 8 Aug 2014 12:27:38 +0530

Hi Terry,

By memory reservation, do you mean the amount of virtual RAM allotted to a VM OR memory reservation as used in resource management and allocation, i.e reservation, shares etc.? The former can be specified using the '--cram' option as mentioned by Johnny. The latter cannot be specified using knife-vsphere. Setting memory reservation would be done via a ResourceAllocationInfo managed data object as a part of the VirtualMachineConfigSpec and I don't think knife-vsphere caters to this as of now.

Regards,
Aditya


On Fri, Aug 8, 2014 at 8:46 AM, Johnny Tan < " target="_blank"> > wrote:
You use `--cram` option. `--cram 3` means 3GB RAM.

But yes before being able to specify RAM via `cram` (or CPU via `ccpu` for that matter), you do need to specify `--cspec`. To do that, in Vcenter, just create a customization specification (it's really basic info like timezone, dns, etc):

Then you can use `--cspec NAME` where NAME is the name of the customization specification you created.



On Thu, Aug 7, 2014 at 7:47 PM, Terry P. < " target="_blank"> > wrote:
Greetings all,
We are using knife vsphere to automate the birthing of over a hundred VMs, and it's working well.  One issue we can't figure out though is how to set the VM memory reservation during execution of the "knife vsphere vm clone" command.

I see there is the --cspec CUST_SPEC option, but I cannot find anything that explains what the format / syntax should be.  Can anyone please point me to where I can find that?

Thanks in advance,
Terry





Archive powered by MHonArc 2.6.16.

§