   # Note: static_min ≤ dynamic_min ≤ dynamic_max ≤ static_max
   memory: { type: ['integer', 'string'], optional: true }
 
+  # Set static_min & dynamic_min
+  memoryMin: { type: ['integer', 'string'], optional: true }
+
+  # Set static_max
+  memoryMax: { type: ['integer', 'string'], optional: true }
+
   # Kernel arguments for PV VM.
   PV_args: { type: 'string', optional: true }
 


  resourceSet = xapi.xo.getData(ref, 'resourceSet')

  # Memory.
  if 'memory' of params
    memory = parseSize(params.memory)

          "for a running VM"
      )

    if memory > VM.memory.static[1]
      yield xapi.call 'VM.set_memory_static_max', ref, "#{memory}"
    if resourceSet?
      yield @allocateLimitsInResourceSet({
