modules.machinery.vmware.VMware

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, vmx_path) Checks whether a vmx file exists and is valid. | source code
_check_snapshot(self, vmx_path, snapshot) Checks snapshot existance. | source code
start(self, vmx_path, task) Start a virtual machine. | source code
stop(self, vmx_path) Stops a virtual machine. | source code
_revert(self, vmx_path, snapshot) Revets machine to snapshot. | source code
_is_running(self, vmx_path) Checks if virtual machine is running. | source code
_snapshot_from_vmx(self, vmx_path) Get snapshot for a given vmx file. | source code
dump_memory(self, vmx_path, path) Take a memory dump of the machine. | source code
Inherited from `lib.cuckoo.common.abstracts.Machinery`: `__init__`, `acquire`, `availables`, `initialize`, `machines`, `pcap_path`, `release`, `running`, `set_options`, `set_status`, `shutdown` Inherited from `lib.cuckoo.common.abstracts.Machinery` (private): `_get_resultserver_port`, `_initialize`, `_list`, `_wait_status` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| LABEL = `"vmx_path"`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### _initialize_check(self) | source code
Check for configuration file and vmware setup. Raises: `CuckooMachineError` - if configuration is missing or wrong. Overrides: lib.cuckoo.common.abstracts.Machinery._initialize_check

### _check_vmx(self, vmx_path) | source code
Checks whether a vmx file exists and is valid. Parameters: `vmx_path` - path to vmx file Raises: `CuckooMachineError` - if file not found or not ending with .vmx

### _check_snapshot(self, vmx_path, snapshot) | source code
Checks snapshot existance. Parameters: `vmx_path` - path to vmx file `snapshot` - snapshot name Raises: `CuckooMachineError` - if snapshot not found

### start(self, vmx_path, task) | source code
Start a virtual machine. Parameters: `vmx_path` - path to vmx file. `task` - task object. Raises: `CuckooMachineError` - if unable to start. Overrides: lib.cuckoo.common.abstracts.Machinery.start

### stop(self, vmx_path) | source code
Stops a virtual machine. Parameters: `vmx_path` - path to vmx file Raises: `CuckooMachineError` - if unable to stop. Overrides: lib.cuckoo.common.abstracts.Machinery.stop

### _revert(self, vmx_path, snapshot) | source code
Revets machine to snapshot. Parameters: `vmx_path` - path to vmx file `snapshot` - snapshot name Raises: `CuckooMachineError` - if unable to revert

### _is_running(self, vmx_path) | source code
Checks if virtual machine is running. Parameters: `vmx_path` - path to vmx file Returns: running status

### _snapshot_from_vmx(self, vmx_path) | source code
Get snapshot for a given vmx file. Parameters: `vmx_path` - configuration option from config file

### dump_memory(self, vmx_path, path) | source code
Take a memory dump of the machine. Parameters: `path` - path to where to store the memory dump. Overrides: lib.cuckoo.common.abstracts.Machinery.dump_memory