Method: OpenNebula::VirtualMachine#allocate

Defined in:
lib/opennebula/virtual_machine.rb

#allocate(description, hold = false) ⇒ nil, OpenNebula::Error

Allocates a new VirtualMachine in OpenNebula

Parameters:

  • description (String)

    A string containing the template of the VirtualMachine.

  • hold (true, false) (defaults to: false)

    false to create the VM in pending state, true to create it on hold

Returns:



295
296
297
# File 'lib/opennebula/virtual_machine.rb', line 295

def allocate(description, hold=false)
    super(VM_METHODS[:allocate], description, hold)
end