Return-Path: X-Original-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC465CE86 for ; Mon, 13 Aug 2012 17:38:20 +0000 (UTC) Received: (qmail 69480 invoked by uid 500); 13 Aug 2012 17:38:20 -0000 Delivered-To: apmail-incubator-cloudstack-users-archive@incubator.apache.org Received: (qmail 69369 invoked by uid 500); 13 Aug 2012 17:38:20 -0000 Mailing-List: contact cloudstack-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-users@incubator.apache.org Delivered-To: mailing list cloudstack-users@incubator.apache.org Received: (qmail 69360 invoked by uid 99); 13 Aug 2012 17:38:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 17:38:20 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alena.Prokharchyk@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 17:38:15 +0000 X-IronPort-AV: E=Sophos;i="4.77,761,1336363200"; d="scan'208";a="34486752" Received: from sjcpmailmx02.citrite.net ([10.216.14.75]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 13 Aug 2012 13:37:54 -0400 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX02.citrite.net ([10.216.14.75]) with mapi; Mon, 13 Aug 2012 10:37:54 -0700 From: Alena Prokharchyk To: "cloudstack-users@incubator.apache.org" Date: Mon, 13 Aug 2012 10:37:54 -0700 Subject: Re: change / replace public ip range Thread-Topic: change / replace public ip range Thread-Index: Ac15el4wNARPk/UETFmJpXd77f4+HQ== 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.0.120402 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On 8/13/12 10:32 AM, "mpatton@inforelay.com" wrote: >> The IP address stays with the vm for the entire life cycle, till it's >> expunged. > >I hope I misunderstood what you meant by "expunged". Expunged means that the vm is destroyed and can't be restored (its volumes are removed from storage, all ip addresses that used to belong to vm's nic are released, etc) > >> * Change the record in nics table for all vms nics to have new ip >>address >> * restart the guest network >> * stop/start ALL user vms in network > >Talk about "doing it wrong". It's a simple NAT rule. Just modify the >ruleset and reload it at the router. The guest doesn't care what it's >public IP is. Rebooting guests is uncalled for. It depends on the type of the network. If it's an Isolated network, then reboot user vms is not needed as all user vms are using ips from the guest range. Then you are right, the ip address should be changed just for the virtual router nic, and restart network is sufficient enough. If the network is Shared, then Ips of the vms are being allocated from user_ip_address table. And if you want to change IP addresses range, then user vms have to be restarted as well. > >If you're talking about changing the private/internal IP|VLAN of a guest, >at most you rewrite the .VMX or it's equivalent and poweroff/on (or in >kvm/xen "how-badly-can-we-misname-a-function speak" destroy/create) the >VM. > >I can edit a guest's network setting all day long in VMware with the VM >live, no less and replumb (move the interface from one port group to >another) while I'm at it. I realize KVM/Xen are inferior hypervisors, but >CS shouldn't introduce unnecessary disruption. > >