Class: Xen::Console

Inherits:
Base
  • Object
show all
Defined in:
lib/xen/console.rb

Class Method Summary collapse

Methods inherited from Base

#initialize, #record, #to_s, #uuid

Constructor Details

This class inherits a constructor from Xen::Base

Class Method Details

.create(vm, host) ⇒ Object

Create method, takes a name, a device (p.ex. ‘phy:/dev/storage/slice’) and a host



10
11
12
13
14
# File 'lib/xen/console.rb', line 10

def self.create(vm, host)
  config = @initial_config.merge({:VM => vm.uuid})
  uuid = host.get_value("console.create", config)
  self.new(uuid, host)
end