[Spice-devel] [Users] Share SPICE console between 2 admins

Markus Stockhausen stockhausen at collogia.de
Fri Jan 31 10:53:18 PST 2014


> Von: Itamar Heim [iheim at redhat.com]
> Gesendet: Freitag, 31. Januar 2014 18:49
> An: Markus Stockhausen; ovirt-users; spice-devel
> Betreff: Re: [Users] Share SPICE console between 2 admins
> 
> On 01/31/2014 07:42 PM, Markus Stockhausen wrote:
> > Hello,
> >
> > we want to share the spice console of our VMs for 2 or more
> > administrators. So that they can see the same desktop. I read
> > several articles about SPICE_DEBUG_ALLOW_MC=1 and think
> > that my be the way to go.
> >
> > The only problem seems to be that I must set it as an environment
> > variable on the hypervisor hosts. /etc/profile does not work. Seems
> > to be a similar problem as in proxmox.
> >
> > http://forum.proxmox.com/threads/17265-Siimultaneous-Spice-Client-Connections
> >
> > But where to fix that in Ovirt?
> >
> > Markus=
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
> 
> adding spice-devel.
> i assume you need to pass something to libvirt to make this happen on
> hypervisor side, a custom hook can let you do that.
> http://www.ovirt.org/VDSM-Hooks

OMG Hook writing will not be my future passion. Nevertheless finally get
the parameters passed to the kvm command line. But sharing does not work. 

Do I need a special version for that? I'm on 
- Fedora 19
- kvm 1.6.1 - 2.fc19
- libvirt-1.1.3.2-1.fc19
- vdsm-4.13.2-1.fc19
- spice 0.12.4 - 3.fc19

# cat /var/log/libvirtd/libvirtd.log
2014-01-31 18:31:11.883+0000: 1491: debug : virCommandRunAsync:2265 : 
  About to run LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin 
  QEMU_AUDIO_DRV=spice SPICE_DEBUG_ALLOW_MC=1 /usr/bin/qemu-kvm 
  -name Win7x64_Master ...


# cat /usr/libexec/vdsm/hooks/before_vm_start/50_shared_spice.py
#!/usr/bin/python

import os
import sys
import hooking
import traceback

domxml = hooking.read_domxml()

d = domxml.getElementsByTagName('domain')[0]
d.setAttribute('xmlns:qemu','http://libvirt.org/schemas/domain/qemu/1.0')

c = domxml.createElement('qemu:commandline')
p = domxml.createElement('qemu:env')

p.setAttribute('name','SPICE_DEBUG_ALLOW_MC')
p.setAttribute('value','1')

c.appendChild(p)
d.appendChild(c)

hooking.write_domxml(domxml)
#

Markus

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140131/6035922c/attachment.txt>


More information about the Spice-devel mailing list