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 9D02310EA4 for ; Thu, 27 Jun 2013 09:06:49 +0000 (UTC) Received: (qmail 79061 invoked by uid 500); 27 Jun 2013 09:06:47 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 79011 invoked by uid 500); 27 Jun 2013 09:06:40 -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 78999 invoked by uid 99); 27 Jun 2013 09:06:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 09:06:36 +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 Murali.Reddy@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jun 2013 09:06:27 +0000 X-IronPort-AV: E=Sophos;i="4.87,950,1363132800"; d="scan'208";a="3386023" Received: from sinpex01cl02.citrite.net ([10.151.46.33]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/AES128-SHA; 27 Jun 2013 09:06:05 +0000 Received: from SINPEX01CL01.citrite.net ([169.254.1.101]) by SINPEX01CL02.citrite.net ([169.254.2.136]) with mapi id 14.02.0342.004; Thu, 27 Jun 2013 17:06:03 +0800 From: Murali Reddy To: "users@cloudstack.apache.org" Subject: Re: How can I allocate a specific IP when I create an instance. Thread-Topic: How can I allocate a specific IP when I create an instance. Thread-Index: AQHOcmT+00REI5DF6EC/7UJ5Qd25ZJlHnQ6AgAACLQCAABtzgIAADdkAgAAxdYCAASJjgA== Date: Thu, 27 Jun 2013 09:06:03 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 x-originating-ip: [10.13.107.80] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On 27/06/13 2:46 AM, "Geoff Higginbottom" wrote: >@Dave: you are right about advanced networks but the original question >was in relation to basic networking. > >@All: I did some testing over a year ago around changing IPs for guest. >For a VM on and advanced network you can edit the IP directly in the >database but restarting the VM is not enough, you have to also restart >the virtual Router for that network. > >The new 4.1 add NIC API call Dave is referring to is great and to me one >of the best new features of 4.1, but again it's only for advanced >networking so no good for the original problem. > >The multiple IPs to a single NIC has been discussed a lot, but I believe >it is still in development. Multiple Ip per nic is going in 4.2 [1]. Also in 4.2, you can reserve a sub-range of guest CIDR that user can control and assign to the VM's [2] but again this is only in advanced network. [1]=20 https://cwiki.apache.org/confluence/display/CLOUDSTACK/Multiple+IP+address+ per+NIC [2]=20 https://cwiki.apache.org/confluence/display/CLOUDSTACK/IP+Range+Reservation +within+a+Network > >Regards > >Geoff Higginbottom >CTO / Cloud Architect > >D: +44 20 3603 0542 | S: +44 20 3603 >0540| M: +447968161581 > >geoff.higginbottom@shapeblue.com >|www.shapeblue.com | Twitter:@shapeblue > >ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS > > >On 26 Jun 2013, at 11:22, "Dave Dunaway" >> wrote: > >@Geoff: Of course we are talking advanced networking, and having >consideration of what your networks are that you can use. If someone wants >to put a 10.x.x.x ip on a VM that is on a 192.x.x.x network, then they can >gladly shoot themselves in the foot. Ideally the person making such a >change understands the 'basic's of advanced networking in CloudPlatform. >Otherwise they should stick the UI.;) > >@Jason: Look in the cloud.nics table. The nics for VMs are defined here. >Modify as needed. A restart of the VM to make sure it all works is highly >recommended. > >In our testing environment I can move a VM from one network to another, >add >nics, change IP's etc quite easily. Some of the 4.1 API will add this >functionality (add nics for example to an existing VM). But there's still >a >lot of immutable things in CloudPlatform that shouldn't be, and that >maybe >one day will be a feature. We just need to make the requests for those >features. > > > > > > >On Wed, Jun 26, 2013 at 1:30 PM, Jason Pavao >> wrote: > >Do you by chance have a sample sql query that would perform this? > > > >On 6/26/2013 8:51 AM, Dave Dunaway wrote: > >There should be a way to have the ability to reserve an IP and still have >DHCP assign the IP by mac reservation. There's no technical reason this >wouldn't work and likely a feature a lot of people would love to see. The >only hold back is the UI not allowing you to do so. > >Ultimately, you can go to the DB and change the VM's IP in the nics table >to what you want (reboot the VM and the IP change will occur). Which is >not >the preferred way to do so, but ultimately that functionality from the UI >would be ideal. > >Even going as far as intergrating IPAM functionality into the product >would >be ideal. > > >On Wed, Jun 26, 2013 at 11:44 AM, Geoff Higginbottom < >geoff.higginbottom@shapeblue.**com > >>> >wrote: > >Simple answer - you can't. > >In an advanced zone, you can specify the IP address when you create a new >VM using the API, however in a basic zone, because the IP will depend on >which POD your VM ends up in, and as a user you cannot influence this, >there is no way to specific the IP, even if you are a root admin. > >The reason it still fails when you manually change the IP is that the >security groups feature is expecting the VM to have the IP CloudStack >allocated it via DHCP. > >Regards > >Geoff Higginbottom >CTO / Cloud Architect > > >D: +44(0)20 3603 0542 | S: +44(0)20 3603 0540+442036030540> | M: +44(0)7968161581 > >geoff.higginbottom@shapeblue.**com > >> >ginbottom@shapeblue.com> > >| www.shapeblue.com > >ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS > > > >On 26 Jun 2013, at 05:02, "WXR" ><474745079@qq.com>> >wrote: > >cloudstack version: 4.1 >network type: basic network > >When I create a new instance,the vm will get a random IP from the DHCP >server on vrouter. > >If I want to: >1.allocate a specific ip to the vm. >2.allocate multiple ips to the vm. >3.change the vm ip from one to another. > >How can I achieve it? I try to bind the ip to the vm nic manually but the >ip can not be accessed. >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 >operated under license from Shape Blue Ltd. ShapeBlue is a registered >trademark. > > >-- >Thanks. >-Jason > > >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 operated under license from Shape Blue Ltd. >ShapeBlue is a registered trademark. >