diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2019-07-31 15:50:24 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-10-02 11:58:34 -0400 |
commit | b6e4e4538dce41844177421de4d2f10f151c1086 (patch) | |
tree | fddc98a49cba14500c04b32d92d1de9602fd6096 /virt-install | |
parent | e7704d3c8bfe134584d84263b69c8cad18503892 (diff) | |
download | virt-manager-b6e4e4538dce41844177421de4d2f10f151c1086.tar.gz |
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>
Diffstat (limited to 'virt-install')
-rwxr-xr-x | virt-install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/virt-install b/virt-install index 022f947d..82b7e537 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) |