<div dir="ltr"><div>Hi Dietmar,<br><br></div>I do not have support for the  Proxmox API at all (for the moment). All I do is register support for .vv files with the Android OS. Is there no way to obtain a console.vv file through a web portal on Proxmox anymore?<br>
<br>Thanks!<br>iordan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 11, 2013 at 2:08 AM, Dietmar Maurer <span dir="ltr"><<a href="mailto:dietmar@proxmox.com" target="_blank">dietmar@proxmox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
> I am the developer behind aSPICE, the Android SPICE client. In order to better<br>
> support enterprise VDI environments, I decided to create a new client called<br>
> Opaque which aims to give users the ability to attach to the graphics console of<br>
> their VMs running in an oVirt, RHEV, or Proxmox infrastructure. In order to<br>
> support Proxmox, I recently added .vv file capability to Opaque.<br>
<br>
</div>The PVE spice API has change recently.<br>
<br>
1.) We use POST instead of GET (you need to send the CRSF token for security reasons).<br>
<br>
2.) we simply return a json object instead of a '.vv' file.<br>
<br>
So you should use /api2/json/nodes/<nodename>/qemu/vmid/spiceproxy API path.<br>
<br>
You can easily generate a '.vv' file on the client side using a data URL. I currently<br>
use something like this:<br>
<br>
    openSpiceViewer: function(url, params){<br>
        PVE.Utils.API2Request({<br>
            url: url,<br>
            params: params,<br>
            method: 'POST',<br>
            failure: function(response, opts){<br>
                Ext.Msg.alert('Error', response.htmlStatus);<br>
            },<br>
            success: function(response, opts){<br>
                var raw = "[virt-viewer]\n";<br>
                Ext.Object.each(response.result.data, function(k, v) {<br>
                    raw += k + "=" + v + "\n";<br>
                });<br>
                var url = 'data:application/x-virt-viewer;charset=UTF-8,' +<br>
                    encodeURIComponent(raw);<br>
<br>
                window.open(url, "_top");<br>
            }<br>
        });<br>
    }<br>
<br>
Hope that helps.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Dietmar<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>The conscious mind has only one thread of execution.
</div>