Parent

Pangea::VM

A Virtual Machine or Guest (DomU)

xen-api: VM

Public Instance Methods

actions_after_crash() click to toggle source

xen-api: VM.get_actions_after_crash

# File lib/pangea/objects.rb, line 444
    def actions_after_crash
      ref_call :get_actions_after_crash
    end
actions_after_reboot() click to toggle source

xen-api: VM.get_actions_after_reboot

# File lib/pangea/objects.rb, line 437
    def actions_after_reboot
      ref_call :get_actions_after_reboot
    end
actions_after_shutdown() click to toggle source

xen-api: VM.get_actions_after_shutdown

# File lib/pangea/objects.rb, line 423
    def actions_after_shutdown
      ref_call :get_actions_after_shutdown
    end
domid() click to toggle source

xen-api: VM.get_domid

# File lib/pangea/objects.rb, line 402
    def domid
      (ref = ref_call :get_domid).to_i
    end
dyn_max_mem() click to toggle source

(Not documented)

# File lib/pangea/objects.rb, line 376
    def dyn_max_mem
      ref_call :get_memory_dynamic_max
    end
dyn_min_mem() click to toggle source

(Not documented)

# File lib/pangea/objects.rb, line 380
    def dyn_min_mem
      ref_call :get_memory_dynamic_min
    end
guest_metrics() click to toggle source

xen-api: VM.get_guest_metrics

# File lib/pangea/objects.rb, line 347
    def guest_metrics
      VMGuestMetrics.new(@link, ref_call(:get_guest_metrics))
    end
is_control_domain?() click to toggle source

xen-api: VM.get_is_control_domain

# File lib/pangea/objects.rb, line 409
    def is_control_domain?
      ref_call :get_is_control_domain
    end
label() click to toggle source

VM Label (same one you see when you run ‘xm list’)

xen-api: VM.get_name_label

# File lib/pangea/objects.rb, line 333
    def label
      ref_call :get_name_label
    end
max_mem() click to toggle source

xen-api: VM.get_memory_static_max

# File lib/pangea/objects.rb, line 372
    def max_mem
      ref_call :get_memory_static_max
    end
metrics() click to toggle source

xen-api: VM.get_metrics

# File lib/pangea/objects.rb, line 340
    def metrics
      VMMetrics.new(@link, ref_call(:get_metrics))
    end
min_mem() click to toggle source

xen-api: VM.get_memory_static_min

# File lib/pangea/objects.rb, line 387
    def min_mem
      ref_call :get_memory_static_min
    end
power_state() click to toggle source

xen-api: VM.get_power_state

# File lib/pangea/objects.rb, line 365
    def power_state
      ref_call :get_power_state
    end
pv_kernel() click to toggle source

xen-api: VM.get_pv_kernel

# File lib/pangea/objects.rb, line 430
    def pv_kernel
      ref_call :get_PV_kernel
    end
resident_on() click to toggle source

xen-api: VM.get_resident_on

# File lib/pangea/objects.rb, line 394
    def resident_on
      ref = ref_call(:get_resident_on)
      Host.new(@link, ref)
    end
to_s() click to toggle source

(Not documented)

# File lib/pangea/objects.rb, line 448
    def to_s
      eol = "\n"
      "Label: #{label}" + eol +
      "UUID: #{uuid}" + eol +
      "Power State: #{power_state}" + eol +
      "Mem: #{Util::humanize_bytes(dyn_min_mem)}" + eol +
      "Max Mem: #{Util::humanize_bytes(max_mem)}" + eol
    end
vifs() click to toggle source

xen-api: VM.get_VIFs

# File lib/pangea/objects.rb, line 354
    def vifs
      list = []
      ref_call(:get_VIFs).each do |vif|
        list << VIF.new(@link, vif)
      end
      list
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.