Hi Daniel,<div><br></div><div>Thanks for the feedback, this has been solved in the source repo. You can take a look at the patch, it can be safely applied [1].</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div>
<div> </div><div><br></div><div>[1] <a href="http://dev.opennebula.org/issues/387">http://dev.opennebula.org/issues/387</a><br><br><div class="gmail_quote">On Fri, Nov 19, 2010 at 7:55 AM, <span dir="ltr"><<a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro">Daniel.MOLDOVAN@cs.utcluj.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Thanks to all for the answers.<br>
<br>
And i have a question for opennebula developement. Why in<br>
/one/tm_commands/ssh/tm_context.sh, the temporary directory is<br>
TMP_DIR="$ONE_LOCATION/var/$DST_HASH" ? Should not be /tmp/$DST_HASH?<br>
Because usually oneadmin does not have access to create folders in var in<br>
the case opennebula is installed system wide as in my case(as a result<br>
from express install).<br>
<br>
Regards,<br>
Daniel<br>
<br>
> Hi, I'm new to this so I might be wrong, but I'm going to try to give a<br>
> few answers below... hopefully someone will correct me if needed.<br>
><br>
> El 18/11/10 17:27, <a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro">Daniel.MOLDOVAN@cs.utcluj.ro</a> escribió:<br>
><br>
>> Hy,<br>
>><br>
>><br>
>> Is there any method of assigning a fixed/static IP to a virtual<br>
>> machine? I have tried anything, even creating a virtual network with<br>
>> only one IP as lease like below and assign this network to the virtual<br>
>> machine in the vm template.<br>
>><br>
>> NAME = "VM2_net"<br>
>> TYPE = FIXED<br>
>> BRIDGE = virbr0<br>
>> LEASES = [IP=192.168.122.23]<br>
>><br>
><br>
> I guess you have tried including the ip in the NIC section of the VM<br>
> template? And had a look to <a href="http://opennebula.org/documentation:rel2.0:vgg" target="_blank">http://opennebula.org/documentation:rel2.0:vgg</a><br>
><br>
> NIC = [<br>
> network = "name_of_the_virtual_network", #Optional, XEN, KVM ip =<br>
> "ip_address", #Optional, XEN, KVM<br>
> bridge = "name_of_bridge_to_bind_if", #Optional, XEN, KVM target =<br>
> "device_name_to_map_if", #Optional, KVM<br>
> mac = "HW_address", #Optional, XEN, KVM script =<br>
> "path_to_script_to_bring_up_if"] #Optional, KVM<br>
><br>
><br>
> You might need to use the contextualization feature as well:<br>
> <a href="http://opennebula.org/documentation:rel2.0:cong" target="_blank">http://opennebula.org/documentation:rel2.0:cong</a><br>
><br>
><br>
><br>
>> Nomather what i try, the virtual machine will always get a random IP<br>
>> located in the subnet of the virbr0 bridge. Although using onevm show,<br>
>> the IP i have requested is reported as assigned, inside the virtual<br>
>> machine things are different.<br>
>><br>
>> Can there be issues regarding the host/guest OS? I am running CentOS as<br>
>> host and currently experimenting with Ubuntu JeOs and Desktop editions<br>
>> as guest systems.The network configuration inside the hosts states that<br>
>> the IP is assigned by DHCP.<br>
>><br>
> Another way may be to configure your guests directly with the fixed IP<br>
> address you want, but this is not so elegant as letting opennebula do it<br>
> for you, of course.<br>
>><br>
>> P.S. And just of curiosity(i am new to bridging/networking) how<br>
>> difficult it is to perform some bridging or connection in order to be<br>
>> able to ping the virtual machine from any opennebula node or client, not<br>
>> just from the current host of the virtual machine?<br>
> Not too difficult but it can get tricky the first time. You may need to<br>
> look on <a href="http://wiki.libvirt.org/page/Networking" target="_blank">http://wiki.libvirt.org/page/Networking</a><br>
> if you're using kvm, to check that libvirt is correctly setup for that.<br>
><br>
> Good luck,<br>
><br>
><br>
> Hector<br>
><br>
>><br>
>> Thank you,<br>
>> Daniel<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opennebula.org">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>
>><br>
>><br>
><br>
><br>
> --<br>
> Hector<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">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>
><br>
><br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
</blockquote></div><br><br clear="all"><br>-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</div>