cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cindy Jiang <cji...@infoblox.com>
Subject Re: IP Address assigned by CS is not passed to new instance VM
Date Fri, 02 Aug 2013 18:30:50 GMT
I turned off all external DHCP servers in this network and tried again.
This time, no more IP being assigned… I can see that VM was trying to
grasp a IP from DHCP lease but couldn't; then send DHCP request through
ethernet0, but appears to get nothing.

I was able to do with some guest VM with built-in template before, some
get the correct IPs, but some just went to external DHCP server and get
one; this time, it fails to get anything.

Bringing up loopback interface lo ..................................... [
OK  ]
udhcpc (v1.13.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
Starting DHCP forEthernet interface eth0 .............................. [
OK  ]
Starting dropbrear SSH server:



% ifconfig
eth0      Link encap:Ethernet  HWaddr 06:0C:F8:00:00:27
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1847 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:173875 (169.7 KiB)  TX bytes:19938 (19.4 KiB)
          Interrupt:7

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)






On 8/2/13 10:17 AM, "Chiradeep Vittal" <Chiradeep.Vittal@citrix.com> wrote:

>You shouldn't have any other DHCP servers in the network.
>Besides that it seems to be an issue specific to the CentOS template. Did
>the "builtin" Centos 5.3 template work?
>
>On 8/2/13 9:32 AM, "Cindy Jiang" <cjiang@infoblox.com> wrote:
>
>>Hi Chiradeep,
>>
>>Thanks. "Dhclient eth0" would assign a IP address to my VM, but it is a
>>different IP instead of the IP Address assigned by CS.
>>
>>Moreover, what we are trying to do is to automate the VM provisioning
>>process, similar to what sriharsha said in his email, and the manual
>>enablement with DHCP is not desired…
>>
>>Thanks,
>>Cindy
>>
>>
>>
>>On 8/1/13 2:50 PM, "Chiradeep Vittal" <Chiradeep.Vittal@citrix.com>
>>wrote:
>>
>>>You cannot attach anything or use HTML on Apache mailing lists.
>>>Can you try and bring up the interface up manually
>>>ifconfig eth0 up
>>>dhclient eth0
>>>
>>>Does the "built-in" template work?
>>>
>>>On 8/1/13 2:45 PM, "Cindy Jiang" <cjiang@infoblox.com> wrote:
>>>
>>>>Somehow I can't attach screenshots. So I copy the outputs of this
>>>>CentOS
>>>>instance here. As you can see, the ethernet0 interface configuration
>>>>doesn't contain any ip address or default gateway information, even
>>>>though Cloudstack assigns these information correctly.
>>>>[root@localhost network-scripts]# ifconfig
>>>>lo        Link encap:Local Loopback
>>>>          inet addr:127.0.0.1  Mask:255.0.0.0
>>>>          inet6 addr: ::1/128 Scope:Host
>>>>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>>>>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>          collisions:0 txqueuelen:0
>>>>          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>>>>
>>>>[root@localhost network-scripts]# hostname
>>>>Localhost.localdomain
>>>>[root@localhost network-scripts]# cat ifcfg-eth0
>>>>DEVICE="eth0"
>>>>HWADDR="06:57:6E:00:00:2A"
>>>>NM_CONTROLLED="yes"
>>>>ONBOOT="no"
>>>>
>>>>From: Cindy Jiang <cjiang@infoblox.com<mailto:cjiang@infoblox.com>>
>>>>Reply-To: 
>>>>"users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>"
>>>><users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>
>>>>Date: Thursday, August 1, 2013 2:34 PM
>>>>To: "users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>"
>>>><users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>,
>>>>Soheil
>>>>Eizadi <seizadi@infoblox.com<mailto:seizadi@infoblox.com>>
>>>>Subject: Re: IP Address assigned by CS is not passed to new instance VM
>>>>
>>>>Attach the screenshots
>>>>
>>>>[cid:CFDFC580-184D-4F0E-AF41-5AF18794D413][cid:7E1641EF-DEBC-4A25-90B3-
>>>>3
>>>>B
>>>>1
>>>>32C1A66B0]
>>>>
>>>>[cid:DA5AC137-FC18-4A63-9367-7583EB1A6940]
>>>>
>>>>From: Cindy Jiang <cjiang@infoblox.com<mailto:cjiang@infoblox.com>>
>>>>Reply-To: 
>>>>"users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>"
>>>><users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>
>>>>Date: Thursday, August 1, 2013 2:24 PM
>>>>To: "users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>"
>>>><users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>,
>>>>Soheil
>>>>Eizadi <seizadi@infoblox.com<mailto:seizadi@infoblox.com>>
>>>>Subject: IP Address assigned by CS is not passed to new instance VM
>>>>
>>>>Hello,
>>>>
>>>>We are trying to create a new instance with basic networking setup
>>>>using
>>>>CentOS 6.0 ISO. Cloudstack assigns the correct IP Address (in my case:
>>>>10.60.176.110) to this new centOS instance, but once you log into this
>>>>VM, check "ifconfig" and "/etc/sysconfig/network-scripts/ifcfg-eth0",
>>>>the
>>>>IP Address and default gateway information are not passed through
>>>>correctly. The same issue with hostname ­ instead of "centos-107", it
>>>>shows as "localhost.localdomain". Please see attached screenshots. Has
>>>>anyone experienced the similar issue?
>>>>
>>>>Our environment:
>>>>
>>>>  1.  CS 4.2
>>>>  2.  XenServer 6.0.2
>>>>  3.  CentOS 6.0 ISO
>>>>
>>>>Thanks,
>>>>Cindy
>>>
>>
>

Mime
View raw message