From b6e4e4538dce41844177421de4d2f10f151c1086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 31 Jul 2019 15:50:24 +0200 Subject: [PATCH] virt-install: Use virtio-win drivers if possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's ensure the Windows guests being installed through unattended installations, which are able to have pre installable drivers intalled, will use virtio devices when possible. Reviewed-by: Cole Robinson Signed-off-by: Fabiano FidĂȘncio --- virt-install | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/virt-install b/virt-install index 022f947d4..82b7e5373 100755 --- a/virt-install +++ b/virt-install @@ -470,6 +470,12 @@ def set_cli_defaults(options, guest): if guest.os.is_container(): return + if (options.unattended and + guest.osinfo.is_windows() and + guest.osinfo.supports_unattended_drivers(guest.os.arch)): + guest.add_extra_drivers( + guest.osinfo.get_pre_installable_devices(guest.os.arch)) + res = guest.osinfo.get_recommended_resources() storage = res.get_recommended_storage(guest.os.arch) ram = res.get_recommended_ram(guest.os.arch)