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

Methods

Attributes

password  [RW] 
private_key  [W] 
private_key_path  [W] 
public_key  [W] 
public_key_path  [W] 
username  [W] 

Public Instance methods

Fussion doesn‘t have the concept of templates so one just clones regular VMs.

Destroy, deletes the VM from the local disk but only hard stops the VM before doing so if you set :force to true.

Halt and poweroff are just synonyms for stop.

We obtain the first ipaddress. This should generally be a safe assumption for Fusion. Even if an address is provided via NAT, bridge, or host only it will by accessible from the host machine the VM resides on.

Collecting all mac_addresses the VM has...mostly just because we are doing the same thing for the vSphere provider.

Path to the VM‘s vmx file on the local disk.

The power state of the VM is commonly going to be three values; running, not running, or suspended.

Just setting local versions of some variables that were going to use for SSH operations.

Keeping these three methods around for API compatibility reasons. Makes the vmfusion provider function similar to cloud providers and the vsphere provider. Future goal is to add an actual private and public concept. Needs changes to fission and a determination what is a public or private address here; bridge, nat, host-only.

Attempt a graceful shutdown, wait for the VM to completely shutdown and then start it again.

Resuming from suspend is the same thing as start to Fusion.

There is currently no documented model of creating VMs from scratch sans Fusion‘s wizard.

Sets up a new SSH key on the VM so one doesn‘t need to use a password ever again.

This is a graceful shutdown but Fusion is only capable of a graceful shutdown if tools are installed. Fusion does the right thing though and if graceful can‘t be initiated it just does a hard stop.

Simply spawn an SSH session.

Start is pretty self explanatory...if you pass :headless as true you won‘t get a console on launch.

Stop is a hard stop, like pulling out the power cord.

Sets up a conveinent way to SSH into a Fusion VM using credentials stored in your .fog file.

[Validate]