File tree Expand file tree Collapse file tree
cloudify_libvirt/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 <controller type =" pci" index =" 0" model =" pci-root" >
1919 <alias name =" pci.0" />
2020 </controller >
21- <controller type =" ide " index =" 0" >
22- <alias name =" ide0 " />
23- <address function = " 0x1 " type =" pci" domain =" 0x0000" slot =" 0x01 " bus = " 0x00 " />
21+ <controller type =" scsi " index =" 0" model = " virtio-scsi " >
22+ <alias name =" scsi0 " />
23+ <address type =" pci" domain =" 0x0000" bus = " 0x00 " slot =" 0x05 " function = " 0x0 " />
2424 </controller >
2525 <emulator >/usr/bin/qemu-system-x86_64</emulator >
2626 {% for network in networks %}
4444 <disk device =" disk" type =" file" >
4545 <target dev =" {{ disk.dev }}" bus =" {{ disk.bus }}" />
4646 <source file =" {{ disk.file }}" />
47- <driver type =" {{ disk.type }}" name = " qemu " />
47+ <driver type =" {{ disk.type }}" />
4848 </disk >
4949 {% endfor %}
5050 </devices >
5151 <on_crash >restart</on_crash >
5252 <on_reboot >restart</on_reboot >
53- <vcpu placement =" static" >1 </vcpu >
53+ <vcpu placement =" static" >{% if vcpu is defined %}{{ vcpu }}{% else %}1{% endif %} </vcpu >
5454 <features >
5555 <pae />
5656 <acpi />
Original file line number Diff line number Diff line change 2020 disks = ctx .source .instance .runtime_properties ["params" ]['disks' ]
2121
2222 disks .append ({
23- 'bus' : 'ide ' ,
24- 'dev' : 'hda ' ,
23+ 'bus' : 'scsi ' ,
24+ 'dev' : 'sda ' ,
2525 'file' : ctx .target .instance .runtime_properties .get ('vm_image' ),
2626 'type' : 'qcow2'
2727 })
2828
2929 disks .append ({
30- 'bus' : 'ide ' ,
31- 'dev' : 'hdb ' ,
30+ 'bus' : 'scsi ' ,
31+ 'dev' : 'sdb ' ,
3232 'file' : ctx .target .instance .runtime_properties .get ('vm_cloudinit' ),
3333 'type' : 'raw'
3434 })
Original file line number Diff line number Diff line change 5353 <disk device =" disk" type =" file" >
5454 <target dev =" {{ disk.dev }}" bus =" {{ disk.bus }}" />
5555 <source file =" {{ disk.file }}" />
56- <driver type =" {{ disk.type }}" name = " qemu " />
56+ <driver type =" {{ disk.type }}" />
5757 </disk >
5858 {% endfor %}
5959 </devices >
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ node_templates:
7373 create :
7474 inputs :
7575 params :
76+ vcpu : 2
7677 memmory_size : 524288
7778 networks :
7879 - network : { get_attribute: [common_network, resource_id] }
You can’t perform that action at this time.
0 commit comments