class OnappMarket::OnApp::VM

Represents an OnApp CP VM as created by the OnApp Market

Note

Parameters such as data_store_group_primary_id, hypervisor_group_id etc. are not specified here and will be filled in by the market based on it’s knowledge of the resource (HypervisorZone) supplied to the market

Constants

TYPE

OnApp VM type

Attributes

cpu_shares[RW]

required parameter. For KVM hypervisor the CPU priority value is always 100. For XEN, set a custom value. The default value for XEN is 1.

disk_type_of_format[RW]

type of filesystem - ext4. For Linux templates, you can choose ext4 file system instead of the ext3 default one.

identifier[RW]

Note virtual_machine_id wil be stored in @local_id Identifier of virtual machine

initial_root_password[RW]

the root password for a VM. Optional, if none specified, the system will provide a random password. It can consist of 6-32 characters, letters [A-Za-z], digits [0-9], dash [ - ] and lower dash [ _ ]. You can use both lowercase and uppercase letters.

initial_root_password_encryption_key[RW]

specify the password encryption passphrase.

template_id[RW]

the ID of a template from which a VM should be built

Public Class Methods

new(hash={}) click to toggle source

Create a generic VM resource

Attributes

  • hash - Hash of attributes to apply

# File lib/onapp_market/onapp/vm.rb, line 47
def initialize(hash={})
  super(hash, TYPE)
  restrict [:initial_root_password,:initial_root_password_encryption_key, :identifier], [:admin, :supplier, :ro_admin]
end