[PVE-User] Proxmox VE 3.2 released!

Diaolin diaolin at diaolin.com
Tue Mar 11 14:34:26 CET 2014


Il 2014-03-11 14:16 Angel Docampo ha scritto:
> Damn ExtJS cache... Thank you Dietmar :)

And now????

Did you find that the script for spice works?


I've so one:

#!/bin/bash

# needs pve-manager >= 3.1-44

USERNAME=root at pam
PASSWORD=mypasswd
# select VM
VMID=115

NODE=proxmox191
PROXY=192.168.1.191

DATA=`curl -k -d "username=$USERNAME&password=$PASSWORD"  
https://$PROXY:8006/api2/json/access/ticket`

TICKET=`echo $DATA|sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v 
k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 
's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"// g'|grep -w ticket|  awk 
-F "|" '{print $2}'`

CSRF=`echo $DATA|sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" 
'{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 
's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"// g'|grep -w 
CSRFPreventionToken| awk -F "|" '{print $2}'`

https://$PROXY:8006/api2/spiceconfig/nodes/$NODE/qemu/$VMID/spiceproxy 
-d \"proxy=$PROXY\"" >>spice.txt
curl -k -b "PVEAuthCookie=$TICKET" -H "CSRFPreventionToken: $CSRF" 
https://$PROXY:8006/api2/spiceconfig/nodes/$NODE/qemu/$VMID/spiceproxy 
-d "proxy=$PROXY" > spiceproxy





remote-viewer spiceproxy

but it says always spiceproxy file invalid


:-(

Diaolin



> 
> 
> Angel Docampo
> Datalab Tecnologia, s.a.
> Castillejos, 352 - 08025 Barcelona
> Tel. 93.476.69.10 - 6711
> 
> ________________________________________
> De: Dietmar Maurer <dietmar at proxmox.com>
> Enviado: martes, 11 de marzo de 2014 13:58
> Para: Angel Docampo; Martin Maurer; Guy
> Cc: proxmoxve (pve-user at pve.proxmox.com)
> Asunto: RE: [PVE-User] Proxmox VE 3.2 released!
> 
>> Could you please put the link to the updated API docs? Or the place 
>> where
>> those changes are reflected, because I still cannot see the changes or 
>> I'm
>> seeing the outdated doc.
> 
> http://pve.proxmox.com/pve2-api-doc/
> 
> 
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

---
S’à destacà l’ultima föia dal bósch nét
crodàda l’ei, solàgna, ‘n mèzz ai sàssi
e ‘ntant fis-ciava ‘n zìfol de oseleti
a tegnìr vìo ‘l pensér che vèn matìna
[Diaolin]



More information about the pve-user mailing list