[one-users] Need information on getting VM's IP address

lalithamba.vishwanathaiah at wipro.com lalithamba.vishwanathaiah at wipro.com
Mon Feb 2 07:05:29 PST 2009


Hi Ruben,
 
Following are the templates for VNet and VM which I have submitted.
 
The VNet template is as shown below : 
 
NAME="Public VLAN"
TYPE=FIXED
BRIDGE=eth0
LEASES=[IP=10.101.102.100]
 
 
Output : onevnet show 0
 
NID               : 0
UID               : 0
Network Name      : Public VLAN
Type              : Fixed
Bridge            : eth0
....: Template :....
        BRIDGE=eth0
        HOSTNAME=10.101.102.100
        LEASES=IP=10.101.102.100
        NAME=Public VLAN
        TYPE=FIXED
....: Leases :....
IP = 10.101.102.100 MAC = 00:03:0a:65:66:64  USED = 1 VID = 0

In this case, the MAC address what formed as a combination of 

MAC_ADDRESS = MAC_PREFFIX:IP_IN_HEXADECIMAL

where MAC_PREFIX=00:03 in oned.conf

----------------------------------------------------------------------------------
The VM Template is :
 
NAME    = nodev1m
CPU      = 0.5
MEMORY   = 256
bootargs = "--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen"
OS       = [bootloader = "/usr/lib/xen/boot/domUloader.py"]
DISK     = [source="/home/cloud/vm-image/disk0",target="xvda", BOOT="true", read
only="no"]
NIC     = [network="Public VLAN"]
GRAPHICS = [
  type    = "vnc",
  listen  = "127.0.0.1",
  port    = "9999"]

----------------------------------------------------------------------------------
 
When xen creates the VM and boots it, DHCP assigns the IP address dynamically to Guest VM.
In this case, how do we get the IP address of Guest VM using Open Nebula ?

Thanks and Regards,
Lalithamba.


________________________________

From: Ruben S. Montero [mailto:rubensm at dacya.ucm.es]
Sent: Mon 02-Feb-09 6:05 PM
To: users at lists.opennebula.org
Cc: Lalithamba Vishwanathaiah (WT01 - Innovation Group)
Subject: Re: [one-users] Need information on getting VM's IP address



Hi,
        onevm show <VMID> should do the job. The command output, under the Template,
in the NIC attribute should show you the IP

Best

Ruben

On Monday 02 February 2009 12:36:59 lalithamba.vishwanathaiah at wipro.com wrote:
> Hi,
>
> I am new to OpenNebula.
>
> Once a VM is deployed using "onevm create" command, its starting up VM with
> a specific IP address & MAC. Is there any way to get hold of this ip
> address ?
>
> Is there any method /command in Opennebula to get the IP address of the VM
> ?
>
> Many Thanks.
>
> Thanks and Regards,
> Lalithamba.
>
>
>
> Please do not print this email unless it is absolutely necessary.
>
> 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.
>
> 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.
>
> www.wipro.com

--
+---------------------------------------------------------------+
 Dr. Ruben Santiago Montero
 Associate Professor
 Distributed System Architecture Group (http://dsa-research.org <http://dsa-research.org/> )

 URL:    http://dsa-research.org/doku.php?id=people:ruben
 Weblog: http://blog.dsa-research.org/?author=7
            
 GridWay, http://www.gridway.org <http://www.gridway.org/> 
 OpenNEbula, http://www.opennebula.org <http://www.opennebula.org/> 
+---------------------------------------------------------------+




Please do not print this email unless it is absolutely necessary. 

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. 

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. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20090202/59d50e83/attachment-0003.htm>


More information about the Users mailing list