> Von: users-boun...@ovirt.org [users-boun...@ovirt.org]" im Auftrag von "Budur 
> Nagaraju [nbud...@gmail.com]
> Gesendet: Montag, 9. November 2015 05:53
> An: users
> Betreff: [ovirt-users] Multiple console access
> 
> HI ,
> 
> AM using SPICE console to access the vm console ,how to enable multi user 
> console access.
> 
> Thanks,
> 
> Nagaraju

Not yet possible via webadmin configuration. But you can do a small "hack" to 
achieve this. The
following 2 steps will allow shared VNC and SPICE consoles.

1) create a new start hook e.g. 
/usr/libexec/vdsm/hooks/before_vm_start/spice_mc.py

#!/usr/bin/python

import os
import sys
import hooking
import traceback

domxml = hooking.read_domxml()

# Add header tag to allow command line manipulation

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

# Add environment variable to allow shared SPICE consoles

c = domxml.createElement('qemu:commandline')
p = domxml.createElement('qemu:env')
p.setAttribute('name','SPICE_DEBUG_ALLOW_MC')
p.setAttribute('value','1')
c.appendChild(p)

# Add environment variables to domain

# Modify graphics tag to allow shared VNC consoles

g = domxml.getElementsByTagName('graphics')[0]
g.setAttribute('connected','keep')
g.setAttribute('sharePolicy','ignore')

d.appendChild(c)

# Writeback domain

hooking.write_domxml(domxml)

# Script end

2) Modify /usr/share/vdsm/rpc/BindingXMLRPC.py

Old: return vm.setTicket(password, ttl, existingConnAction, params)
New: return vm.setTicket(password, ttl, 'keep', params)

Markus
****************************************************************************
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

Über das Internet versandte E-Mails können unter fremden Namen erstellt oder
manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine
rechtsverbindliche Willenserklärung.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

Vorstand:
Kadir Akin
Dr. Michael Höhnerbach

Vorsitzender des Aufsichtsrates:
Hans Kristian Langva

Registergericht: Amtsgericht Köln
Registernummer: HRB 52 497

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

e-mails sent over the internet may have been written under a wrong name or
been manipulated. That is why this message sent as an e-mail is not a
legally binding declaration of intention.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

executive board:
Kadir Akin
Dr. Michael Höhnerbach

President of the supervisory board:
Hans Kristian Langva

Registry office: district court Cologne
Register number: HRB 52 497

****************************************************************************
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to