fog / fog-xenserver

Module for the 'fog' gem to support XENSERVER
MIT License
16 stars 20 forks source link

Template guest_metrics provided for newly provisioned VM #51

Closed djaara closed 6 years ago

djaara commented 9 years ago

See irb output of following sequence (there is puts for new_attributes field in reload):

require 'fog/xenserver'
connection = Fog::Compute.new({:provider => 'XenServer', :xenserver_url => "server", :xenserver_username => "username", :xenserver_password => "password"});
source_template = connection.templates.find_by_name('centos65-template-no-cd')
source_template.guest_metrics
vm = source_template.clone 'guest-metrics'
vm.provision
vm.start
vm.guest_metrics
vm.reload
vm.guest_metrics
vm = connection.servers.get vm.reference
vm.guest_metrics
2.2.0 :002 > require 'fog/xenserver'
 => true
2.2.0 :003 > connection = Fog::Compute.new({:provider => 'XenServer', :xenserver_url => "server", :xenserver_username => "username", :xenserver_password => "password"});
2.2.0 :004 >   source_template = connection.templates.find_by_name('centos65-template-no-cd')
 =>   <Fog::Compute::XenServer::Models::Server
    reference="OpaqueRef:6827551d-c059-d4ea-09c0-86cb5d1afe9c",
    actions_after_crash="restart",
    actions_after_reboot="restart",
    actions_after_shutdown="destroy",
    allowed_operations=["changing_dynamic_range", "changing_shadow_memory", "changing_static_range", "provision", "destroy", "export", "clone", "copy"],
    blobs={},
    blocked_operations={},
    bios_strings={"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"},
    current_operations={},
    domarch="",
    domid="-1",
    description="",
    generation_id="",
    ha_always_run=false,
    ha_restart_priority="",
    hvm_boot_params={"order"=>"c"},
    hvm_boot_policy="",
    hvm_shadow_multiplier=1.0,
    is_a_snapshot=false,
    is_a_template=true,
    is_control_domain=false,
    is_snapshot_from_vmpp=false,
    last_booted_record="('struct' ('uuid' '4c61a8e3-fa0a-5872-9141-cb2af1eb6bdc') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:ade3229d-f3e0-3c7f-3f70-a2edde62ef07' 'start'))) ('power_state' 'Halted') ('name_label' 'centos65-template-no-cd (1)') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:0ab0d4d6-286d-4904-8b07-100db804d9d9')) ('VBDs' ('array' 'OpaqueRef:5f23101a-db1e-b387-4176-4bef517ffc64' 'OpaqueRef:f0f787c8-d0eb-5e61-fa83-dd1ae784ede2')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' '995403cc-d340-149b-bd96-f37343c505d8') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:afbadf9c-5372-8957-dfd2-c9f13ae48513') ('guest_metrics' 'OpaqueRef:64c88328-c2af-4bca-f030-f9405fb3bcef') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))",
    last_boot_cpu_flags={"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"},
    memory_dynamic_max="2147483648",
    memory_dynamic_min="2147483648",
    memory_overhead="18874368",
    memory_static_max="2147483648",
    memory_static_min="2147483648",
    memory_target="0",
    name="centos65-template-no-cd",
    order="0",
    other_config={"instant"=>"true", "vgpu_pci"=>"", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"995403cc-d340-149b-bd96-f37343c505d8", "install-methods"=>"cdrom"},
    pci_bus="",
    platform={"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"},
    power_state="Halted",
    pv_args="",
    pv_bootloader="pygrub",
    pv_bootloader_args="",
    pv_kernel="",
    pv_legacy_args="",
    pv_ramdisk="",
    recommendations="<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>",
    shutdown_delay="0",
    snapshot_info={},
    snapshot_metadata="",
    snapshot_time=1970-01-01 00:00:00 UTC,
    start_delay="0",
    tags=[],
    transportable_snapshot_id="",
    user_version="1",
    uuid="4c61a8e3-fa0a-5872-9141-cb2af1eb6bdc",
    vcpus_at_startup="1",
    vcpus_max="1",
    vcpus_params={},
    version="0",
    xenstore_data={"vm-data"=>""}
  >
2.2.0 :005 > source_template.guest_metrics
 =>   <Fog::Compute::XenServer::Models::GuestMetrics
    reference="OpaqueRef:c3e86277-348c-2bf6-d75b-396b9d947b15",
    disk=nil,
    last_updated=#<XMLRPC::DateTime:0x007fa904594d18 @year=2015, @month=4, @day=10, @hour=3, @min=44, @sec=43>,
    live=true,
    memory={},
    networks={"0/ip"=>"10.40.26.51"},
    os_version={"name"=>"CentOS release 6.5 (Final)", "uname"=>"2.6.32-431.el6.x86_64", "distro"=>"centos", "major"=>"6", "minor"=>"5"},
    other={"platform-feature-multiprocessor-suspend"=>"1", "feature-balloon"=>"1"},
    other_config={},
    pv_drivers_up_to_date=true,
    pv_drivers_version={"major"=>"6", "minor"=>"0", "micro"=>"2", "build"=>"54078"},
    uuid="3ee0485c-19d4-a81b-e249-ce08c30303b8"
  >
2.2.0 :006 > vm = source_template.clone 'guest-metrics'
#<Fog::Compute::XenServer::Models::Server:0x007fa904487ba0>
{:uuid=>"0f0f43fe-afee-9a10-a159-752df386f37a", :allowed_operations=>["changing_dynamic_range", "changing_shadow_memory", "changing_static_range", "provision", "destroy", "export", "clone", "copy"], :current_operations=>{}, :power_state=>"Halted", :name=>"guest-metrics", :description=>"", :user_version=>"1", :is_a_template=>true, :memory_overhead=>"18874368", :memory_target=>"0", :memory_static_max=>"2147483648", :memory_dynamic_max=>"2147483648", :memory_dynamic_min=>"2147483648", :memory_static_min=>"2147483648", :vcpus_params=>{}, :vcpus_max=>"1", :vcpus_at_startup=>"1", :actions_after_shutdown=>"destroy", :actions_after_reboot=>"restart", :actions_after_crash=>"restart", :pv_bootloader=>"pygrub", :pv_kernel=>"", :pv_ramdisk=>"", :pv_args=>"", :pv_bootloader_args=>"", :pv_legacy_args=>"", :hvm_boot_policy=>"", :hvm_boot_params=>{"order"=>"c"}, :hvm_shadow_multiplier=>1.0, :platform=>{"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"}, :pci_bus=>"", :other_config=>{"instant"=>"true", "vgpu_pci"=>"", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"}, :domid=>"-1", :domarch=>"", :last_boot_cpu_flags=>{"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"}, :is_control_domain=>false, :last_booted_record=>"('struct' ('uuid' '4c61a8e3-fa0a-5872-9141-cb2af1eb6bdc') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:ade3229d-f3e0-3c7f-3f70-a2edde62ef07' 'start'))) ('power_state' 'Halted') ('name_label' 'centos65-template-no-cd (1)') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:0ab0d4d6-286d-4904-8b07-100db804d9d9')) ('VBDs' ('array' 'OpaqueRef:5f23101a-db1e-b387-4176-4bef517ffc64' 'OpaqueRef:f0f787c8-d0eb-5e61-fa83-dd1ae784ede2')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' '995403cc-d340-149b-bd96-f37343c505d8') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:afbadf9c-5372-8957-dfd2-c9f13ae48513') ('guest_metrics' 'OpaqueRef:64c88328-c2af-4bca-f030-f9405fb3bcef') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))", :recommendations=>"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>", :xenstore_data=>{"vm-data"=>""}, :ha_always_run=>false, :ha_restart_priority=>"", :is_a_snapshot=>false, :snapshot_time=>1970-01-01 00:00:00 UTC, :transportable_snapshot_id=>"", :blobs=>{}, :tags=>[], :blocked_operations=>{}, :snapshot_info=>{}, :snapshot_metadata=>"", :bios_strings=>{"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"}, :is_snapshot_from_vmpp=>false, :start_delay=>"0", :shutdown_delay=>"0", :order=>"0", :version=>"0", :generation_id=>"", :reference=>"OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463"}
 =>   <Fog::Compute::XenServer::Models::Server
    reference="OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463",
    actions_after_crash="restart",
    actions_after_reboot="restart",
    actions_after_shutdown="destroy",
    allowed_operations=["changing_dynamic_range", "changing_shadow_memory", "changing_static_range", "provision", "destroy", "export", "clone", "copy"],
    blobs={},
    blocked_operations={},
    bios_strings={"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"},
    current_operations={},
    domarch="",
    domid="-1",
    description="",
    generation_id="",
    ha_always_run=false,
    ha_restart_priority="",
    hvm_boot_params={"order"=>"c"},
    hvm_boot_policy="",
    hvm_shadow_multiplier=1.0,
    is_a_snapshot=false,
    is_a_template=true,
    is_control_domain=false,
    is_snapshot_from_vmpp=false,
    last_booted_record="('struct' ('uuid' '4c61a8e3-fa0a-5872-9141-cb2af1eb6bdc') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:ade3229d-f3e0-3c7f-3f70-a2edde62ef07' 'start'))) ('power_state' 'Halted') ('name_label' 'centos65-template-no-cd (1)') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:0ab0d4d6-286d-4904-8b07-100db804d9d9')) ('VBDs' ('array' 'OpaqueRef:5f23101a-db1e-b387-4176-4bef517ffc64' 'OpaqueRef:f0f787c8-d0eb-5e61-fa83-dd1ae784ede2')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' '995403cc-d340-149b-bd96-f37343c505d8') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:afbadf9c-5372-8957-dfd2-c9f13ae48513') ('guest_metrics' 'OpaqueRef:64c88328-c2af-4bca-f030-f9405fb3bcef') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))",
    last_boot_cpu_flags={"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"},
    memory_dynamic_max="2147483648",
    memory_dynamic_min="2147483648",
    memory_overhead="18874368",
    memory_static_max="2147483648",
    memory_static_min="2147483648",
    memory_target="0",
    name="guest-metrics",
    order="0",
    other_config={"instant"=>"true", "vgpu_pci"=>"", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"},
    pci_bus="",
    platform={"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"},
    power_state="Halted",
    pv_args="",
    pv_bootloader="pygrub",
    pv_bootloader_args="",
    pv_kernel="",
    pv_legacy_args="",
    pv_ramdisk="",
    recommendations="<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>",
    shutdown_delay="0",
    snapshot_info={},
    snapshot_metadata="",
    snapshot_time=1970-01-01 00:00:00 UTC,
    start_delay="0",
    tags=[],
    transportable_snapshot_id="",
    user_version="1",
    uuid="0f0f43fe-afee-9a10-a159-752df386f37a",
    vcpus_at_startup="1",
    vcpus_max="1",
    vcpus_params={},
    version="0",
    xenstore_data={"vm-data"=>""}
  >
2.2.0 :007 > vm.provision
#<Fog::Compute::XenServer::Models::Server:0x007fa90410ecf8>
{:uuid=>"0f0f43fe-afee-9a10-a159-752df386f37a", :allowed_operations=>["changing_dynamic_range", "changing_shadow_memory", "changing_static_range", "make_into_template", "destroy", "export", "start_on", "start", "clone", "copy", "snapshot"], :current_operations=>{}, :power_state=>"Halted", :name=>"guest-metrics", :description=>"", :user_version=>"1", :is_a_template=>false, :memory_overhead=>"18874368", :memory_target=>"0", :memory_static_max=>"2147483648", :memory_dynamic_max=>"2147483648", :memory_dynamic_min=>"2147483648", :memory_static_min=>"2147483648", :vcpus_params=>{}, :vcpus_max=>"1", :vcpus_at_startup=>"1", :actions_after_shutdown=>"destroy", :actions_after_reboot=>"restart", :actions_after_crash=>"restart", :pv_bootloader=>"pygrub", :pv_kernel=>"", :pv_ramdisk=>"", :pv_args=>"", :pv_bootloader_args=>"", :pv_legacy_args=>"", :hvm_boot_policy=>"", :hvm_boot_params=>{"order"=>"c"}, :hvm_shadow_multiplier=>1.0, :platform=>{"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"}, :pci_bus=>"", :other_config=>{"instant"=>"true", "vgpu_pci"=>"", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"}, :domid=>"-1", :domarch=>"", :last_boot_cpu_flags=>{"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"}, :is_control_domain=>false, :last_booted_record=>"('struct' ('uuid' '4c61a8e3-fa0a-5872-9141-cb2af1eb6bdc') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:ade3229d-f3e0-3c7f-3f70-a2edde62ef07' 'start'))) ('power_state' 'Halted') ('name_label' 'centos65-template-no-cd (1)') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:0ab0d4d6-286d-4904-8b07-100db804d9d9')) ('VBDs' ('array' 'OpaqueRef:5f23101a-db1e-b387-4176-4bef517ffc64' 'OpaqueRef:f0f787c8-d0eb-5e61-fa83-dd1ae784ede2')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' '995403cc-d340-149b-bd96-f37343c505d8') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:afbadf9c-5372-8957-dfd2-c9f13ae48513') ('guest_metrics' 'OpaqueRef:64c88328-c2af-4bca-f030-f9405fb3bcef') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))", :recommendations=>"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>", :xenstore_data=>{"vm-data"=>""}, :ha_always_run=>false, :ha_restart_priority=>"", :is_a_snapshot=>false, :snapshot_time=>1970-01-01 00:00:00 UTC, :transportable_snapshot_id=>"", :blobs=>{}, :tags=>[], :blocked_operations=>{}, :snapshot_info=>{}, :snapshot_metadata=>"", :bios_strings=>{"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"}, :is_snapshot_from_vmpp=>false, :start_delay=>"0", :shutdown_delay=>"0", :order=>"0", :version=>"0", :generation_id=>"", :reference=>"OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463"}
 => {}
2.2.0 :008 > vm.start
#<Fog::Compute::XenServer::Models::Server:0x007fa90424b058>
{:uuid=>"0f0f43fe-afee-9a10-a159-752df386f37a", :allowed_operations=>["changing_dynamic_range", "changing_shadow_memory", "changing_static_range", "make_into_template", "destroy", "export", "start_on", "start", "clone", "copy", "snapshot"], :current_operations=>{}, :power_state=>"Halted", :name=>"guest-metrics", :description=>"", :user_version=>"1", :is_a_template=>false, :memory_overhead=>"18874368", :memory_target=>"0", :memory_static_max=>"2147483648", :memory_dynamic_max=>"2147483648", :memory_dynamic_min=>"2147483648", :memory_static_min=>"2147483648", :vcpus_params=>{}, :vcpus_max=>"1", :vcpus_at_startup=>"1", :actions_after_shutdown=>"destroy", :actions_after_reboot=>"restart", :actions_after_crash=>"restart", :pv_bootloader=>"pygrub", :pv_kernel=>"", :pv_ramdisk=>"", :pv_args=>"", :pv_bootloader_args=>"", :pv_legacy_args=>"", :hvm_boot_policy=>"", :hvm_boot_params=>{"order"=>"c"}, :hvm_shadow_multiplier=>1.0, :platform=>{"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"}, :pci_bus=>"", :other_config=>{"instant"=>"true", "vgpu_pci"=>"", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"}, :domid=>"-1", :domarch=>"", :last_boot_cpu_flags=>{"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"}, :is_control_domain=>false, :last_booted_record=>"('struct' ('uuid' '4c61a8e3-fa0a-5872-9141-cb2af1eb6bdc') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:ade3229d-f3e0-3c7f-3f70-a2edde62ef07' 'start'))) ('power_state' 'Halted') ('name_label' 'centos65-template-no-cd (1)') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:0ab0d4d6-286d-4904-8b07-100db804d9d9')) ('VBDs' ('array' 'OpaqueRef:5f23101a-db1e-b387-4176-4bef517ffc64' 'OpaqueRef:f0f787c8-d0eb-5e61-fa83-dd1ae784ede2')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' '995403cc-d340-149b-bd96-f37343c505d8') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:afbadf9c-5372-8957-dfd2-c9f13ae48513') ('guest_metrics' 'OpaqueRef:64c88328-c2af-4bca-f030-f9405fb3bcef') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))", :recommendations=>"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>", :xenstore_data=>{"vm-data"=>""}, :ha_always_run=>false, :ha_restart_priority=>"", :is_a_snapshot=>false, :snapshot_time=>1970-01-01 00:00:00 UTC, :transportable_snapshot_id=>"", :blobs=>{}, :tags=>[], :blocked_operations=>{}, :snapshot_info=>{}, :snapshot_metadata=>"", :bios_strings=>{"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"}, :is_snapshot_from_vmpp=>false, :start_delay=>"0", :shutdown_delay=>"0", :order=>"0", :version=>"0", :generation_id=>"", :reference=>"OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463"}
#<Fog::Compute::XenServer::Models::Server:0x007fa90436a448>
{:uuid=>"0f0f43fe-afee-9a10-a159-752df386f37a", :allowed_operations=>["changing_dynamic_range", "migrate_send", "pool_migrate", "changing_VCPUs_live", "suspend", "hard_reboot", "hard_shutdown", "clean_reboot", "clean_shutdown", "pause", "checkpoint", "snapshot"], :current_operations=>{}, :power_state=>"Running", :name=>"guest-metrics", :description=>"", :user_version=>"1", :is_a_template=>false, :memory_overhead=>"18874368", :memory_target=>"2147483648", :memory_static_max=>"2147483648", :memory_dynamic_max=>"2147483648", :memory_dynamic_min=>"2147483648", :memory_static_min=>"2147483648", :vcpus_params=>{}, :vcpus_max=>"1", :vcpus_at_startup=>"1", :actions_after_shutdown=>"destroy", :actions_after_reboot=>"restart", :actions_after_crash=>"restart", :pv_bootloader=>"pygrub", :pv_kernel=>"", :pv_ramdisk=>"", :pv_args=>"", :pv_bootloader_args=>"", :pv_legacy_args=>"", :hvm_boot_policy=>"", :hvm_boot_params=>{"order"=>"c"}, :hvm_shadow_multiplier=>1.0, :platform=>{"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"}, :pci_bus=>"", :other_config=>{"vgpu_pci"=>"", "instant"=>"true", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"}, :domid=>"82", :domarch=>"", :last_boot_cpu_flags=>{"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"}, :is_control_domain=>false, :last_booted_record=>"('struct' ('uuid' '0f0f43fe-afee-9a10-a159-752df386f37a') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:c4c40705-1c9a-7c82-a7ce-c45671316daa' 'start'))) ('power_state' 'Halted') ('name_label' 'guest-metrics') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:e23be77b-657e-9125-3a94-376659e48056')) ('VBDs' ('array' 'OpaqueRef:4173464d-b920-f969-8933-5ca11d0fd419' 'OpaqueRef:98f97fa7-0322-241d-797f-f24bfeff7899')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' 'c2f1132f-b242-dac8-2208-aa4fa6c94a3f') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:34999fad-52fe-63f2-ef98-93cdc5a76914') ('guest_metrics' 'OpaqueRef:928e3398-68fd-fb28-ea62-38bc6bee9808') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))", :recommendations=>"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>", :xenstore_data=>{"vm-data"=>""}, :ha_always_run=>false, :ha_restart_priority=>"", :is_a_snapshot=>false, :snapshot_time=>1970-01-01 00:00:00 UTC, :transportable_snapshot_id=>"", :blobs=>{}, :tags=>[], :blocked_operations=>{}, :snapshot_info=>{}, :snapshot_metadata=>"", :bios_strings=>{"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"}, :is_snapshot_from_vmpp=>false, :start_delay=>"0", :shutdown_delay=>"0", :order=>"0", :version=>"0", :generation_id=>"", :reference=>"OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463"}
#<Fog::Compute::XenServer::Models::Server:0x007fa902a8b5a8>
{:uuid=>"0f0f43fe-afee-9a10-a159-752df386f37a", :allowed_operations=>["changing_dynamic_range", "migrate_send", "pool_migrate", "changing_VCPUs_live", "suspend", "hard_reboot", "hard_shutdown", "clean_reboot", "clean_shutdown", "pause", "checkpoint", "snapshot"], :current_operations=>{}, :power_state=>"Running", :name=>"guest-metrics", :description=>"", :user_version=>"1", :is_a_template=>false, :memory_overhead=>"18874368", :memory_target=>"2147483648", :memory_static_max=>"2147483648", :memory_dynamic_max=>"2147483648", :memory_dynamic_min=>"2147483648", :memory_static_min=>"2147483648", :vcpus_params=>{}, :vcpus_max=>"1", :vcpus_at_startup=>"1", :actions_after_shutdown=>"destroy", :actions_after_reboot=>"restart", :actions_after_crash=>"restart", :pv_bootloader=>"pygrub", :pv_kernel=>"", :pv_ramdisk=>"", :pv_args=>"", :pv_bootloader_args=>"", :pv_legacy_args=>"", :hvm_boot_policy=>"", :hvm_boot_params=>{"order"=>"c"}, :hvm_shadow_multiplier=>1.0, :platform=>{"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"}, :pci_bus=>"", :other_config=>{"vgpu_pci"=>"", "instant"=>"true", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"}, :domid=>"82", :domarch=>"", :last_boot_cpu_flags=>{"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"}, :is_control_domain=>false, :last_booted_record=>"('struct' ('uuid' '0f0f43fe-afee-9a10-a159-752df386f37a') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:c4c40705-1c9a-7c82-a7ce-c45671316daa' 'start'))) ('power_state' 'Halted') ('name_label' 'guest-metrics') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:e23be77b-657e-9125-3a94-376659e48056')) ('VBDs' ('array' 'OpaqueRef:4173464d-b920-f969-8933-5ca11d0fd419' 'OpaqueRef:98f97fa7-0322-241d-797f-f24bfeff7899')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' 'c2f1132f-b242-dac8-2208-aa4fa6c94a3f') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:34999fad-52fe-63f2-ef98-93cdc5a76914') ('guest_metrics' 'OpaqueRef:928e3398-68fd-fb28-ea62-38bc6bee9808') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))", :recommendations=>"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>", :xenstore_data=>{"vm-data"=>""}, :ha_always_run=>false, :ha_restart_priority=>"", :is_a_snapshot=>false, :snapshot_time=>1970-01-01 00:00:00 UTC, :transportable_snapshot_id=>"", :blobs=>{}, :tags=>[], :blocked_operations=>{}, :snapshot_info=>{}, :snapshot_metadata=>"", :bios_strings=>{"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"}, :is_snapshot_from_vmpp=>false, :start_delay=>"0", :shutdown_delay=>"0", :order=>"0", :version=>"0", :generation_id=>"", :reference=>"OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463"}
 => true
2.2.0 :009 > vm.guest_metrics
 =>   <Fog::Compute::XenServer::Models::GuestMetrics
    reference="OpaqueRef:c3e86277-348c-2bf6-d75b-396b9d947b15",
    disk=nil,
    last_updated=#<XMLRPC::DateTime:0x007fa902a2da98 @year=2015, @month=4, @day=10, @hour=3, @min=44, @sec=43>,
    live=true,
    memory={},
    networks={"0/ip"=>"10.40.26.51"},
    os_version={"name"=>"CentOS release 6.5 (Final)", "uname"=>"2.6.32-431.el6.x86_64", "distro"=>"centos", "major"=>"6", "minor"=>"5"},
    other={"platform-feature-multiprocessor-suspend"=>"1", "feature-balloon"=>"1"},
    other_config={},
    pv_drivers_up_to_date=true,
    pv_drivers_version={"major"=>"6", "minor"=>"0", "micro"=>"2", "build"=>"54078"},
    uuid="3ee0485c-19d4-a81b-e249-ce08c30303b8"
  >
2.2.0 :010 > vm.reload
#<Fog::Compute::XenServer::Models::Server:0x007fa905152df8>
{:uuid=>"0f0f43fe-afee-9a10-a159-752df386f37a", :allowed_operations=>["changing_dynamic_range", "migrate_send", "pool_migrate", "changing_VCPUs_live", "suspend", "hard_reboot", "hard_shutdown", "clean_reboot", "clean_shutdown", "pause", "checkpoint", "snapshot"], :current_operations=>{}, :power_state=>"Running", :name=>"guest-metrics", :description=>"", :user_version=>"1", :is_a_template=>false, :memory_overhead=>"18874368", :memory_target=>"2147483648", :memory_static_max=>"2147483648", :memory_dynamic_max=>"2147483648", :memory_dynamic_min=>"2147483648", :memory_static_min=>"2147483648", :vcpus_params=>{}, :vcpus_max=>"1", :vcpus_at_startup=>"1", :actions_after_shutdown=>"destroy", :actions_after_reboot=>"restart", :actions_after_crash=>"restart", :pv_bootloader=>"pygrub", :pv_kernel=>"", :pv_ramdisk=>"", :pv_args=>"", :pv_bootloader_args=>"", :pv_legacy_args=>"", :hvm_boot_policy=>"", :hvm_boot_params=>{"order"=>"c"}, :hvm_shadow_multiplier=>1.0, :platform=>{"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"}, :pci_bus=>"", :other_config=>{"vgpu_pci"=>"", "instant"=>"true", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"}, :domid=>"82", :domarch=>"", :last_boot_cpu_flags=>{"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"}, :is_control_domain=>false, :last_booted_record=>"('struct' ('uuid' '0f0f43fe-afee-9a10-a159-752df386f37a') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:c4c40705-1c9a-7c82-a7ce-c45671316daa' 'start'))) ('power_state' 'Halted') ('name_label' 'guest-metrics') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:e23be77b-657e-9125-3a94-376659e48056')) ('VBDs' ('array' 'OpaqueRef:4173464d-b920-f969-8933-5ca11d0fd419' 'OpaqueRef:98f97fa7-0322-241d-797f-f24bfeff7899')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' 'c2f1132f-b242-dac8-2208-aa4fa6c94a3f') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:34999fad-52fe-63f2-ef98-93cdc5a76914') ('guest_metrics' 'OpaqueRef:928e3398-68fd-fb28-ea62-38bc6bee9808') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))", :recommendations=>"<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>", :xenstore_data=>{"vm-data"=>""}, :ha_always_run=>false, :ha_restart_priority=>"", :is_a_snapshot=>false, :snapshot_time=>1970-01-01 00:00:00 UTC, :transportable_snapshot_id=>"", :blobs=>{}, :tags=>[], :blocked_operations=>{}, :snapshot_info=>{}, :snapshot_metadata=>"", :bios_strings=>{"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"}, :is_snapshot_from_vmpp=>false, :start_delay=>"0", :shutdown_delay=>"0", :order=>"0", :version=>"0", :generation_id=>"", :reference=>"OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463"}
 =>   <Fog::Compute::XenServer::Models::Server
    reference="OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463",
    actions_after_crash="restart",
    actions_after_reboot="restart",
    actions_after_shutdown="destroy",
    allowed_operations=["changing_dynamic_range", "migrate_send", "pool_migrate", "changing_VCPUs_live", "suspend", "hard_reboot", "hard_shutdown", "clean_reboot", "clean_shutdown", "pause", "checkpoint", "snapshot"],
    blobs={},
    blocked_operations={},
    bios_strings={"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"},
    current_operations={},
    domarch="",
    domid="82",
    description="",
    generation_id="",
    ha_always_run=false,
    ha_restart_priority="",
    hvm_boot_params={"order"=>"c"},
    hvm_boot_policy="",
    hvm_shadow_multiplier=1.0,
    is_a_snapshot=false,
    is_a_template=false,
    is_control_domain=false,
    is_snapshot_from_vmpp=false,
    last_booted_record="('struct' ('uuid' '0f0f43fe-afee-9a10-a159-752df386f37a') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:c4c40705-1c9a-7c82-a7ce-c45671316daa' 'start'))) ('power_state' 'Halted') ('name_label' 'guest-metrics') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:e23be77b-657e-9125-3a94-376659e48056')) ('VBDs' ('array' 'OpaqueRef:4173464d-b920-f969-8933-5ca11d0fd419' 'OpaqueRef:98f97fa7-0322-241d-797f-f24bfeff7899')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' 'c2f1132f-b242-dac8-2208-aa4fa6c94a3f') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:34999fad-52fe-63f2-ef98-93cdc5a76914') ('guest_metrics' 'OpaqueRef:928e3398-68fd-fb28-ea62-38bc6bee9808') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))",
    last_boot_cpu_flags={"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"},
    memory_dynamic_max="2147483648",
    memory_dynamic_min="2147483648",
    memory_overhead="18874368",
    memory_static_max="2147483648",
    memory_static_min="2147483648",
    memory_target="2147483648",
    name="guest-metrics",
    order="0",
    other_config={"vgpu_pci"=>"", "instant"=>"true", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"},
    pci_bus="",
    platform={"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"},
    power_state="Running",
    pv_args="",
    pv_bootloader="pygrub",
    pv_bootloader_args="",
    pv_kernel="",
    pv_legacy_args="",
    pv_ramdisk="",
    recommendations="<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>",
    shutdown_delay="0",
    snapshot_info={},
    snapshot_metadata="",
    snapshot_time=1970-01-01 00:00:00 UTC,
    start_delay="0",
    tags=[],
    transportable_snapshot_id="",
    user_version="1",
    uuid="0f0f43fe-afee-9a10-a159-752df386f37a",
    vcpus_at_startup="1",
    vcpus_max="1",
    vcpus_params={},
    version="0",
    xenstore_data={"vm-data"=>""}
  >
2.2.0 :011 > vm.guest_metrics
 =>   <Fog::Compute::XenServer::Models::GuestMetrics
    reference="OpaqueRef:c3e86277-348c-2bf6-d75b-396b9d947b15",
    disk=nil,
    last_updated=#<XMLRPC::DateTime:0x007fa9050ea050 @year=2015, @month=4, @day=10, @hour=3, @min=44, @sec=43>,
    live=true,
    memory={},
    networks={"0/ip"=>"10.40.26.51"},
    os_version={"name"=>"CentOS release 6.5 (Final)", "uname"=>"2.6.32-431.el6.x86_64", "distro"=>"centos", "major"=>"6", "minor"=>"5"},
    other={"platform-feature-multiprocessor-suspend"=>"1", "feature-balloon"=>"1"},
    other_config={},
    pv_drivers_up_to_date=true,
    pv_drivers_version={"major"=>"6", "minor"=>"0", "micro"=>"2", "build"=>"54078"},
    uuid="3ee0485c-19d4-a81b-e249-ce08c30303b8"
  >
2.2.0 :012 > vm = connection.servers.get vm.reference
 =>   <Fog::Compute::XenServer::Models::Server
    reference="OpaqueRef:29316f26-df58-0c70-a535-730a36a9e463",
    actions_after_crash="restart",
    actions_after_reboot="restart",
    actions_after_shutdown="destroy",
    allowed_operations=["changing_dynamic_range", "migrate_send", "pool_migrate", "changing_VCPUs_live", "suspend", "hard_reboot", "hard_shutdown", "clean_reboot", "clean_shutdown", "pause", "checkpoint", "snapshot"],
    blobs={},
    blocked_operations={},
    bios_strings={"bios-vendor"=>"Xen", "bios-version"=>"", "system-manufacturer"=>"Xen", "system-product-name"=>"HVM domU", "system-version"=>"", "system-serial-number"=>"", "hp-rombios"=>"", "oem-1"=>"Xen", "oem-2"=>"MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d"},
    current_operations={},
    domarch="",
    domid="82",
    description="",
    generation_id="",
    ha_always_run=false,
    ha_restart_priority="",
    hvm_boot_params={"order"=>"c"},
    hvm_boot_policy="",
    hvm_shadow_multiplier=1.0,
    is_a_snapshot=false,
    is_a_template=false,
    is_control_domain=false,
    is_snapshot_from_vmpp=false,
    last_booted_record="('struct' ('uuid' '0f0f43fe-afee-9a10-a159-752df386f37a') ('allowed_operations' ('array')) ('current_operations' ('struct' ('OpaqueRef:c4c40705-1c9a-7c82-a7ce-c45671316daa' 'start'))) ('power_state' 'Halted') ('name_label' 'guest-metrics') ('name_description' '') ('user_version' '1') ('is_a_template' ('boolean' '0')) ('suspend_VDI' 'OpaqueRef:NULL') ('resident_on' 'OpaqueRef:NULL') ('affinity' 'OpaqueRef:NULL') ('memory_overhead' '18874368') ('memory_target' '0') ('memory_static_max' '2147483648') ('memory_dynamic_max' '2147483648') ('memory_dynamic_min' '2147483648') ('memory_static_min' '2147483648') ('VCPUs_params' ('struct')) ('VCPUs_max' '1') ('VCPUs_at_startup' '1') ('actions_after_shutdown' 'destroy') ('actions_after_reboot' 'restart') ('actions_after_crash' 'restart') ('consoles' ('array')) ('VIFs' ('array' 'OpaqueRef:e23be77b-657e-9125-3a94-376659e48056')) ('VBDs' ('array' 'OpaqueRef:4173464d-b920-f969-8933-5ca11d0fd419' 'OpaqueRef:98f97fa7-0322-241d-797f-f24bfeff7899')) ('crash_dumps' ('array')) ('VTPMs' ('array')) ('PV_bootloader' 'pygrub') ('PV_kernel' '') ('PV_ramdisk' '') ('PV_args' '') ('PV_bootloader_args' '') ('PV_legacy_args' '') ('HVM_boot_policy' '') ('HVM_boot_params' ('struct' ('order' 'c'))) ('HVM_shadow_multiplier' ('double' '1')) ('platform' ('struct' ('timeoffset' '0') ('nx' 'false') ('acpi' 'true') ('apic' 'true') ('pae' 'true') ('viridian' 'true'))) ('PCI_bus' '') ('other_config' ('struct' ('instant' 'true') ('vgpu_pci' '') ('base_template_name' 'centos65-template') ('last_shutdown_time' '20140508T08:26:13Z') ('last_shutdown_action' 'Destroy') ('last_shutdown_initiator' 'internal') ('last_shutdown_reason' 'halted') ('mac_seed' 'c2f1132f-b242-dac8-2208-aa4fa6c94a3f') ('install-methods' 'cdrom'))) ('domid' '-1') ('domarch' '') ('last_boot_CPU_flags' ('struct' ('vendor' 'GenuineIntel') ('features' '17bee3ff-bfebfbff-00000001-2c100800'))) ('is_control_domain' ('boolean' '0')) ('metrics' 'OpaqueRef:34999fad-52fe-63f2-ef98-93cdc5a76914') ('guest_metrics' 'OpaqueRef:928e3398-68fd-fb28-ea62-38bc6bee9808') ('last_booted_record' '') ('recommendations' '<restrictions><restriction field=\\\"memory-static-max\\\" max=\\\"137438953472\\\" /><restriction field=\\\"vcpus-max\\\" max=\\\"16\\\" /><restriction property=\\\"number-of-vbds\\\" max=\\\"7\\\" /><restriction property=\\\"number-of-vifs\\\" max=\\\"7\\\" /></restrictions>') ('xenstore_data' ('struct' ('vm-data' ''))) ('ha_always_run' ('boolean' '0')) ('ha_restart_priority' '') ('is_a_snapshot' ('boolean' '0')) ('snapshot_of' 'OpaqueRef:NULL') ('snapshots' ('array')) ('snapshot_time' ('dateTime.iso8601' '19700101T00:00:00Z')) ('transportable_snapshot_id' '') ('blobs' ('struct')) ('tags' ('array')) ('blocked_operations' ('struct')) ('snapshot_info' ('struct')) ('snapshot_metadata' '') ('parent' 'OpaqueRef:NULL') ('children' ('array')) ('bios_strings' ('struct')) ('protection_policy' 'OpaqueRef:NULL') ('is_snapshot_from_vmpp' ('boolean' '0')) ('appliance' 'OpaqueRef:NULL') ('start_delay' '0') ('shutdown_delay' '0') ('order' '0') ('VGPUs' ('array')) ('attached_PCIs' ('array')) ('suspend_SR' 'OpaqueRef:NULL') ('version' '0') ('generation_id' ''))",
    last_boot_cpu_flags={"vendor"=>"GenuineIntel", "features"=>"17bee3ff-bfebfbff-00000001-2c100800"},
    memory_dynamic_max="2147483648",
    memory_dynamic_min="2147483648",
    memory_overhead="18874368",
    memory_static_max="2147483648",
    memory_static_min="2147483648",
    memory_target="2147483648",
    name="guest-metrics",
    order="0",
    other_config={"vgpu_pci"=>"", "instant"=>"true", "base_template_name"=>"centos65-template", "last_shutdown_time"=>"20140508T08:26:13Z", "last_shutdown_action"=>"Destroy", "last_shutdown_initiator"=>"internal", "last_shutdown_reason"=>"halted", "mac_seed"=>"c2f1132f-b242-dac8-2208-aa4fa6c94a3f", "install-methods"=>"cdrom"},
    pci_bus="",
    platform={"timeoffset"=>"0", "nx"=>"false", "acpi"=>"true", "apic"=>"true", "pae"=>"true", "viridian"=>"true"},
    power_state="Running",
    pv_args="",
    pv_bootloader="pygrub",
    pv_bootloader_args="",
    pv_kernel="",
    pv_legacy_args="",
    pv_ramdisk="",
    recommendations="<restrictions><restriction field=\"memory-static-max\" max=\"137438953472\" /><restriction field=\"vcpus-max\" max=\"16\" /><restriction property=\"number-of-vbds\" max=\"7\" /><restriction property=\"number-of-vifs\" max=\"7\" /></restrictions>",
    shutdown_delay="0",
    snapshot_info={},
    snapshot_metadata="",
    snapshot_time=1970-01-01 00:00:00 UTC,
    start_delay="0",
    tags=[],
    transportable_snapshot_id="",
    user_version="1",
    uuid="0f0f43fe-afee-9a10-a159-752df386f37a",
    vcpus_at_startup="1",
    vcpus_max="1",
    vcpus_params={},
    version="0",
    xenstore_data={"vm-data"=>""}
  >
2.2.0 :013 > vm.guest_metrics
 =>   <Fog::Compute::XenServer::Models::GuestMetrics
    reference="OpaqueRef:ccf2f76b-4f7e-c382-ce48-cddfe4705318",
    disk=nil,
    last_updated=#<XMLRPC::DateTime:0x007fa904156698 @year=2015, @month=4, @day=13, @hour=19, @min=42, @sec=7>,
    live=true,
    memory={},
    networks={"0/ip"=>"10.40.26.68"},
    os_version={"name"=>"CentOS release 6.5 (Final)", "uname"=>"2.6.32-431.el6.x86_64", "distro"=>"centos", "major"=>"6", "minor"=>"5"},
    other={"platform-feature-multiprocessor-suspend"=>"1", "feature-balloon"=>"1"},
    other_config={},
    pv_drivers_up_to_date=true,
    pv_drivers_version={"major"=>"6", "minor"=>"0", "micro"=>"2", "build"=>"54078"},
    uuid="322d2efa-0de4-0181-e016-ec4d2a6af154"
  >
plribeiro3000 commented 9 years ago

Wow. What a nice debugging here. Thank you for the time to do it @djaara . I will take a look at it.

plribeiro3000 commented 9 years ago

@djaara After a fast look, this seems to be related to the association features in fog-core. Once i get a chance i will take a look at it. Sorry for the delay.

plribeiro3000 commented 6 years ago

This was fixed in fog/fog-core#218.

Feel free to reopen or comment it back if you still have an issue.

Thanks!