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 9DF00E747 for ; Fri, 25 Jan 2013 02:27:10 +0000 (UTC) Received: (qmail 43342 invoked by uid 500); 25 Jan 2013 02:27:10 -0000 Delivered-To: apmail-incubator-cloudstack-users-archive@incubator.apache.org Received: (qmail 43321 invoked by uid 500); 25 Jan 2013 02:27:10 -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 43302 invoked by uid 99); 25 Jan 2013 02:27:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2013 02:27:10 +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 pranav.saxena@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; Fri, 25 Jan 2013 02:27:05 +0000 X-IronPort-AV: E=Sophos;i="4.84,534,1355097600"; d="scan'208";a="544007" Received: from banpmailmx01.citrite.net ([10.103.128.73]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 25 Jan 2013 02:26:29 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.71]) by BANPMAILMX01.citrite.net ([10.103.128.73]) with mapi; Fri, 25 Jan 2013 07:55:59 +0530 From: Pranav Saxena To: "cloudstack-users@incubator.apache.org" , Jake G. Date: Fri, 25 Jan 2013 07:55:59 +0530 Subject: RE: Custom instance names ? Thread-Topic: Custom instance names ? Thread-Index: Ac36m8g/S7rdOM6oStWcjVgYe7IFswABgBsA Message-ID: <67EF18FDCA335F489B366120481AB6C5F6BC7C832A@BANPMAILBOX01.citrite.net> References: <1359021487.32490.YahooMailNeo@web163002.mail.bf1.yahoo.com> <67EF18FDCA335F489B366120481AB6C5F6BC7C824C@BANPMAILBOX01.citrite.net> <1359077489.4967.YahooMailNeo@web163002.mail.bf1.yahoo.com> In-Reply-To: <1359077489.4967.YahooMailNeo@web163002.mail.bf1.yahoo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org HI Jake , When you would cloned the incubator-cloudstack repository , you just need t= o navigate to this path within it - core/src/com/cloud/vm/VirtualMachineNam= e.java . Hope you are able to find this. Thanks, Pranav -----Original Message----- From: Jake G. [mailto:dj_dark_junglist@yahoo.com]=20 Sent: Friday, January 25, 2013 7:01 AM To: cloudstack-users@incubator.apache.org Subject: Re: Custom instance names ? Hi Pranav, Thanks for the reply. I cannot seem to find the file VirtualMachineName.jav= a on my management server. Would you happen to know the full path? I installed this cloudstack from a repository and not from source as per th= e official installation documentation. Best regards, Jake ________________________________ From: Pranav Saxena To: "cloudstack-users@incubator.apache.org" ; Jake G. =20 Sent: Thursday, January 24, 2013 8:12 PM Subject: RE: Custom instance names ? =20 Hey Jake , I think this should be very much possible but would require some effort to = modify the java code here - incubator-cloudstack/core/src/com/cloud/vm/Virt= ualMachineName.java . This file tries to use the StringBuilder class to gen= erate the VM name ( instance or router VM etc) and writing it to the db. Thanks, Pranav -----Original Message----- From: Jake G. [mailto:dj_dark_junglist@yahoo.com]=20 Sent: Thursday, January 24, 2013 3:28 PM To: cloudstack-users@incubator.apache.org Subject: Custom instance names ? Hi All, Wondering if it is possible to include the Account Name or User Name in the= instance name that is auto-created by cloudstack 4.0 (vCenter 5). Example: Current naming schema -> i-50-VM Custom naming schema -> i-50-VM-companyA =A0 or =A0=A0i-50-VM-companyA-jims= mith Seems like it should be possible with some variables added somewhere, but n= ot sure. Thank you for all your help! Jake