<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I'm trying to change the way a VM is booted, I want an initial setup with kernel, initrd and cmdline given and later removed.<div class=""><br class=""></div><div class="">Using the GUI it works fine.</div><div class=""><br class=""></div><div class="">But I have no success using the python API. And running with debug enable, I get this strange result :</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; PUT /api/vms/8ced0f81-03fd-415b-a8ef-60141de7eeca HTTP/1.1</div></div><div class="">...</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &lt;os type="rhel_7x64"&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="hd"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="network"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &lt;/os&gt;</div></div><div class="">...</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &lt;os type="rhel_7x64"&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="hd"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="network"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;kernel&gt;.../vmlinuz&lt;/kernel&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;initrd&gt;.../initrd.img&lt;/initrd&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cmdline&gt;....&lt;/cmdline&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &lt;/os&gt;</div></div><div class=""><br class=""></div><div class="">I got this with:</div><div class=""><pre style="background-color: rgb(255, 255, 255); font-family: Menlo;" class="">os_params =  params.OperatingSystem()<br class="">os_params.set_boot(old_os_params.get_boot())<br class="">os_params.set_type(old_os_params.get_type())<br class="">os_params.set_kernel(<span style="color:#000080;" class="">None</span>)<br class="">os_params.set_initrd(<span style="color:#000080;" class="">None</span>)<br class="">os_params.set_cmdline(<span style="color:#000080;" class="">None</span>)<br class=""><span style="color:#94558d;" class="">self</span>.broker.set_os(os_params)<br class=""><span style="color:#94558d;" class="">self</span>.broker.update()<br class=""></pre><div class="">trying to set kernel and others to empty string is not really better:</div></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &lt;os type="rhel_7x64"&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="hd"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="network"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;kernel&gt;&lt;/kernel&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;initrd&gt;&lt;/initrd&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cmdline&gt;&lt;/cmdline&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&gt; &nbsp; &nbsp; &lt;/os&gt;</div></div><div class="">...</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &lt;os type="rhel_7x64"&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="hd"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;boot dev="network"/&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;kernel&gt;&lt;/kernel&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;initrd&gt;&lt;/initrd&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cmdline&gt;&lt;/cmdline&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">&lt; &nbsp; &nbsp; &lt;/os&gt;</div></div><div class=""><br class=""></div><div class="">What kind of "magic values" the engine uses to removes values ?</div><div class=""><br class=""></div></body></html>