Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 182CE10F89 for ; Tue, 11 Mar 2014 13:04:35 +0000 (UTC) Received: (qmail 26172 invoked by uid 500); 11 Mar 2014 13:04:33 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 26146 invoked by uid 500); 11 Mar 2014 13:04:32 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 26138 invoked by uid 99); 11 Mar 2014 13:04:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 13:04:31 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sanjeev.neelarapu@citrix.com designates 103.14.252.240 as permitted sender) Received: from [103.14.252.240] (HELO SMTP.CITRIX.COM.AU) (103.14.252.240) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2014 13:04:27 +0000 X-IronPort-AV: E=Sophos;i="4.97,630,1389744000"; d="scan'208";a="3579103" Received: from sinaccessns.citrite.net (HELO SINPEX01CL02.citrite.net) ([10.151.60.9]) by sinpip01.citrite.net with ESMTP; 11 Mar 2014 13:04:05 +0000 Received: from SINPEX01CL01.citrite.net ([169.254.1.253]) by SINPEX01CL02.citrite.net ([169.254.2.128]) with mapi id 14.02.0342.004; Tue, 11 Mar 2014 21:04:04 +0800 From: Sanjeev Neelarapu To: "users@cloudstack.apache.org" Subject: RE: Fail to configure network interface when booting VM Thread-Topic: Fail to configure network interface when booting VM Thread-Index: AQHPPFC6znWq4ARXSkizVp0UJf7y1prZpAOAgAAEV4CAAAJvgIABq1eA//+BNgCAADObAIAA0JPA Date: Tue, 11 Mar 2014 13:04:04 +0000 Message-ID: References: <2B70DD8F-BA0F-45B9-8F91-44624814078D@citrix.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.252.193.27] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP: SIN1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Check that the switch port to which hostB is connected is configured as tru= nk port and allowed all the vlans being used in CS. -Sanjeev -----Original Message----- From: Du Jun [mailto:dj199008@gmail.com]=20 Sent: Tuesday, March 11, 2014 2:05 PM To: users Subject: Re: Fail to configure network interface when booting VM The most strange thing is that: 1) The VM which is running in host A can access the internet and can be acc= essed from the outside. But, when I migrate it from host A to host B. I can= neither access the internet nor can be accessed from the outside! 2) The VM which is running in host B can neither access the internet nor ca= n be accessed from the outside at begging. But, when I migrate it from host= B to host A. I can either access the internet or can be accessed from the = outside! Is there anyone can help me explain it? BTW, I think host B is very suspicious, and I would like to provide you wit= h the information of my host B. $ ifconfig -a cloudbr0 Link encap:Ethernet HWaddr e0:db:55:25:fb:14 inet addr:10.10.101.107 Bcast:10.10.101.255 Mask:255.255.255.0 inet6 addr: fe80::e2db:55ff:fe25:fb14/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11114025 errors:0 dropped:35 overruns:0 frame:0 TX packets:9141766 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:45818581471 (45.8 GB) TX bytes:23705891021 (23.7 GB) (ps: host A is also with cloud bridge "cloudbr0", and its IP address is 10.10.101.103) $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.10.101.254 0.0.0.0 UG 100 0 0 cloudbr0 10.10.101.0 0.0.0.0 255.255.255.0 U 0 0 0 cloudbr0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 cloud0 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 (ps:host B can access the internet) -- Regards, Du Jun 2014-03-11 13:30 GMT+08:00 Du Jun : > Hi Neelarapu, > > I am sorry that I did not describe my situation clearly. I am using=20 > ubuntu, and output of `ifconfig -a` shows the name of interface is=20 > "eth0", it has mac address. > > When I have a look at /etc/network/interfaces, it shows: > auto eth0 > iface eth0 inet dhcp > > What's more, I use the same template in the host A, and the interfaces=20 > of VM is okay. > > BTW, from web UI, I can see the nic of the VM, but the ip address is=20 > missing when I type `ifconfig -a`. It's so strange! > > -- > Regards, > Du Jun > > > 2014-03-11 13:06 GMT+08:00 Sanjeev Neelarapu=20 > >: > > Hi Jun, >> >> There could be some issue with the template with which you deployed vm. >> Please check "ifconfig -a" output in vm booted on hostB. >> This will give the interface name and make sure that network-scripts=20 >> directory has a file with the interface name. >> >> -Sanjeev >> >> -----Original Message----- >> From: Du Jun [mailto:dj199008@gmail.com] >> Sent: Monday, March 10, 2014 5:05 PM >> To: users >> Subject: Re: Fail to configure network interface when booting VM >> >> BTW, the /etc/cloudstack/agent/agent.properties is shown below: >> #Storage >> #Mon Mar 10 16:59:56 CST 2014 >> guest.network.device=3Dcloudbr0 >> workers=3D5 >> private.network.device=3Dcloudbr0 >> port=3D8250 >> resource=3Dcom.cloud.hypervisor.kvm.resource.LibvirtComputingResource >> pod=3D1 >> zone=3D1 >> guid=3De2e402df-6e65-3e08-a680-35ecfb39716b >> public.network.device=3Dcloudbr0 >> cluster=3D1 >> local.storage.uuid=3D05d6ad68-fdd0-4041-8371-a592727d57d4 >> domr.scripts.dir=3Dscripts/network/domr/kvm >> LibvirtComputingResource.id=3D10 >> host=3D10.10.101.103 >> >> We can see that, guest, private and public all use the network bridge=20 >> "cloudbr0". And, route table in my agent host(B) is like that: >> root@ubuntu-7:~# route -n >> Kernel IP routing table >> Destination Gateway Genmask Flags Metric Ref Use >> Iface >> 0.0.0.0 10.10.101.254 0.0.0.0 UG 100 0 0 >> cloudbr0 >> 10.10.101.0 0.0.0.0 255.255.255.0 U 0 0 0 >> cloudbr0 >> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 >> cloud0 >> 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 >> virbr0 >> >> It seems all okay. I wonder what I have missed? >> >> -- >> Best Regards, >> Du Jun >> >> >> >> 2014-03-10 19:26 GMT+08:00 Du Jun : >> >> > Hi Bharat, >> > >> > Thank you for your prompt reply. As I am new to CloudStack, I have=20 >> > 2 questions to consult you. >> > >> > >check if host B has the systemvm.iso in it. if not copy it=20 >> > >manually from >> > host A. >> > Where can I check if host B has the systemvm.iso? >> > >> > >before adding the host make sure the host tags are cleared. >> > When I add the host B, the tag of the host is empty. After adding=20 >> > the host, I add a tag for host B so that I can always put the VM to=20 >> > host B for testing purpose. Does it matter? >> > >> > Thanks! >> > -- >> > Best Regards, >> > Du Jun >> > >> > >> > 2014-03-10 19:10 GMT+08:00 Bharat Kumar : >> > >> > Hi Jun, >> >> >> >> check if host B has the systemvm.iso in it. if not copy it=20 >> >> manually from host A. >> >> >> >> cloudstack generally dose this for you when you add a host for the=20 >> >> first time. >> >> before adding the host make sure the host tags are cleared. >> >> >> >> Regards, >> >> Bharat. >> >> On 10-Mar-2014, at 4:35 pm, Du Jun wrote: >> >> >> >> > Hi all, >> >> > >> >> > I am using CloudStack4.2 advanced zone in Ubuntu12.04. I use=20 >> >> > host >> >> > A(10.10.101.103) as my management server, and use host >> >> > B(10.10.101.107) >> >> as >> >> > my agent host. I meet a problem that the VM booted in host B=20 >> >> > fail to configure network interface when boot up. In other=20 >> >> > words, when I type `ifconfig` in VM booted in host B, I find the=20 >> >> > IP address is >> missing! >> >> > However, there is no problem with the VM booted in host A. >> >> > >> >> > BTW, I both add a network bridge "cloudbr0" in management=20 >> >> > server(A) and agent host(B). Both server A and B can access the=20 >> >> > internet and I can >> >> access >> >> > them from outside. So, I have no idea now. Can anyone tell me=20 >> >> > how to >> >> debug >> >> > or provide me with some clue? Thanks! >> >> > >> >> > -- >> >> > Best Regards, >> >> > Frank >> >> >> >> >> > >> > >