<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><br><br><hr id="zwchr"><blockquote id="DWT408" style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">dear steffen,<br><br>thanks for your answers.<br><br>for question 2), what is the ip_public, from the information i provide in 1st email? the ip of host-1 is 192.168.25.100 and the ip for ttylinux is 192.168.25.110, both host-1 and ttylinux are in the same LAN. so what is the ip_public attribute?<br></blockquote>The ip_public is the public IP of the VM :-) <br>In your case it is "192.168.25.110".<br><br>But you can also define its value statically or use parameters of existing virtual networks.<br><br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
<br>moreover, how and where to define the root_pubkey = "id_rsa.pub" and user_pubkey = "id_rsa.pub"?<br></blockquote>If you want to connect to the VM via SSH, you might need them. <br><br>Please have a look at the context-script of ttylinux (init.sh). There you can see what CONTEXT parameters are actually used to initialize the VM during startup.<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br>thanks,<br>david su<br><br><div class="gmail_quote">On Fri, Dec 7, 2012 at 10:33 PM, Steffen Claus <span dir="ltr"><<a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.fraunhofer.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><br><br><hr><div class="im"><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
Dear OpenNebula Community,<br><br>Decompress the ttylinux.tar.gz, there is a ttylinux.one file with below content:<br><br>NAME = ttylinux<br>CPU = 0.1<br>MEMORY = 64<br><br>DISK = [ IMAGE_ID = 0 ]<br><br>NIC = [ NETWORK_ID = 0 ]<br>
<br>FEATURES=[ acpi="no" ]<br><br>CONTEXT = [<br> hostname = "$NAME",<br> ip_public = "IP_PUBLIC",<br> files = "/path/to/init.sh /path/to/.ssh/id_rsa.pub",<br> target = "hdc",<br>
root_pubkey = "id_rsa.pub",<br> username = "opennebula",<br> user_pubkey = "id_rsa.pub"<br>]<br><br>I only use one physical server for the installation of ubuntu OS, opennebula front end, KVM hypervisor, VM instance with ttylinux image, i.e. everything are installed in only one physical server. <br>
<br>The physical server is with hostname "host-1", private local IP "192.168.25.100". The ttylinux image VM instance is with name "ttylinux", private local IP "192.168.25.110" and username "root" to ssh passwordless access into its OS.<br>
<br>I have some questions for the attributes of the CONTEXT in the ttylinux.one file, for the setup of the system:</blockquote></div>CONTEXT parameters can be used from inside the VM for initializing the image during startup.<div class="im">
<br><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)"><br><br>1) does the hostname refer to "host-1"?<br>
</blockquote></div>No. The $NAME refers to the name of the initialized VM. In your example this is "ttylinux".<br>You can define whatever you want, e.g. based on the $VMID parameter.<div class="im"><br><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
2) what should the ip_public be?<br></blockquote></div>What do you mean with "should"? <br><div class="im"><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
3) what should the username be?<br></blockquote></div>Typically, it would be the user that initialized the VM. --> $USER[NAME]<blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
<div class="im">
<br>Please let me know if anything unclear.<br><br>Thank you for your help, much appreciated.<br><br>Thanks,<br>David Su<br>
<br></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><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888"><br><br><br>-- <br><div><span></span>Steffen Claus<br><br>Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)<br>Schloss Birlinghoven<br>
D-53754 Sankt Augustin<br>Tel: <a href="tel:%2B49%202241%2014-2511" target="_blank">+49 2241 14-2511</a><br><a href="mailto:steffen.claus@scai.fraunhofer.de" target="_blank">steffen.claus@scai.fraunhofer.de</a><br>
<a href="http://www.scai.fraunhofer.de" target="_blank">http://www.scai.fraunhofer.de</a> <span></span><br></div></font></span></div></div></blockquote></div><br>
</blockquote><br><br><br>-- <br><div><span></span>Steffen Claus<br><br>Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)<br>Schloss Birlinghoven<br>D-53754 Sankt Augustin<br>Tel: +49 2241 14-2511<br>steffen.claus@scai.fraunhofer.de<br>http://www.scai.fraunhofer.de <span></span><br></div></div></body></html>