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