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 CC824104E7 for ; Wed, 4 Sep 2013 09:09:56 +0000 (UTC) Received: (qmail 88135 invoked by uid 500); 4 Sep 2013 09:09:55 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 87886 invoked by uid 500); 4 Sep 2013 09:09:55 -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 87788 invoked by uid 99); 4 Sep 2013 09:09:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 09:09:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shanker.balan@shapeblue.com designates 213.199.154.84 as permitted sender) Received: from [213.199.154.84] (HELO emea01-db3-obe.outbound.protection.outlook.com) (213.199.154.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Sep 2013 09:09:48 +0000 Received: from AMSPR07MB068.eurprd07.prod.outlook.com (10.242.90.22) by AMSPR07MB068.eurprd07.prod.outlook.com (10.242.90.22) with Microsoft SMTP Server (TLS) id 15.0.745.25; Wed, 4 Sep 2013 09:09:21 +0000 Received: from AMSPR07MB068.eurprd07.prod.outlook.com ([169.254.9.24]) by AMSPR07MB068.eurprd07.prod.outlook.com ([169.254.9.24]) with mapi id 15.00.0745.000; Wed, 4 Sep 2013 09:09:21 +0000 From: Shanker Balan To: "" Subject: Re: how to pass kernel parameters to VMs Thread-Topic: how to pass kernel parameters to VMs Thread-Index: AQHOqOrXuGH6fEIFeEOhUpOQAQmePJm1SwgA Date: Wed, 4 Sep 2013 09:09:21 +0000 Message-ID: <01437E97-D3A2-45A4-A7CD-FDAF3157CBF2@shapeblue.com> References: <52265181.1000505@oracle.com> In-Reply-To: <52265181.1000505@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.167.241.68] x-forefront-prvs: 095972DF2F x-forefront-antispam-report: SFV:NSPM;SFS:(377454003)(51704005)(189002)(199002)(13734003)(24454002)(53754006)(63696002)(69226001)(46102001)(66066001)(54356001)(15974865002)(50986001)(47976001)(53806001)(74876001)(19580395003)(83322001)(19580405001)(77096001)(82746002)(56816003)(80022001)(74706001)(59766001)(77982001)(74366001)(79102001)(54316002)(81342001)(76796001)(76786001)(56776001)(74662001)(47446002)(74502001)(31966008)(76482001)(51856001)(36756003)(81816001)(80976001)(49866001)(81686001)(81542001)(65816001)(47736001)(33656001)(4396001)(83072001)(83716001)(491001);DIR:OUT;SFP:;SCL:1;SRVR:AMSPR07MB068;H:AMSPR07MB068.eurprd07.prod.outlook.com;CLIP:122.167.241.68;RD:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="iso-8859-1" Content-ID: <0424721490185D4F8CAC45CE865A3253@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: shapeblue.com X-Virus-Checked: Checked by ClamAV on apache.org On 04-Sep-2013, at 2:45 AM, Steve Roth wrote: > Hi all, > > Is there any way when starting a VM to override/pass kernel parameters, s= uch as single? (for single-user mode) Here is how I do it: 1) Open a console session to the VM 2) Reboot 3) Wait for boot loader prompt 4) Modify kernel boot options as applicable 5) Boot kernel > > I guess this presumes Linux VMs. > > We're looking for a way to pass a 'purpose' to a VM (other than its name)= . One way would appear to be the 'userdata' field in the deployVirtualMac= hine API (presuming there is a way to fetch this value once the VM boots u= p). I'm just wondering if we could use a kernel parameter as well. > > If it's helpful, we are using KVM as our hypervisor. This is a little trick I did at previous $work: 1) All hosts are set to PXE boot first and then local HDD 2) For any host that needed a "rescue", PXE boot settings were put in place= with the correct hex id 3) Reboot host 4) Host picks up the netboot kernel with the special boot options and the c= orrect root disk 5) Host lands into rescue mode 6) Rescue the OS using the console 7) Remove the PXE boot config 8) Reboot host, host boots as usual Hth. -- @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, B= angalore - 560 055 This email and any attachments to it may be confidential and are intended s= olely for the use of the individual to whom it is addressed. Any views or o= pinions expressed are solely those of the author and do not necessarily rep= resent those of Shape Blue Ltd or related companies. If you are not the int= ended 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 y= ou believe you have received this email in error. Shape Blue Ltd is a compa= ny incorporated in England & Wales. ShapeBlue Services India LLP is operate= d under license from Shape Blue Ltd. ShapeBlue is a registered trademark.