<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="">> 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="">> <os type="rhel_7x64"></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <boot dev="hd"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <boot dev="network"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> </os></div></div><div class="">...</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <os type="rhel_7x64"></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <boot dev="hd"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <boot dev="network"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <kernel>.../vmlinuz</kernel></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <initrd>.../initrd.img</initrd></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <cmdline>....</cmdline></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< </os></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="">> <os type="rhel_7x64"></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <boot dev="hd"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <boot dev="network"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <kernel></kernel></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <initrd></initrd></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> <cmdline></cmdline></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">> </os></div></div><div class="">...</div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <os type="rhel_7x64"></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <boot dev="hd"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <boot dev="network"/></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <kernel></kernel></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <initrd></initrd></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< <cmdline></cmdline></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">< </os></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>