Class: Virtuoso::VirtualBox::Hypervisor

Inherits:
API::Hypervisor show all
Defined in:
lib/virtuoso/virtualbox/hypervisor.rb

Overview

VirtualBox driver, allowing the control and management of VirtualBox virtual machines.

Instance Attribute Summary

Attributes inherited from API::Hypervisor

#connection

Instance Method Summary collapse

Methods inherited from API::Hypervisor

#initialize

Constructor Details

This class inherits a constructor from Virtuoso::API::Hypervisor

Instance Method Details

#find(id) ⇒ VM

Searches for a VM by name or UUID.

Parameters:

  • id (String)

    Name or UUID

Returns:



14
15
16
17
18
# File 'lib/virtuoso/virtualbox/hypervisor.rb', line 14

def find(id)
  result = connection.domains.find(id)
  return nil if !result
  VM.new(connection, result)
end

#new_vmObject



6
7
8
# File 'lib/virtuoso/virtualbox/hypervisor.rb', line 6

def new_vm
  VM.new(connection)
end