note_addAdd Question
mode_editWrite Article
notificationsNotifications
0

Controlling virtualbox via com from python in Python Programming Language?

Asked by: Tyagaia Ganesan
rate_review
mode_edit
Edit
rss_feed
report
Report

Logged in user is eligible to submit a report! Login

Available Answers: 1

Siddhi Kapur (Planning Technician Acquisitions Process Improvements Information Security) From: Nashik/India
"

The problem is that the object returned by FindMachine("kubuntu") does not support the IDispatch interface, and win32com does not support that.

"

You could use my comtypes package http://starship.python.net/crew/theller/comtypes/ for that, but you need to patch the version in the repository to make it work with the VirtualBox type libraries.

"

Here's a demo session:

"
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32"Type "help", "copyright", "credits" or "license" for more information.">>> from comtypes.client import CreateObject">>> box = CreateObject("VirtualBox.VirtualBox")">>> m = box.FindMachine("Fedora")">>> print m.State"4">>> print m.CpuCount"1">>> print m.Name"Fedora">>>"
"

And here is the patch that you need:

"
Index: automation.py"==================================================================="--- automation.py   (revision 507)"+++ automation.py   (working copy)"@@ -753,6 +753,8 @@"     c_float: VT_R4,"     c_double: VT_R8,""+    c_ulonglong: VT_I8,"+"     VARIANT_BOOL: VT_BOOL,""     BSTR: VT_BSTR,"
"
thumb_up4
chatComment
rss_feedFollow
reportReport

Logged in user is eligible to submit a report! Login

Logged in user is eligible to submit a comment! Login



More Interesting Questions


#Question# How to python datetime milliseconds (Python Programing Language)

#Answer#

Reshma Sms answered


1
2
3
4
5
6
7
Source: Code Grepper

#Question# How to www.pd.date_range (Python Programing Language)

#Answer#

S aehdj answered


1
2
3
4
5
Source: Code Grepper

#Question# How to python import graphviz (Python Programing Language)

#Answer#

Daneel mrjt answered


1
Source: Code Grepper

#Question# How to merge multiple excel workssheets into a single dataframe (Python Programing Language)

#Answer#

Subham huttm answered


1
Source: Code Grepper

#Question# How to python merge using or statement (Python Programing Language)

#Answer#

Sushant Content answered


1
2
3
4
5
6
7
8
9
10
11
Source: Code Grepper

#Question# How to Logistic Regression with a Neural Network mindset python example (Python Programing Language)

#Answer#

Deepika Kam answered


1
2
3
4
5
6
Source: Code Grepper

#Question# How to celery periodic tasks (Python Programing Language)

#Answer#

Amit Merry answered


1
2
Source: Code Grepper

#Question# How to Wireframes and Surface Plots (Python Programing Language)

#Answer#

Khan Asma answered


1
2
3
4
5
Source: Code Grepper

#Question# How to generator expressions python (Python Programing Language)

#Answer#

S Bashar answered


1
2
3
4
Source: Code Grepper

#Question# How to should i learn python or javascript (Python Programing Language)

#Answer#

ique Alter answered


1
Source: Code Grepper

#Question# How to python timedelta to seconds (Python Programing Language)

#Answer#

yszq Kehar answered


1
2
Source: Code Grepper

#Question# How to python multiple loops at once (Python Programing Language)

#Answer#

Al dnrnorb answered


1
2
3
Source: Code Grepper

#Question# How to Ecrire un code permettant de changer les valeurs de la colonne avec ces deux labels python. (Python Programing Language)

#Answer#

Anthony uuwx answered


1
2
3
Source: Code Grepper

#Question# How to python get volume free space (Python Programing Language)

#Answer#

Nitesh iqgic answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Source: Code Grepper

#Question# How to list attribute append read only python (Python Programing Language)

#Answer#

eavzr Farooq answered


1
Source: Code Grepper

#Question# How to convert timezone python (Python Programing Language)

#Answer#

Sandeep Das answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Source: Code Grepper

#Question# How to django filter by category (Python Programing Language)

#Answer#

Biren Sahil answered


1
Source: Code Grepper

#Question# How to cannot be loaded because running scripts is disabled on this system (Python Programing Language)

#Answer#

Abiodun fhbg answered


1
2
Source: Code Grepper

#Question# How to Python bytes (Python Programing Language)

#Answer#

twwsqe Magdy answered


1
2
3
4
5
Source: Code Grepper

#Question# How to groupby count pandas (Python Programing Language)

#Answer#

Sofia Levi answered


1
Source: Code Grepper

#Question# How to SQL (Python Programing Language)

#Answer#

Kalsi Carla answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Source: Code Grepper

#Question# How to how to have framer read json timestamps (Python Programing Language)

#Answer#

Madhurima beivn answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
Source: Code Grepper

#Question# How to pandas dataframe get number of columns (Python Programing Language)

#Answer#

Kamphotography Hunt answered


1
2
3
4
5
Source: Code Grepper

#Question# How to python sha256 crypt decrypt (Python Programing Language)

#Answer#

Nabeel Aziz answered


1
Source: Code Grepper

#Question# How to pandas create dataframe from list of lists (Python Programing Language)

#Answer#

Nikolovski Lakshmi answered


1
2
3
4
5
6
7
8
9
10
11
12
Source: Code Grepper

#Question# How to unicodeescape python path error (Python Programing Language)

#Answer#

Unmol vaoxgnaw answered


1
Source: Code Grepper

#Question# How to nums: List[int] in python function (Python Programing Language)

#Answer#

Celimon zsurpl Technoid answered


1
2
3
4
5
6
7
8
9
Source: Code Grepper

#Question# How to gradient ascent algorithm python (Python Programing Language)

#Answer#

Of Kenneth answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Source: Code Grepper

#Question# How to latest version of python (Python Programing Language)

#Answer#

Basit fkdvxdf Alan answered


1
2
3
4
Source: Code Grepper

#Question# How to python discord (Python Programing Language)

#Answer#

Nabil jycnjat VoxyTalksy answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Source: Code Grepper

#Question# How to python post np.array object (Python Programing Language)

#Answer#

rnhrycd Wadhwa answered


1
2
3
4
5
Source: Code Grepper

#Question# How to foreignkey as users from a user group django (Python Programing Language)

#Answer#

Sms Harrison answered


1
2
Source: Code Grepper

#Question# How to table to ascii python (Python Programing Language)

#Answer#

uzgugtjo Ivanov answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Source: Code Grepper

#Question# How to requests save data to disk (Python Programing Language)

#Answer#

Review Jacob answered


1
2
3
4
5
6
7
8
9
10
11
12
Source: Code Grepper

#Question# How to pandas rename specific column (Python Programing Language)

#Answer#

Johnson Zaheer answered


1
Source: Code Grepper

#Question# How to how to use + with strings (Python Programing Language)

#Answer#

Digant Jhaveri answered


1
2
3
4
5
6
7
8
9
10
11
12
Source: Code Grepper

#Question# How to insert column at specific position in pandas dataframe (Python Programing Language)

#Answer#

Daily Ahsan answered


1
2
3
Source: Code Grepper

#Question# How to python difference between multiprocessing pool and threadpool (Python Programing Language)

#Answer#

alsunpoo Roy answered


1
2
3
4
5
6
7
Source: Code Grepper

#Question# How to convert pdf to excel python (Python Programing Language)

#Answer#

Rathore epspm Kaits answered


1
2
3
4
5
6
7
8
9
10
11
Source: Code Grepper

#Question# How to python replace (Python Programing Language)

#Answer#

Anxari Srinivasan answered


1
2
3
4
5
Source: Code Grepper

#Question# How to w+ mode in python (Python Programing Language)

#Answer#

Wahba Electronics answered


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Source: Code Grepper

#Question# How to summation django queryset (Python Programing Language)

#Answer#

ayyzov Saluja answered


1
2
3
4
5
Source: Code Grepper