[PATCH] Added basic support for Virtio in Windows guests in Oz.

Luis Fernandez Alvarez luis.fernandez.alvarez at cern.ch
Mon Nov 5 08:08:23 UTC 2012


The Windows VirtIO Drivers allows Microsoft Windows guests to be
installed using virtio devices. In order to  make Oz support this
case, it's proposed to modify the class Windows.py to get the
diskbus and nicmodel from the configuration file. The performance
boost installing Microsoft Windows guests is remarkable.
---
 oz/Windows.py |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/oz/Windows.py b/oz/Windows.py
index ddc3e7f..ee4a266 100644
--- a/oz/Windows.py
+++ b/oz/Windows.py
@@ -33,8 +33,16 @@ class Windows(oz.Guest.CDGuest):
     Shared Windows base class.
     """
     def __init__(self, tdl, config, output_disk):
-        oz.Guest.CDGuest.__init__(self, tdl, config, output_disk, "rtl8139",
-                                  "localtime", "usb", None, True, False)
+        diskbus = oz.ozutil.config_get_key(config,
+                                           'libvirt',
+                                           'diskbus',
+                                           'ide')
+        nicmodel = oz.ozutil.config_get_key(config,
+                                            'libvirt',
+                                            'nicmodel',
+                                            'rtl8139')
+        oz.Guest.CDGuest.__init__(self, tdl, config, output_disk, nicmodel,
+                                  "localtime", "usb", diskbus, True, False)
 
         if self.tdl.key is None:
             raise oz.OzException.OzException("A key is required when installing Windows")
-- 
1.7.1




More information about the aeolus-devel mailing list