Hi tejas follow following steps
1.Create a network offering without any service ,just select connectivity.
2.Enable that service offering.
3.Create a guest network in which already a dhcp server is running with
above network offering.
4.Created an instance with above guest network.
5.The Cloudstack assigned ip from given pool to guest network.
6.But the instance will get  different ip from dhcp
7.Change the database entry for newly created instance in vm_instance table
,change the private_ip_address entry to new ip.
8.Find the mac of newly created vm .
9.In database go to nics table and change the ip4_address for the mac of
the instance.
10.Finally the change will reflected in cloudstack.




Try to automate the above task.


Thanks
Amar krishna

On Thu, Dec 12, 2013 at 11:17 AM, Jayapal Reddy Uradi <
[email protected]> wrote:

> Hi,
>
> Configure your physical dhcp server to serve IP1 to VM1.
> From the cloudstack deploy vm VM1, specify the IP1 to use for the VM (in
> API).
>
>
> Thanks,
> jayapal
>
>
> On 12-Dec-2013, at 10:25 AM, Tejas Gadaria <[email protected]> wrote:
>
> > Hi Kirk,
> >
> > Thanks for quick replay,
> >
> > I have physical DHCP and DNS server running and I want to assign IP to
> > guest VM's from physical DHCP server.
> > So what should I do.
> >
> > Thanks,
> > Tejas
> >
> >
> > On Thu, Dec 12, 2013 at 10:03 AM, Kirk Kosinski <[email protected]
> >wrote:
> >
> >> Hi, if you configure a CloudStack network without DHCP or completely
> >> without a virtual router, CloudStack cannot configure networking for the
> >> VM.  You will need to configure networking in the VM.  If you have your
> >> own (non-CloudStack) DHCP server for the network, you should configure
> >> it to assign the desired IP settings to the VM.  Or you can manually
> >> configure a static IP in the VM.
> >>
> >> Best regards,
> >> Kirk
> >>
> >> On 12/11/2013 08:21 PM, Tejas Gadaria wrote:
> >>> Hi all,
> >>>
> >>> I have cloud stack configured and working fine with default virtual
> >> router.
> >>>
> >>> In my case i have a VLAN where physical DHCP and DNS server are
> running.
> >>> If i will create virtual router with dhcp ans dns service enabled dhcp
> >> may
> >>> conflict, So I have created NETWORK OFFERING with only connectivity
> and a
> >>> guest network with some specified ip range, so it won't create virtual
> >>> router and guest VM will be assigned IP from physical DHCP server. but
> >> what
> >>> I observed is guest VM has received one IP which is not the same IP
> which
> >>> is shown in INSTANCE DETAIL.
> >>> Even I confirm in mysql database in "nics" table, guest VM ip which
> >>> assigned from physical DHCP server is not updated.
> >>>
> >>> Please guide me what I am missing here.
> >>>
> >>> Thanks.
> >>> Tejas
> >>>
> >>
>
>


-- 
THANKS AND REGARDS
     AMAR KRISHNA
     MOB-8969394494

Reply via email to