[one-users] what do the attributes refer to in the CONTEXT in the ttylinux.one file?
Steffen Claus
steffen.claus at scai.fraunhofer.de
Fri Dec 7 01:33:43 PST 2012
----- Ursprüngliche Mail -----
> 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.35.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:
CONTEXT parameters can be used from inside the VM for initializing the image during startup.
> 1) does the hostname refer to "host-1"?
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.
> 2) what should the ip_public be?
What do you mean with "should"?
> 3) what should the username be?
Typically, it would be the user that initialized the VM. --> $USER[NAME]
> Please let me know if anything unclear.
> Thank you for your help, much appreciated.
> Thanks,
> David Su
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Steffen Claus
Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI)
Schloss Birlinghoven
D-53754 Sankt Augustin
Tel: +49 2241 14-2511
steffen.claus at scai.fraunhofer.de
http://www.scai.fraunhofer.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121207/a7e6bd23/attachment-0002.htm>
More information about the Users
mailing list