Package modules :: Package machinery :: Module vmware :: Class VMware
[hide private]
[frames] | no frames]

Class VMware

source code

                           object --+    
                                    |    
lib.cuckoo.common.abstracts.Machinery --+
                                        |
                                       VMware

Virtualization layer for VMware Workstation using vmrun utility.

Instance Methods [hide private]
 
_initialize_check(self)
Check for configuration file and vmware setup.
source code
 
_check_vmx(self, host)
Checks a vmx file
source code
 
_check_snapshot(self, host, snapshot)
Checks snapshot existance.
source code
 
start(self, label)
Start a virtual machine.
source code
 
stop(self, label)
Stops a virtual machine.
source code
 
_revert(self, host, snapshot)
Revets machine to snapshot.
source code
 
_is_running(self, host)
Checks if host is running.
source code
 
_parse_label(self, label)
Parse configuration file label.
source code
 
_get_host_and_snapshot(self, label)
Get host and snapshot for a given label New configuration files have a specific 'snapshot' option, while older configuration files have a label in the format: 'file.vmx,Snapshot'.
source code

Inherited from lib.cuckoo.common.abstracts.Machinery: __init__, acquire, availables, dump_memory, initialize, machines, release, running, set_options, set_status, shutdown

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_initialize_check(self)

source code 

Check for configuration file and vmware setup.

Raises:
Overrides: lib.cuckoo.common.abstracts.Machinery._initialize_check

_check_vmx(self, host)

source code 

Checks a vmx file

Parameters:
  • host - file path
Raises:

_check_snapshot(self, host, snapshot)

source code 

Checks snapshot existance.

Parameters:
  • host - file path
  • snapshot - snapshot name
Raises:

start(self, label)

source code 

Start a virtual machine.

Parameters:
  • label - virtual machine identifier: path to vmx file.
Raises:
Overrides: lib.cuckoo.common.abstracts.Machinery.start

stop(self, label)

source code 

Stops a virtual machine.

Parameters:
  • label - virtual machine identifier: path to vmx file (in older configurations it also includes current snapshot name).
Raises:
Overrides: lib.cuckoo.common.abstracts.Machinery.stop

_revert(self, host, snapshot)

source code 

Revets machine to snapshot.

Parameters:
  • host - file path
  • snapshot - snapshot name
Raises:

_is_running(self, host)

source code 

Checks if host is running.

Parameters:
  • host - file path
Returns:
running status

_parse_label(self, label)

source code 

Parse configuration file label.

Parameters:
  • label - configuration option from config file
Returns:
tuple of host file path and snapshot name

_get_host_and_snapshot(self, label)

source code 

Get host and snapshot for a given label New configuration files have a specific 'snapshot' option, while older configuration files have a label in the format: 'file.vmx,Snapshot'.

Parameters:
  • label - configuration option from config file