Skip to content

Commit

Permalink
LibVirt machinery should create the KVM domain
Browse files Browse the repository at this point in the history
Currently, LibVirt machinery can determine the snapshot and revert
the VM state to it, but it jumps straight to waiting for a state
change without actually issuing a create call to the domain being
used.

Add a single line to call self.vms[label].create() after resolving
the snapshot state and prior to entering the wait state.
  • Loading branch information
RageLtMan committed Nov 26, 2016
1 parent fcdff3e commit bbd5020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cuckoo/common/abstracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def start(self, label):
self._disconnect(conn)
raise CuckooMachineError("No snapshot found for virtual machine "
"{0}".format(label))

self.vms[label].create()
# Check state.
self._wait_status(label, self.RUNNING)

Expand Down

0 comments on commit bbd5020

Please sign in to comment.