sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

VBoxError: Method Machine::restoreSnapshot is not implemented #115

Closed qd452 closed 6 years ago

qd452 commented 6 years ago

Error Happens when I was trying to call the vm.restore_snapshot method, below is the error traceback,

vm.restore_snapshot(snapshot=vm.current_snapshot)
Traceback (most recent call last):

  File "<ipython-input-17-9be4a1e44dc9>", line 1, in <module>
    vm.restore_snapshot(snapshot=vm.current_snapshot)

  File "C:\WinPython3.6.5_64bit\python-3.6.5.amd64\lib\site-packages\virtualbox\library_ext\machine.py", line 211, in restore_snapshot
    return super(IMachine, self).restore_snapshot(snapshot)

  File "C:\WinPython3.6.5_64bit\python-3.6.5.amd64\lib\site-packages\virtualbox\library.py", line 14277, in restore_snapshot
    in_p=[snapshot])

  File "C:\WinPython3.6.5_64bit\python-3.6.5.amd64\lib\site-packages\virtualbox\library_base.py", line 186, in _call
    return self._call_method(method, in_p=in_p)

  File "C:\WinPython3.6.5_64bit\python-3.6.5.amd64\lib\site-packages\virtualbox\library_base.py", line 213, in _call_method
    raise errobj

VBoxError: Method Machine::restoreSnapshot is not implemented

Is it because that the vboxapi didn't actually implement this method?