<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 05 Jan 2016, at 07:03, Qingyun Ao &lt;<a href="mailto:aoqingyun@gmail.com" class="">aoqingyun@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hello, all,<br class=""><br class=""><br class=""></div>I want to update vm os type by ovirt rest api.<br class=""><br class=""></div>The following is my request:<br class=""></div>Method: put<br class=""></div>Content-Type: application/xml<br class=""></div>Body: &lt;vm&gt;&lt;os type="windows_7"&gt;&lt;/os&gt;&lt;/vm&gt;<br class=""><br class=""></div>The response from ovirt engine is:<br class=""></div>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;<br class=""></div>&lt;fault&gt;<br class=""></div>&nbsp;&nbsp;&nbsp; &lt;reason&gt;Operation Failed&lt;/reason&gt;<br class=""></div>&nbsp;&nbsp;&nbsp; &lt;detail&gt;[Cannot edit VM. Invalid time zone for given OS type.]&lt;/detail&gt;<br class=""></div>&lt;/fault&gt;<br class=""><br class=""></div>Can anybody give a correct body for updating vm os type from "other" to "windows_7”?<br class=""></div></div></div></blockquote><div><br class=""></div>Windows OSes have different set of timezones than Other and Linux</div><div>You need to supply a new one together in the same request</div><div><br class=""></div><div>Thanks,</div><div>michal</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div>Thank you very much.<br class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><font color="#888888" class=""><div dir="ltr" class=""><div class="">Best regards,</div>Ao Qingyun<br class=""></div><div class=""><a href="mailto:aoqingyun@gmail.com" target="_blank" class="">aoqingyun@gmail.com</a></div></font><div class=""><br class=""></div></div></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">Users mailing list<br class=""><a href="mailto:Users@ovirt.org" class="">Users@ovirt.org</a><br class="">http://lists.ovirt.org/mailman/listinfo/users<br class=""></div></blockquote></div><br class=""></body></html>