<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I need to add a iptables rule when one VM is running. I had thought
to solve this using one virtual machine hook. <br>
<br>
The lines added in the oned.log file are:<br>
<br>
HOST_HOOK = [<br>
name = "redir_vnc",<br>
on = "RUNNING",<br>
command = "redir_vnc.sh",<br>
arguments = "$GRAPHICS[TYPE] $HID $GRAPHICS[PORT] x.x.x.x",<br>
remote = "no" ]<br>
<br>
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.<br>
<br>
Some idea? I have been reading this information [1], you know some
other info than it can help me?
<br>
<br>
Thanks in advance.<br>
María<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://opennebula.org/documentation:rel2.2:hooks">http://opennebula.org/documentation:rel2.2:hooks</a><br>
<br>
<div class="moz-signature">-- <br>
<title>Firma de correo</title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css" id="internalStyle">
table.firma {
padding-left: 1em;
padding-right: 1em;
padding-top: 1em;
padding-bottom: 1em;
font-family: "Calibri" ,"Times New Roman", Times, serif, Georgia;
background-color: #f3f3f3;
width: 80%;
margin-left: 2%;
border: 2px solid silver;
color: blue;
font-size: 11.0pt;
}
td.identidad {
font-style: italic;
vertical-align: top;
}
td.link_logo {
text-align: right;
color: blue;
vertical-align: top;
}
td.link_logo img {
border-width: 0;
width: 225px;
height: 60px;
}
hr.separador1 {
border: 1px solid silver;
}
td.contacto {
text-align: left;
vertical-align: top;
}
.links a:link, .links a:active, .links a:visited {
text-decoration: none;
color: blue;
}
.links a:hover {
text-decoration: underline;
color: blue;
}
td.direccion {
font-size: 10.0pt;
text-align: right;
color: gray;
vertical-align: bottom;
}
td.final {
color: silver;
font-size: 9.0pt;
}
hr.separador2 {
border: 1px dotted silver;
}
</style>
<!-- color logo #0099d5 -->
<table class="firma" border="0" cellpadding="8" cellspacing="0">
<tbody>
<tr>
<td class="identidad"> <b>María Ascensión Pérez García<b><br>
Engineering & Support<br>
Catón Sistemas Alternativos </b></b></td>
<td class="link_logo"> <img
src="cid:part1.03060802.02020800@caton.es" alt=""> </td>
</tr>
<tr>
<td class="contacto"> <span class="links">
<br>
<br>
<a href="mailto:maria@caton.es">maria@caton.es</a><br>
<a href="http://www.caton.es/">www.caton.es</a><br>
</span> Telf: 951 254 008<br>
Fax: +34 958 750 447 </td>
<td class="direccion">
<img src="cid:part2.01080207.07090408@caton.es" alt=""><br>
<br>
Calle Parque de las Ciencias<br>
C.P. 18006 - Granada (Spain) </td>
</tr>
<tr>
<td colspan="2">
<hr class="separador1"> </td>
</tr>
<tr>
<td class="final" colspan="2">
<p>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.</p>
<p>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.</p>
<hr class="separador2">
<p>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.</p>
<p>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.</p>
<img src="cid:part3.01020708.06000502@caton.es" alt=""> </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>