Guest User

vdautomount report

a guest
Jan 17th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. $ python2
  2. Python 2.7.9 (default, Dec 11 2014, 04:42:00)
  3. [GCC 4.9.2] on linux2
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> from vboxapi import VirtualBoxManager
  6. >>> vbm = VirtualBoxManager (None, None)
  7. >>> vbm.vbox.getMachine ('xp')
  8. Traceback (most recent call last):
  9. File "<stdin>", line 1, in <module>
  10. File "/opt/VirtualBox/sdk/bindings/xpcom/python/xpcom/client/__init__.py", line 384, in __getattr__
  11. raise AttributeError, "XPCOM component '%s' has no attribute '%s'" % (self._object_name_, attr)
  12. AttributeError: XPCOM component '@virtualbox.org/VirtualBox;1' has no attribute 'getMachine'
  13. >>> vbm.vbox.findMachine ('xp')
  14. <XPCOM component '<unknown>' (implementing IMachine)>
  15. >>> machine = vbm.vbox.findMachine('xp')
  16. >>> machine.getMediumAttachments()
  17. [<XPCOM component '<unknown>' (implementing IMediumAttachment)>, <XPCOM component '<unknown>' (implementing IMediumAttachment)>]
  18. >>> exit()
  19.  
  20. $ VBoxManage showvminfo xp |grep -i uuid
  21. UUID: b54c34ae-f0fe-4da7-9fc2-93bba7efb5b1
  22. Hardware UUID: b54c34ae-f0fe-4da7-9fc2-93bba7efb5b1
Advertisement
Add Comment
Please, Sign In to add comment