mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-04 17:47:19 +03:00
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:
parent
e7704d3c8b
commit
b6e4e4538d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user