I have read about disk profiles for salt-virt. I have created a disk profile accordingly.
virt.disk:
default:
- system:
size: 8192
kmaster:
- system:
size: 40000
knode:
- system:
size: 40000
- data:
size: 80000
I understand that when I create a vm now via salt virt.init
salt 'myminion' virt.init knode20.localdomain ${NODE_CPU} ${NODE_MEM} salt://files/images/centos7-salt.qcow2 install=False start=True seed=True nic='default' disk=knode enable_vnc=True
, the system disk image will be a seeded version of the disk image I provide via the salt://files/images uri. However I am not clear on how the second disk (my data disk) shoould get handled, I don't think salt virt.init will do a qemu-img create for example. Can I pass a list of source images in the call to virt.init (one for system, one for data).
Or do I just have to add the second disk manually later (uin which case what is the point of the disk profile?)