You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Saurav Lahiri <sa...@sungardas.com> on 2014/06/19 16:25:33 UTC
Additional nics fails to get ip for ubuntu guest vm
Hello,
We are running an ubuntu 13.10 vm. In addition to the default network,
another nic has been added to the vm. Now when the vm boots up, the new
interface eth1 is seen inside the guest but does not have an ip address.
Executing a "dhclient eth1" does get the correct IP.
A look at the "/etc/network/interaces" file shows an entry corresponding
to the eth0. There is no entry for eth1. On adding an entry for eth1, the
problems appears to get fixed.
Is this manual step to add the additional nics in the interfaces file
missing in the documentation or is this a bug ?
=======
auto eth0
iface eth0 inet dhcp
==========
Thanks
Saurav
Re: Additional nics fails to get ip for ubuntu guest vm
Posted by Saurav Lahiri <sa...@sungardas.com>.
Thanks Carlos. I will check this approach also.
Saurav
On Sat, Jun 21, 2014 at 1:08 AM, Carlos Reátegui <cr...@gmail.com>
wrote:
> Saurav,
> Have you tried checking the meta-data for the VM to see what is there.
> Maybe you can get the additional IPs and statically assign them.
>
> metadata=`grep dhcp-server-identifier /var/lib/dhc*/dhclient.eth0.leases |
> grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | tail -1`
> curl http://$metadata/latest/meta-data/public-ipv4
> curl http://$metadata/latest/meta-data/local-ipv4
> curl http://$metadata/latest/meta-data/
>
>
>
>
> On Jun 20, 2014, at 8:27 AM, Saurav Lahiri <sa...@sungardas.com>
> wrote:
>
> > :-). Once again thanks for the helpful inputs. And sure i will check the
> > AWS templates.
> >
> > Saurav
> >
> >
> > On Fri, Jun 20, 2014 at 8:44 PM, Shanker Balan <
> shanker.balan@shapeblue.com>
> > wrote:
> >
> >> Comments inline.
> >>
> >> On 20-Jun-2014, at 7:25 pm, Saurav Lahiri <sa...@sungardas.com>
> >> wrote:
> >>
> >>> Hello Shanker,
> >>> Appreciate ur inputs. Also I would like to know whats the best practice
> >> in
> >>> pre-populating the interfaces file given that it is not known how many
> >>> additional nics users might want to create on their vms. If we
> >> pre-populate
> >>> eth0 to eth4 with dhcp method in the template will that break anything?
> >>
> >> Running DHCP on multiple interfaces can cause the default gateway
> >> to switch. This has caused me a lot of PITA on AWS EC2 instances.
> >>
> >> I now statically assign the IP Addressed on the non primary interfaces.
> As
> >> far
> >> as template creation goes, I only check for eth0. Its upto the end user
> >> to decide how he wants to get his additional interfaces up.
> >>
> >> If you can, check a AWS CentOS/Ubuntu template on how they handle it.
> >>
> >>
> >>
> >>
> >>
> >>>
> >>> Thanks
> >>> Saurav
> >>>
> >>>
> >>> On Fri, Jun 20, 2014 at 9:33 AM, Shanker Balan <
> >> shanker.balan@shapeblue.com>
> >>> wrote:
> >>>
> >>>> Comments inline.
> >>>>
> >>>> On 19-Jun-2014, at 7:55 pm, Saurav Lahiri <
> saurav.lahiri@sungardas.com>
> >>>> wrote:
> >>>>
> >>>>> Hello,
> >>>>> We are running an ubuntu 13.10 vm. In addition to the default
> network,
> >>>>> another nic has been added to the vm. Now when the vm boots up, the
> >> new
> >>>>> interface eth1 is seen inside the guest but does not have an ip
> >> address.
> >>>>> Executing a "dhclient eth1" does get the correct IP.
> >>>>>
> >>>>> A look at the "/etc/network/interaces" file shows an entry
> >>>> corresponding
> >>>>> to the eth0. There is no entry for eth1. On adding an entry for
> eth1,
> >>>> the
> >>>>> problems appears to get fixed.
> >>>>>
> >>>>> Is this manual step to add the additional nics in the interfaces file
> >>>>> missing in the documentation or is this a bug ?
> >>>>>
> >>>>> =======
> >>>>> auto eth0
> >>>>> iface eth0 inet dhcp
> >>>>> ==========
> >>>>
> >>>>
> >>>> This is change that needs to be done by the creator of the template.
> >>>> CloudStack
> >>>> does not make any changes internal to the template as it does not
> >> (should
> >>>> not)
> >>>> have access to it.
> >>>>
> >>>>
> >>>> --
> >>>> @shankerbalan
> >>>>
> >>>> M: +91 98860 60539 | O: +91 (80) 67935867
> >>>> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> >>>> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade
> >> Centre,
> >>>> Bangalore - 560 055
> >>>>
> >>>> Find out more about ShapeBlue and our range of CloudStack related
> >> services
> >>>>
> >>>> IaaS Cloud Design & Build<
> >>>> http://shapeblue.com/iaas-cloud-design-and-build//>
> >>>> CSForge – rapid IaaS deployment framework<
> http://shapeblue.com/csforge/
> >>>
> >>>> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> >>>> CloudStack Infrastructure Support<
> >>>> http://shapeblue.com/cloudstack-infrastructure-support/>
> >>>> CloudStack Bootcamp Training Courses<
> >>>> http://shapeblue.com/cloudstack-training/>
> >>>>
> >>>> This email and any attachments to it may be confidential and are
> >> intended
> >>>> solely for the use of the individual to whom it is addressed. Any
> views
> >> or
> >>>> opinions expressed are solely those of the author and do not
> necessarily
> >>>> represent those of Shape Blue Ltd or related companies. If you are not
> >> the
> >>>> intended recipient of this email, you must neither take any action
> based
> >>>> upon its contents, nor copy or show it to anyone. Please contact the
> >> sender
> >>>> if you believe you have received this email in error. Shape Blue Ltd
> is
> >> a
> >>>> company incorporated in England & Wales. ShapeBlue Services India LLP
> >> is a
> >>>> company incorporated in India and is operated under license from Shape
> >> Blue
> >>>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
> >> Brasil
> >>>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> >>>> registered trademark.
> >>>>
> >>
> >> --
> >> @shankerbalan
> >>
> >> M: +91 98860 60539 | O: +91 (80) 67935867
> >> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> >> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade
> Centre,
> >> Bangalore - 560 055
> >>
> >> Find out more about ShapeBlue and our range of CloudStack related
> services
> >>
> >> IaaS Cloud Design & Build<
> >> http://shapeblue.com/iaas-cloud-design-and-build//>
> >> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/
> >
> >> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> >> CloudStack Infrastructure Support<
> >> http://shapeblue.com/cloudstack-infrastructure-support/>
> >> CloudStack Bootcamp Training Courses<
> >> http://shapeblue.com/cloudstack-training/>
> >>
> >> This email and any attachments to it may be confidential and are
> intended
> >> solely for the use of the individual to whom it is addressed. Any views
> or
> >> opinions expressed are solely those of the author and do not necessarily
> >> represent those of Shape Blue Ltd or related companies. If you are not
> the
> >> intended recipient of this email, you must neither take any action based
> >> upon its contents, nor copy or show it to anyone. Please contact the
> sender
> >> if you believe you have received this email in error. Shape Blue Ltd is
> a
> >> company incorporated in England & Wales. ShapeBlue Services India LLP
> is a
> >> company incorporated in India and is operated under license from Shape
> Blue
> >> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
> Brasil
> >> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> >> registered trademark.
> >>
> >>
>
>
>
Re: Additional nics fails to get ip for ubuntu guest vm
Posted by Carlos Reátegui <cr...@gmail.com>.
Saurav,
Have you tried checking the meta-data for the VM to see what is there. Maybe you can get the additional IPs and statically assign them.
metadata=`grep dhcp-server-identifier /var/lib/dhc*/dhclient.eth0.leases | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | tail -1`
curl http://$metadata/latest/meta-data/public-ipv4
curl http://$metadata/latest/meta-data/local-ipv4
curl http://$metadata/latest/meta-data/
On Jun 20, 2014, at 8:27 AM, Saurav Lahiri <sa...@sungardas.com> wrote:
> :-). Once again thanks for the helpful inputs. And sure i will check the
> AWS templates.
>
> Saurav
>
>
> On Fri, Jun 20, 2014 at 8:44 PM, Shanker Balan <sh...@shapeblue.com>
> wrote:
>
>> Comments inline.
>>
>> On 20-Jun-2014, at 7:25 pm, Saurav Lahiri <sa...@sungardas.com>
>> wrote:
>>
>>> Hello Shanker,
>>> Appreciate ur inputs. Also I would like to know whats the best practice
>> in
>>> pre-populating the interfaces file given that it is not known how many
>>> additional nics users might want to create on their vms. If we
>> pre-populate
>>> eth0 to eth4 with dhcp method in the template will that break anything?
>>
>> Running DHCP on multiple interfaces can cause the default gateway
>> to switch. This has caused me a lot of PITA on AWS EC2 instances.
>>
>> I now statically assign the IP Addressed on the non primary interfaces. As
>> far
>> as template creation goes, I only check for eth0. Its upto the end user
>> to decide how he wants to get his additional interfaces up.
>>
>> If you can, check a AWS CentOS/Ubuntu template on how they handle it.
>>
>>
>>
>>
>>
>>>
>>> Thanks
>>> Saurav
>>>
>>>
>>> On Fri, Jun 20, 2014 at 9:33 AM, Shanker Balan <
>> shanker.balan@shapeblue.com>
>>> wrote:
>>>
>>>> Comments inline.
>>>>
>>>> On 19-Jun-2014, at 7:55 pm, Saurav Lahiri <sa...@sungardas.com>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>> We are running an ubuntu 13.10 vm. In addition to the default network,
>>>>> another nic has been added to the vm. Now when the vm boots up, the
>> new
>>>>> interface eth1 is seen inside the guest but does not have an ip
>> address.
>>>>> Executing a "dhclient eth1" does get the correct IP.
>>>>>
>>>>> A look at the "/etc/network/interaces" file shows an entry
>>>> corresponding
>>>>> to the eth0. There is no entry for eth1. On adding an entry for eth1,
>>>> the
>>>>> problems appears to get fixed.
>>>>>
>>>>> Is this manual step to add the additional nics in the interfaces file
>>>>> missing in the documentation or is this a bug ?
>>>>>
>>>>> =======
>>>>> auto eth0
>>>>> iface eth0 inet dhcp
>>>>> ==========
>>>>
>>>>
>>>> This is change that needs to be done by the creator of the template.
>>>> CloudStack
>>>> does not make any changes internal to the template as it does not
>> (should
>>>> not)
>>>> have access to it.
>>>>
>>>>
>>>> --
>>>> @shankerbalan
>>>>
>>>> M: +91 98860 60539 | O: +91 (80) 67935867
>>>> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
>>>> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade
>> Centre,
>>>> Bangalore - 560 055
>>>>
>>>> Find out more about ShapeBlue and our range of CloudStack related
>> services
>>>>
>>>> IaaS Cloud Design & Build<
>>>> http://shapeblue.com/iaas-cloud-design-and-build//>
>>>> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/
>>>
>>>> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
>>>> CloudStack Infrastructure Support<
>>>> http://shapeblue.com/cloudstack-infrastructure-support/>
>>>> CloudStack Bootcamp Training Courses<
>>>> http://shapeblue.com/cloudstack-training/>
>>>>
>>>> This email and any attachments to it may be confidential and are
>> intended
>>>> solely for the use of the individual to whom it is addressed. Any views
>> or
>>>> opinions expressed are solely those of the author and do not necessarily
>>>> represent those of Shape Blue Ltd or related companies. If you are not
>> the
>>>> intended recipient of this email, you must neither take any action based
>>>> upon its contents, nor copy or show it to anyone. Please contact the
>> sender
>>>> if you believe you have received this email in error. Shape Blue Ltd is
>> a
>>>> company incorporated in England & Wales. ShapeBlue Services India LLP
>> is a
>>>> company incorporated in India and is operated under license from Shape
>> Blue
>>>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
>> Brasil
>>>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>>>> registered trademark.
>>>>
>>
>> --
>> @shankerbalan
>>
>> M: +91 98860 60539 | O: +91 (80) 67935867
>> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
>> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
>> Bangalore - 560 055
>>
>> Find out more about ShapeBlue and our range of CloudStack related services
>>
>> IaaS Cloud Design & Build<
>> http://shapeblue.com/iaas-cloud-design-and-build//>
>> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
>> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
>> CloudStack Infrastructure Support<
>> http://shapeblue.com/cloudstack-infrastructure-support/>
>> CloudStack Bootcamp Training Courses<
>> http://shapeblue.com/cloudstack-training/>
>>
>> This email and any attachments to it may be confidential and are intended
>> solely for the use of the individual to whom it is addressed. Any views or
>> opinions expressed are solely those of the author and do not necessarily
>> represent those of Shape Blue Ltd or related companies. If you are not the
>> intended recipient of this email, you must neither take any action based
>> upon its contents, nor copy or show it to anyone. Please contact the sender
>> if you believe you have received this email in error. Shape Blue Ltd is a
>> company incorporated in England & Wales. ShapeBlue Services India LLP is a
>> company incorporated in India and is operated under license from Shape Blue
>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>> registered trademark.
>>
>>
Re: Additional nics fails to get ip for ubuntu guest vm
Posted by Saurav Lahiri <sa...@sungardas.com>.
:-). Once again thanks for the helpful inputs. And sure i will check the
AWS templates.
Saurav
On Fri, Jun 20, 2014 at 8:44 PM, Shanker Balan <sh...@shapeblue.com>
wrote:
> Comments inline.
>
> On 20-Jun-2014, at 7:25 pm, Saurav Lahiri <sa...@sungardas.com>
> wrote:
>
> > Hello Shanker,
> > Appreciate ur inputs. Also I would like to know whats the best practice
> in
> > pre-populating the interfaces file given that it is not known how many
> > additional nics users might want to create on their vms. If we
> pre-populate
> > eth0 to eth4 with dhcp method in the template will that break anything?
>
> Running DHCP on multiple interfaces can cause the default gateway
> to switch. This has caused me a lot of PITA on AWS EC2 instances.
>
> I now statically assign the IP Addressed on the non primary interfaces. As
> far
> as template creation goes, I only check for eth0. Its upto the end user
> to decide how he wants to get his additional interfaces up.
>
> If you can, check a AWS CentOS/Ubuntu template on how they handle it.
>
>
>
>
>
> >
> > Thanks
> > Saurav
> >
> >
> > On Fri, Jun 20, 2014 at 9:33 AM, Shanker Balan <
> shanker.balan@shapeblue.com>
> > wrote:
> >
> >> Comments inline.
> >>
> >> On 19-Jun-2014, at 7:55 pm, Saurav Lahiri <sa...@sungardas.com>
> >> wrote:
> >>
> >>> Hello,
> >>> We are running an ubuntu 13.10 vm. In addition to the default network,
> >>> another nic has been added to the vm. Now when the vm boots up, the
> new
> >>> interface eth1 is seen inside the guest but does not have an ip
> address.
> >>> Executing a "dhclient eth1" does get the correct IP.
> >>>
> >>> A look at the "/etc/network/interaces" file shows an entry
> >> corresponding
> >>> to the eth0. There is no entry for eth1. On adding an entry for eth1,
> >> the
> >>> problems appears to get fixed.
> >>>
> >>> Is this manual step to add the additional nics in the interfaces file
> >>> missing in the documentation or is this a bug ?
> >>>
> >>> =======
> >>> auto eth0
> >>> iface eth0 inet dhcp
> >>> ==========
> >>
> >>
> >> This is change that needs to be done by the creator of the template.
> >> CloudStack
> >> does not make any changes internal to the template as it does not
> (should
> >> not)
> >> have access to it.
> >>
> >>
> >> --
> >> @shankerbalan
> >>
> >> M: +91 98860 60539 | O: +91 (80) 67935867
> >> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> >> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade
> Centre,
> >> Bangalore - 560 055
> >>
> >> Find out more about ShapeBlue and our range of CloudStack related
> services
> >>
> >> IaaS Cloud Design & Build<
> >> http://shapeblue.com/iaas-cloud-design-and-build//>
> >> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/
> >
> >> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> >> CloudStack Infrastructure Support<
> >> http://shapeblue.com/cloudstack-infrastructure-support/>
> >> CloudStack Bootcamp Training Courses<
> >> http://shapeblue.com/cloudstack-training/>
> >>
> >> This email and any attachments to it may be confidential and are
> intended
> >> solely for the use of the individual to whom it is addressed. Any views
> or
> >> opinions expressed are solely those of the author and do not necessarily
> >> represent those of Shape Blue Ltd or related companies. If you are not
> the
> >> intended recipient of this email, you must neither take any action based
> >> upon its contents, nor copy or show it to anyone. Please contact the
> sender
> >> if you believe you have received this email in error. Shape Blue Ltd is
> a
> >> company incorporated in England & Wales. ShapeBlue Services India LLP
> is a
> >> company incorporated in India and is operated under license from Shape
> Blue
> >> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in
> Brasil
> >> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> >> registered trademark.
> >>
>
> --
> @shankerbalan
>
> M: +91 98860 60539 | O: +91 (80) 67935867
> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
> Bangalore - 560 055
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> registered trademark.
>
>
Re: Additional nics fails to get ip for ubuntu guest vm
Posted by Shanker Balan <sh...@shapeblue.com>.
Comments inline.
On 20-Jun-2014, at 7:25 pm, Saurav Lahiri <sa...@sungardas.com> wrote:
> Hello Shanker,
> Appreciate ur inputs. Also I would like to know whats the best practice in
> pre-populating the interfaces file given that it is not known how many
> additional nics users might want to create on their vms. If we pre-populate
> eth0 to eth4 with dhcp method in the template will that break anything?
Running DHCP on multiple interfaces can cause the default gateway
to switch. This has caused me a lot of PITA on AWS EC2 instances.
I now statically assign the IP Addressed on the non primary interfaces. As far
as template creation goes, I only check for eth0. Its upto the end user
to decide how he wants to get his additional interfaces up.
If you can, check a AWS CentOS/Ubuntu template on how they handle it.
>
> Thanks
> Saurav
>
>
> On Fri, Jun 20, 2014 at 9:33 AM, Shanker Balan <sh...@shapeblue.com>
> wrote:
>
>> Comments inline.
>>
>> On 19-Jun-2014, at 7:55 pm, Saurav Lahiri <sa...@sungardas.com>
>> wrote:
>>
>>> Hello,
>>> We are running an ubuntu 13.10 vm. In addition to the default network,
>>> another nic has been added to the vm. Now when the vm boots up, the new
>>> interface eth1 is seen inside the guest but does not have an ip address.
>>> Executing a "dhclient eth1" does get the correct IP.
>>>
>>> A look at the "/etc/network/interaces" file shows an entry
>> corresponding
>>> to the eth0. There is no entry for eth1. On adding an entry for eth1,
>> the
>>> problems appears to get fixed.
>>>
>>> Is this manual step to add the additional nics in the interfaces file
>>> missing in the documentation or is this a bug ?
>>>
>>> =======
>>> auto eth0
>>> iface eth0 inet dhcp
>>> ==========
>>
>>
>> This is change that needs to be done by the creator of the template.
>> CloudStack
>> does not make any changes internal to the template as it does not (should
>> not)
>> have access to it.
>>
>>
>> --
>> @shankerbalan
>>
>> M: +91 98860 60539 | O: +91 (80) 67935867
>> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
>> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
>> Bangalore - 560 055
>>
>> Find out more about ShapeBlue and our range of CloudStack related services
>>
>> IaaS Cloud Design & Build<
>> http://shapeblue.com/iaas-cloud-design-and-build//>
>> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
>> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
>> CloudStack Infrastructure Support<
>> http://shapeblue.com/cloudstack-infrastructure-support/>
>> CloudStack Bootcamp Training Courses<
>> http://shapeblue.com/cloudstack-training/>
>>
>> This email and any attachments to it may be confidential and are intended
>> solely for the use of the individual to whom it is addressed. Any views or
>> opinions expressed are solely those of the author and do not necessarily
>> represent those of Shape Blue Ltd or related companies. If you are not the
>> intended recipient of this email, you must neither take any action based
>> upon its contents, nor copy or show it to anyone. Please contact the sender
>> if you believe you have received this email in error. Shape Blue Ltd is a
>> company incorporated in England & Wales. ShapeBlue Services India LLP is a
>> company incorporated in India and is operated under license from Shape Blue
>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>> registered trademark.
>>
--
@shankerbalan
M: +91 98860 60539 | O: +91 (80) 67935867
shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055
Find out more about ShapeBlue and our range of CloudStack related services
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
Re: Additional nics fails to get ip for ubuntu guest vm
Posted by Saurav Lahiri <sa...@sungardas.com>.
Hello Shanker,
Appreciate ur inputs. Also I would like to know whats the best practice in
pre-populating the interfaces file given that it is not known how many
additional nics users might want to create on their vms. If we pre-populate
eth0 to eth4 with dhcp method in the template will that break anything?
Thanks
Saurav
On Fri, Jun 20, 2014 at 9:33 AM, Shanker Balan <sh...@shapeblue.com>
wrote:
> Comments inline.
>
> On 19-Jun-2014, at 7:55 pm, Saurav Lahiri <sa...@sungardas.com>
> wrote:
>
> > Hello,
> > We are running an ubuntu 13.10 vm. In addition to the default network,
> > another nic has been added to the vm. Now when the vm boots up, the new
> > interface eth1 is seen inside the guest but does not have an ip address.
> > Executing a "dhclient eth1" does get the correct IP.
> >
> > A look at the "/etc/network/interaces" file shows an entry
> corresponding
> > to the eth0. There is no entry for eth1. On adding an entry for eth1,
> the
> > problems appears to get fixed.
> >
> > Is this manual step to add the additional nics in the interfaces file
> > missing in the documentation or is this a bug ?
> >
> > =======
> > auto eth0
> > iface eth0 inet dhcp
> > ==========
>
>
> This is change that needs to be done by the creator of the template.
> CloudStack
> does not make any changes internal to the template as it does not (should
> not)
> have access to it.
>
>
> --
> @shankerbalan
>
> M: +91 98860 60539 | O: +91 (80) 67935867
> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
> Bangalore - 560 055
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> registered trademark.
>
Re: Additional nics fails to get ip for ubuntu guest vm
Posted by Shanker Balan <sh...@shapeblue.com>.
Comments inline.
On 19-Jun-2014, at 7:55 pm, Saurav Lahiri <sa...@sungardas.com> wrote:
> Hello,
> We are running an ubuntu 13.10 vm. In addition to the default network,
> another nic has been added to the vm. Now when the vm boots up, the new
> interface eth1 is seen inside the guest but does not have an ip address.
> Executing a "dhclient eth1" does get the correct IP.
>
> A look at the "/etc/network/interaces" file shows an entry corresponding
> to the eth0. There is no entry for eth1. On adding an entry for eth1, the
> problems appears to get fixed.
>
> Is this manual step to add the additional nics in the interfaces file
> missing in the documentation or is this a bug ?
>
> =======
> auto eth0
> iface eth0 inet dhcp
> ==========
This is change that needs to be done by the creator of the template. CloudStack
does not make any changes internal to the template as it does not (should not)
have access to it.
--
@shankerbalan
M: +91 98860 60539 | O: +91 (80) 67935867
shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055
Find out more about ShapeBlue and our range of CloudStack related services
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.