[pve-devel] test report of the spice-xpi console

Alexandre DERUMIER aderumier at odiso.com
Tue Aug 14 16:41:26 CEST 2012


But, spice clients doesn't seem to support sasl :(


Another possibility, is to launch spice on a socket.

Then when launching proxmox proxy (nc -p 5900 ....),

setting a random password, limited in time with qmp command

set_password xxxx
expire_password 20s

then launching spice console with this random password.


what do you think ?




----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Mardi 14 Août 2012 16:30:31 
Objet: Re: [pve-devel] test report of the spice-xpi console 

>>About spice in general, 
>>spice authentification support only a simple password, 
>>I don't know how we can integrate it in proxmox ? 

Response to myself: 
I seem to be an sasl feature available 
http://lists.freedesktop.org/archives/spice-devel/2011-May/003680.html (code is already in current qemu) 
http://spice-space.org/page/Features/SASL 

So it should be possible to use 
a /etc/sasl2/qemu.conf file , like for vnc 
http://www.linux-kvm.com/content/new-vnc-authentication-and-acl-support 

So maybe they is a way to integrate it with proxmox users (and also pam which should be more easy) 



----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Envoyé: Mardi 14 Août 2012 16:20:28 
Objet: [pve-devel] test report of the spice-xpi console 

Hi, 

I have just tested the spice-xpi plugin console. 

It's really working fine. (firefox/chrome) 

spice-xpi is just a wrapper and call spicec command line. (packages are avaible for fedora/debian/ubuntu) 

I don't have yet find a build for windows. 



To launch console,we just need to use a small js like 


<script type="text/javascript"> 
function connectvm() 
{ 
var ip = String("kvmtest1.odiso.net"); 
var port = String("5930"); 
var passwd = String("pass at 321"); 
var pluginobj = document.embeds[0]; 

pluginobj.hostIP = ip; 
pluginobj.port = port; 
pluginobj.Password = passwd; 
pluginobj.fullScreen = true; 
pluginobj.UsbListenPort = 0; 
pluginobj.connect(); 
} 
</script> 
</head> 
<body> 
<p> 
<embed type="application/x-spice"> 
<button onclick='connectvm()'>connect to VM</button> 
</p> 




About spice in general, 
spice authentification support only a simple password, 
I don't know how we can integrate it in proxmox ? 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



-- 

-- 





Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



-- 

-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 



More information about the pve-devel mailing list