---
src/vbox/vbox_driver.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/vbox/vbox_driver.c b/src/vbox/vbox_driver.c
index c4037f8..3bc29d8 100644
--- a/src/vbox/vbox_driver.c
+++ b/src/vbox/vbox_driver.c
@@ -61,6 +61,9 @@ extern virStorageDriver vbox40StorageDriver;
extern virDriver vbox41Driver;
extern virNetworkDriver vbox41NetworkDriver;
extern virStorageDriver vbox41StorageDriver;
+extern virDriver vbox42Driver;
+extern virNetworkDriver vbox42NetworkDriver;
+extern virStorageDriver vbox42StorageDriver;
static virDriver vboxDriverDummy;
@@ -124,6 +127,11 @@ int vboxRegister(void) {
driver = &vbox41Driver;
networkDriver = &vbox41NetworkDriver;
storageDriver = &vbox41StorageDriver;
+ } else if (uVersion >= 4001051 && uVersion < 4002051) {
+ VIR_DEBUG("VirtualBox API version: 4.2");
+ driver = &vbox42Driver;
+ networkDriver = &vbox42NetworkDriver;
+ storageDriver = &vbox42StorageDriver;
} else {
VIR_DEBUG("Unsupported VirtualBox API version: %u", uVersion);
}
--
1.7.1