always use virtio driver for disks
This commit is contained in:
parent
2809799242
commit
6e996b7252
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
extra_disks: >-
|
extra_disks: >-
|
||||||
{% if datadisk_size is defined %}
|
{% if datadisk_size is defined %}
|
||||||
{% for num in range(datadisk_size|count) %}
|
{% for num in range(datadisk_size|count) %}
|
||||||
--disk /srv/libvirt/data/{{ inventory_hostname }}.{{ letters[num] }}.img,cache=none,format=raw,size={{ datadisk_size[num] }}
|
--disk /srv/libvirt/data/{{ inventory_hostname }}.{{ letters[num] }}.img,cache=none,format=raw,bus=virtio,size={{ datadisk_size[num] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
virt_install_network: >-
|
virt_install_network: >-
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
--graphics none --boot useserial=on --serial pty --noautoconsole \
|
--graphics none --boot useserial=on --serial pty --noautoconsole \
|
||||||
--controller usb,model=none --sound none --memory {{ mem_size }} \
|
--controller usb,model=none --sound none --memory {{ mem_size }} \
|
||||||
--vcpus {{ num_cpus }} --cpu host-passthrough \
|
--vcpus {{ num_cpus }} --cpu host-passthrough \
|
||||||
--disk /srv/libvirt/os/{{ inventory_hostname }}.a.img,cache=none,format=raw,size={{ dsk_size }} \
|
--disk /srv/libvirt/os/{{ inventory_hostname }}.a.img,cache=none,format=raw,bus=virtio,size={{ dsk_size }} \
|
||||||
{{ extra_disks }} --initrd-inject {{ tmpdir.path }}/include.ks \
|
{{ extra_disks }} --initrd-inject {{ tmpdir.path }}/include.ks \
|
||||||
{{ virt_install_network }} \
|
{{ virt_install_network }} \
|
||||||
{{ virt_install_os_args }}
|
{{ virt_install_os_args }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue