   {_xapiRef: ref} = VM
 
   # Memory.
+  #
+  # TODO: Check limits if in a set.
   if 'memory' of params
     memory = parseSize(params.memory)
 


#---------------------------------------------------------------------

snapshot = $coroutine ({vm, name}) ->
  yield checkPermissionOnSrs.call(this, vm)



#---------------------------------------------------------------------

# TODO: implement resource sets
copy = $coroutine ({
  compress,
  name: nameLabel,
