Hi Shi Jin,<br><br>The script  'one_im_ssh' uses the name of the driver to source the corresponding rc file. In your last example, the rc file should be called 'im_kvm_lvmrc'<br><br>Hope this helps,<br><br>

-Tino<br clear="all"><br>--<br>Constantino Vázquez, Grid Technology Engineer/Researcher: <a href="http://www.dsa-research.org/tinova" target="_blank">http://www.dsa-research.org/tinova</a><br>
DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a>  <br>OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>



<br><br><div class="gmail_quote">On Tue, Nov 10, 2009 at 8:32 PM, Shi Jin <span dir="ltr"><<a href="mailto:jinzishuai@gmail.com" target="_blank">jinzishuai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div>> That is the problem. I think you can solve the problem this way:<br>
><br>
> * Copy $ONE_LOCATION/etc/im_kvm to im_km2<br>
> * Set in im_kvm2/im_kvmrc IM_REMOTE_DIR to other directory (you can<br>
> simply add "2" to the name of the dir<br>
> * Add another im like the one you have but using this new config files:<br>
><br>
> --8<------<br>
> IM_MAD = [<br>
>      name       = "im_kvm2",<br>
>      executable = "one_im_ssh",<br>
>      arguments  = "im_kvm2/im_kvm.conf" ]<br>
> ------>8--<br>
><br>
> * Use im_kvm2 for the duplicated hosts<br>
><br>
</div>Thanks a lot.<br>
I think this is a good solution.<br>
Just one question: the  IM_REMOTE_DIR variable in im_kvmrc does not<br>
seem to have any effect.<br>
The default is<br>
#IM_REMOTE_DIR=/tmp/ne_im_scripts<br>
But I found the scripts are actually located in /tmp/one-im<br>
This I can understand since we have the code in lib/mads/one_im_ssh.rb:<br>
202 remote_dir = ENV["IM_REMOTE_DIR"]<br>
203 remote_dir = "/tmp/one-im" if !remote_dir<br>
<br>
However, after I changed in the new im_kvmrc:<br>
IM_REMOTE_DIR=/tmp/one-im-kvm<br>
It does not take effect.<br>
<br>
I then realized that in im driver,<br>
IM_MAD = [<br>
      name       = "im_kvm_lvm",<br>
      executable = "one_im_ssh",<br>
      arguments  = "im_kvm_lvm/im_kvm.conf" ]<br>
The new im_kvmrc is not used at all since the content of im_kvm.conf is<br>
cpuarchitecture=architecture.sh<br>
nodename=name.sh<br>
cpu=cpu.sh<br>
kvm=kvm-lvm.rb<br>
<br>
Should this im_kvm.conf file include the im_kvmrc in the same directory?<br>
I searched the whole code and couldn't find any file with  im_kvmrc in it.<br>
Do you think this is a bug?<br>
<br>
Thanks.<br>
<font color="#888888">Shi<br>
</font><div><div></div><div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br>