[ovirt-users] rhev
i install rhev in machine and rhevm another machine , and i use vdsm hooks and create script file and putted in /usr/libexec/vdsm/hooks/before_vm_start , but when i restart rhev the script file is fly not only this file every file which i can create is fly .. how i can fixed script file for vdsm hooks??? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] vdsm-hook
hi... i want apply this script on all vm on my host but found error when start vm i put my script file in before_vm_start: script file is called: ticket !/usr/bin/python import os import sys import hooking import traceback try: domxml = hooking.read_domxml() display.setAttribute('disable-ticketing') hooking.write_domxml(domxml) except: sys.stderr.write('ticket: [unexpected error]: %s\n' % traceback.format_exc()) sys.exit(2) the error is: hread-50::DEBUG::2014-08-18 08:15:24,502::utils::642::root::(execCmd) '/usr/libexec/vdsm/hooks/before_vm_start/ticket' (cwd None) Thread-50::DEBUG::2014-08-18 08:15:24,522::utils::662::root::(execCmd) FAILED: err = ' File /usr/libexec/vdsm/hooks/before_vm_start/ticket, line 8\ntry:\n^\nIndentationError: unexpected indent\n'; rc = 1 Thread-50::INFO::2014-08-18 08:15:24,522::hooks::100::root::(_runHooksDir) File /usr/libexec/vdsm/hooks/before_vm_start/ticket, line 8 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] vdsm-hook
i want to disable ticket in spice protocol so i should use vdsm hook for edit xml. this is my script and i want to run in all vm, i mean i don't need custom probreties , no error found in vdsm log and vm is work but nothing happened for disable ticket i try another attribute as example 'type' i put vnc instend of spice and nothing happened stay spice what i must do ??? this my script: #!/usr/bin/python import os import sys import hooking import traceback try: domxml = hooking.read_domxml() graphics = domxml.getElementsByTagName('graphics')[0] graphics.setAttribute('disable-ticketing','true') hooking.write_domxml(domxml) except: sys.stderr.write('ticket: [unexpected error]: %s\n' % traceback.format_exc()) sys.exit(2) i search in libvirt xml about disable-ticketing schema but i don't found http://libvirt.org/formatdomain.html i need disable ticket because i want use thin client hardware which connect by spice protocol but i donn't want every connection create ticket by computer machine.. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] cancel ticket in ovirt-engine
hi my scenario: i have multi server installed rhev or ovirt-engine and one sever installed rhevm or ovirt-engine . and i bought thin client which connect by spice to rhev server and controll them... i can use thin client for connect to rhev server but the problem every connect i should make new ticket for spice protocol when i run vm by rhevm interface the log for vm in this path :/var/log/libvirt/qemu/vmname.log is seem run qemu command and enable options for vm,,, my question how i can add this option (disable-ticket) when user start run vm ??? another mean i want cancel ticket or make it lifetime thanks.. i my question not understaded please tell me... ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users