virt-install: Use virtio-win drivers if possible

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 <crobinso@redhat.com>
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
Fabiano Fidêncio 2019-07-31 15:50:24 +02:00 committed by Cole Robinson
parent e7704d3c8b
commit b6e4e4538d

View File

@ -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)