code: def set_ram(self, ram):
          
  
          if ram == 0:
              return
  
          yield from self._modify_vm('--memory {}'.format(ram))
  
          log.info("VirtualBox VM '{name}' [{id}] has set amount of RAM to {ram}".format(name=self.name, id=self.id, ram=ram))
          self._ram = ram
docs: Set the amount of RAM allocated to this VirtualBox VM.
  
          :param ram: amount RAM in MB (integer)