[one-users] About virtual machines hooks

María Pérez maria at caton.es
Mon Jul 18 01:38:04 PDT 2011


Hi,

I need to add a iptables rule when one VM is running. I had thought to 
solve this using one virtual machine hook.

The lines added in the oned.log file are:

HOST_HOOK = [
     name      = "redir_vnc",
     on        = "RUNNING",
     command   = "redir_vnc.sh",
     arguments = "$GRAPHICS[TYPE] $HID $GRAPHICS[PORT] x.x.x.x",
     remote    = "no" ]

The shell script is in the directory $ONE_LOCATION/share/hooks. Is this 
OK? The command can be a shell script? Because the command does not 
execute and I do not see anything in the logs.

Some idea? I have been reading this information [1], you know some other 
info than it can help me?

Thanks in advance.
María

[1] http://opennebula.org/documentation:rel2.2:hooks

-- 
*María Ascensión Pérez García*
Engineering & Support
Catón Sistemas Alternativos ** 	


maria at caton.es <mailto:maria at caton.es>
www.caton.es <http://www.caton.es/>
Telf: 951 254 008
Fax: +34 958 750 447 	

Calle Parque de las Ciencias
C.P. 18006 - Granada (Spain)
------------------------------------------------------------------------

Este mensaje se dirige exclusivamente a su destinatario y puede contener 
información privilegiada o confidencial. Si no es vd. el destinatario 
indicado, queda notificado de que la lectura, utilización, divulgación 
y/o copia sin autorización está prohibida en virtud de la legislación 
vigente.

Si ha recibido este mensaje por error, le rogamos que nos lo comunique 
inmediatamente por esta misma vía y proceda a su destrucción. El correo 
electrónico vía Internet no permite asegurar la confidencialidad de los 
mensajes que se transmiten ni su integridad o correcta recepción. CATÓN 
no asume ninguna responsabilidad por estas circunstancias.

------------------------------------------------------------------------

This message is intended exclusively for its addressee and may contain 
information that is CONFIDENTIAL and protected by a professional 
privilege or whose disclosure is prohibited by law. If you are not the 
intended recipient you are hereby notified that any read, dissemination, 
copy or disclosure of this communication is strictly prohibited by law.

If this message has been received in error, please immediately notify us 
via e-mail and delete it. Internet e-mail neither guarantees the 
confidentiality nor the integrity or proper receipt of the messages 
sent. CATÓN does not assume any liability for those circumstances.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/67c6245b/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logoCaton.png
Type: image/png
Size: 1109 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/67c6245b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SIG-EIBT.jpg
Type: image/jpeg
Size: 11278 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/67c6245b/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arbol-MA.gif
Type: image/gif
Size: 2268 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110718/67c6245b/attachment-0002.gif>


More information about the Users mailing list