----- Ursprüngliche Mail -----


dear steffen, 

thanks for your answers. 

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? 


The ip_public is the public IP of the VM :-) 
In your case it is "192.168.25.110" . 

But you can also define its value statically or use parameters of existing 
virtual networks. 


<blockquote>

moreover, how and where to define the root_pubkey = "id_rsa.pub" and 
user_pubkey = "id_rsa.pub"? 

</blockquote>
If you want to connect to the VM via SSH, you might need them. 

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. 

<blockquote>

thanks, 
david su 


On Fri, Dec 7, 2012 at 10:33 PM, Steffen Claus < 
[email protected] > wrote: 

<blockquote>







<blockquote>
Dear OpenNebula Community, 

Decompress the ttylinux.tar.gz, there is a ttylinux.one file with below 
content: 

NAME = ttylinux 
CPU = 0.1 
MEMORY = 64 

DISK = [ IMAGE_ID = 0 ] 

NIC = [ NETWORK_ID = 0 ] 

FEATURES=[ acpi="no" ] 

CONTEXT = [ 
hostname = "$NAME", 
ip_public = "IP_PUBLIC", 
files = "/path/to/init.sh /path/to/.ssh/id_rsa.pub", 
target = "hdc", 
root_pubkey = "id_rsa.pub", 
username = "opennebula", 
user_pubkey = "id_rsa.pub" 
] 

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. 

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. 

I have some questions for the attributes of the CONTEXT in the ttylinux.one 
file, for the setup of the system: 
</blockquote>
CONTEXT parameters can be used from inside the VM for initializing the image 
during startup. 


<blockquote>


1) does the hostname refer to "host-1"? 

</blockquote>
No. The $NAME refers to the name of the initialized VM. In your example this is 
"ttylinux". 
You can define whatever you want, e.g. based on the $VMID parameter. 


<blockquote>
2) what should the ip_public be? 

</blockquote>
What do you mean with "should"? 


<blockquote>
3) what should the username be? 

</blockquote>
Typically, it would be the user that initialized the VM. --> $USER[NAME] 
<blockquote>


Please let me know if anything unclear. 

Thank you for your help, much appreciated. 

Thanks, 
David Su 

_______________________________________________ 
Users mailing list 
[email protected] 
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org 

</blockquote>



-- 

Steffen Claus 

Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI) 
Schloss Birlinghoven 
D-53754 Sankt Augustin 
Tel: +49 2241 14-2511 
[email protected] 
http://www.scai.fraunhofer.de 

</blockquote>


</blockquote>



-- 

Steffen Claus 

Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI) 
Schloss Birlinghoven 
D-53754 Sankt Augustin 
Tel: +49 2241 14-2511 
[email protected] 
http://www.scai.fraunhofer.de 
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to