[ovirt-users] Rest api body for updating vm os type

Michal Skrivanek michal.skrivanek at redhat.com
Thu Jan 7 09:01:58 UTC 2016


> On 05 Jan 2016, at 07:03, Qingyun Ao <aoqingyun at gmail.com> wrote:
> 
> Hello, all,
> 
> 
> I want to update vm os type by ovirt rest api.
> 
> The following is my request:
> Method: put
> Content-Type: application/xml
> Body: <vm><os type="windows_7"></os></vm>
> 
> The response from ovirt engine is:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <fault>
>     <reason>Operation Failed</reason>
>     <detail>[Cannot edit VM. Invalid time zone for given OS type.]</detail>
> </fault>
> 
> Can anybody give a correct body for updating vm os type from "other" to "windows_7”?

Windows OSes have different set of timezones than Other and Linux
You need to supply a new one together in the same request

Thanks,
michal

> 
> Thank you very much.
> 
> 
> 
> -- 
> Best regards,
> Ao Qingyun
> aoqingyun at gmail.com <mailto:aoqingyun at gmail.com>
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160107/157f5832/attachment-0001.html>


More information about the Users mailing list