Set cache mode for target installation disk to unsafe for better performance. Index: virt-manager-2.0.0/virtinst/installer.py =================================================================== --- virt-manager-2.0.0.orig/virtinst/installer.py +++ virt-manager-2.0.0/virtinst/installer.py @@ -294,10 +294,21 @@ class Installer(object): guest.os.kernel_args, guest.on_reboot) = data def _get_install_xml(self, guest): + # At install time set the target disk to 'unsafe' for + # better performance if the target is not a block device + saved_cache = "None" + if guest.devices.disk: + target_disk = guest.devices.disk[0] + saved_cache = target_disk.driver_cache + if target_disk.type != DeviceDisk.TYPE_BLOCK: + target_disk.driver_cache = DeviceDisk.CACHE_MODE_UNSAFE + data = self._prepare_get_install_xml(guest) try: self._alter_bootconfig(guest) ret = guest.get_xml() + if saved_cache != "None": + target_disk.driver_cache = saved_cache return ret finally: self._remove_install_cdrom_media(guest)