Class Fog::Compute::Libvirt::Server
In: lib/fog/libvirt/models/compute/server.rb
Parent: Fog::Model

Methods

Included Modules

Fog::Compute::LibvirtUtil

Attributes

iso_dir  [RW]  The following attributes are only needed when creating a new vm
iso_file  [RW]  The following attributes are only needed when creating a new vm
network_bridge_name  [RW] 
network_interface_type  [RW] 
network_nat_network  [RW] 
password  [RW] 
private_key  [W] 
private_key_path  [W] 
public_key  [W] 
public_key_path  [W] 
raw  [R] 
username  [W] 
volume_allocation  [RW] 
volume_capacity  [RW] 
volume_format_type  [RW] 
volume_name  [RW] 
volume_path  [RW] 
volume_pool_name  [RW] 
volume_template_name  [RW] 

Public Class methods

Can be created by passing in :xml => "<xml to create domain/server>" or by providing :template_options => {

               :name => "", :cpus => 1, :memory_size => 256 , :volume_template
  :}

@returns server/domain created

Public Instance methods

 This retrieves the ip address of the mac address
 It returns an array of public and private ip addresses
 Currently only one ip address is returned, but in the future this could be multiple
 if the server has multiple network interface

TODO: move this into the util class

TODO move all of this to the volume class

In libvirt a destroy means a hard power-off of the domain In fog a destroy means the remove of a machine

Alias for poweroff

Retrieves the mac address from parsing the XML of the domain

In libvirt a destroy means a hard power-off of the domain In fog a destroy means the remove of a machine

[Validate]