<HTML dir=ltr><HEAD><TITLE>Re: [one-users] Need information on getting VM's IP address</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText28692 dir=ltr>
<DIV dir=ltr><FONT face="Courier New" color=#000000 size=2>Hi Ruben,</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>Following are the templates for VNet and VM which I have submitted.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>The <STRONG><FONT color=#0000ff>VNet template</FONT></STRONG> is as shown below : </FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>NAME="Public VLAN"<BR>TYPE=FIXED<BR>BRIDGE=eth0<BR>LEASES=[IP=10.101.102.100]</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2><STRONG>Output : <FONT color=#0000ff>onevnet show 0</FONT></STRONG></FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>NID : 0<BR>UID : 0<BR>Network Name : Public VLAN<BR>Type : Fixed<BR>Bridge : eth0</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>....: Template :....<BR> BRIDGE=eth0<BR> HOSTNAME=10.101.102.100<BR> LEASES=IP=10.101.102.100<BR> NAME=Public VLAN<BR> TYPE=FIXED</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>....: Leases :....<BR>IP = 10.101.102.100 MAC = 00:03:0a:65:66:64 USED = 1 VID = 0</FONT></DIV><FONT face="Courier New" size=2></FONT></DIV>
<P><FONT face="Courier New" size=2>In this case, the MAC address what formed as a combination of </FONT></P>
<P><FONT face="Courier New" size=2>MAC_ADDRESS = MAC_PREFFIX:IP_IN_HEXADECIMAL</FONT></P>
<P><FONT face="Courier New" size=2>where MAC_PREFIX=00:03 in oned.conf</FONT><FONT face="Courier New" size=2></P></FONT>
<DIV dir=ltr><FONT face="Courier New" size=2>----------------------------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>The <STRONG>VM Template</STRONG> is :</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>NAME = nodev1m<BR>CPU = 0.5<BR>MEMORY = 256<BR>bootargs = "--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen"<BR>OS = [bootloader = "/usr/lib/xen/boot/domUloader.py"]<BR>DISK = [source="/home/cloud/vm-image/disk0",target="xvda", BOOT="true", read<BR>only="no"]<BR>NIC = [network="Public VLAN"]<BR>GRAPHICS = [<BR> type = "vnc",<BR> listen = "127.0.0.1",<BR> port = "9999"]<BR></FONT><FONT face=Arial color=#000000 size=2>
<DIV dir=ltr><FONT face="Courier New" size=2>----------------------------------------------------------------------------------</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New"></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New">When xen creates the VM and boots it, DHCP assigns the IP address dynamically to <STRONG>Guest VM</STRONG>.</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New">In this case, how do we get the IP address of Guest VM using Open Nebula ?</FONT></DIV><FONT face="Courier New"></FONT></FONT></DIV>
<DIV dir=ltr>
<DIV dir=ltr><BR><FONT face="Courier New" size=2>Thanks and Regards,<BR>Lalithamba.</FONT><BR></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ruben S. Montero [mailto:rubensm@dacya.ucm.es]<BR><B>Sent:</B> Mon 02-Feb-09 6:05 PM<BR><B>To:</B> users@lists.opennebula.org<BR><B>Cc:</B> Lalithamba Vishwanathaiah (WT01 - Innovation Group)<BR><B>Subject:</B> Re: [one-users] Need information on getting VM's IP address<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi,<BR> onevm show <VMID> should do the job. The command output, under the Template,<BR>in the NIC attribute should show you the IP<BR><BR>Best<BR><BR>Ruben<BR><BR>On Monday 02 February 2009 12:36:59 lalithamba.vishwanathaiah@wipro.com wrote:<BR>> Hi,<BR>><BR>> I am new to OpenNebula.<BR>><BR>> Once a VM is deployed using "onevm create" command, its starting up VM with<BR>> a specific IP address & MAC. Is there any way to get hold of this ip<BR>> address ?<BR>><BR>> Is there any method /command in Opennebula to get the IP address of the VM<BR>> ?<BR>><BR>> Many Thanks.<BR>><BR>> Thanks and Regards,<BR>> Lalithamba.<BR>><BR>><BR>><BR>> Please do not print this email unless it is absolutely necessary.<BR>><BR>> The information contained in this electronic message and any attachments to<BR>> this message are intended for the exclusive use of the addressee(s) and may<BR>> contain proprietary, confidential or privileged information. If you are not<BR>> the intended recipient, you should not disseminate, distribute or copy this<BR>> e-mail. Please notify the sender immediately and destroy all copies of this<BR>> message and any attachments.<BR>><BR>> WARNING: Computer viruses can be transmitted via email. The recipient<BR>> should check this email and any attachments for the presence of viruses.<BR>> The company accepts no liability for any damage caused by any virus<BR>> transmitted by this email.<BR>><BR>> www.wipro.com<BR><BR>--<BR>+---------------------------------------------------------------+<BR> Dr. Ruben Santiago Montero<BR> Associate Professor<BR> Distributed System Architecture Group (<A href="http://dsa-research.org/">http://dsa-research.org</A>)<BR><BR> URL: <A href="http://dsa-research.org/doku.php?id=people:ruben">http://dsa-research.org/doku.php?id=people:ruben</A><BR> Weblog: <A href="http://blog.dsa-research.org/?author=7">http://blog.dsa-research.org/?author=7</A><BR> <BR> GridWay, <A href="http://www.gridway.org/">http://www.gridway.org</A><BR> OpenNEbula, <A href="http://www.opennebula.org/">http://www.opennebula.org</A><BR>+---------------------------------------------------------------+<BR><BR></FONT></P></DIV><P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>
<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</BODY></HTML>