<div dir="ltr"><div><div><div><div><div><div><div>I have some troubles starting a VM with cloud-init via the ovirtsdk4.<br><br></div>&lt;snippet&gt;<br>vm = vms_service.list(search=vm_name)[0]<br>vm_service = vms_service.vm_service(<a href="http://vm.id">vm.id</a>)<br><br>vm_service.start(<br>    types.Action(<br>        use_cloud_init=True,<br>    ),<br>    types.Vm(<br>        types.Initialization(<br>            regenerate_ssh_keys=True,<br>            host_name=vm_fqdn,<br>            nic_configurations=[<br>                types.NicConfiguration(<br>                    boot_protocol=types.BootProtocol.STATIC,<br>                    name=&#39;eth0&#39;,<br>                    on_boot=True,<br>                    ip=types.Ip(<br>                        address=vm_address,<br>                        netmask=vm_netmask,<br>                        gateway=vm_gateway,<br>                    ),<br>                ),<br>            ],<br>        ),<br>    ),<br>)<br></div>&lt;/snippet&gt;<br><br></div>Which will result in:<br>Traceback (most recent call last):<br>  File &quot;./create_vm.py&quot;, line 94, in &lt;module&gt;<br>    gateway=vm_gateway,<br>  File &quot;/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py&quot;, line 18655, in start<br>    Writer.write_boolean(writer, &#39;async&#39;, async)<br>  File &quot;/usr/lib64/python2.7/site-packages/ovirtsdk4/writer.py&quot;, line 52, in write_boolean<br>    return writer.write_element(name, Writer.render_boolean(value))<br>  File &quot;/usr/lib64/python2.7/site-packages/ovirtsdk4/writer.py&quot;, line 44, in render_boolean<br>    raise TypeError(&#39;The \&#39;value\&#39; parameter must be a boolean&#39;)<br>TypeError: The &#39;value&#39; parameter must be a boolean<br><br></div>To be honest I don&#39;t have clue where it&#39;s going wrong or where to look. From what I can see there are two values which must be a boolean and they are.<br><br></div>Does anybody know what&#39;s going wrong or has a working snippet?<br><br></div>Thanks,<br></div>Renout<br></div>