Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE73EED34 for ; Fri, 8 Feb 2013 03:28:09 +0000 (UTC) Received: (qmail 63908 invoked by uid 500); 8 Feb 2013 03:28:08 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 63850 invoked by uid 500); 8 Feb 2013 03:28:07 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 63827 invoked by uid 99); 8 Feb 2013 03:28:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 03:28:07 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rohityadav89@gmail.com designates 209.85.210.169 as permitted sender) Received: from [209.85.210.169] (HELO mail-ia0-f169.google.com) (209.85.210.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 03:28:03 +0000 Received: by mail-ia0-f169.google.com with SMTP id j5so3814274iaf.0 for ; Thu, 07 Feb 2013 19:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=OFKYbxOF6t9qnIMtbh3/XJ3wqwt+p/sbjxChFUy7Js0=; b=Oa7YsEIFVLRHu0IFKCB8+oDLxnNbiJE8vnK0kaRmn43wlFBAeA6Q4vy3T5qB7Z80rV taPPtP1KGgG/KsEQti4mZccsflvOO3UtnPyow6UwzoJwiuG8Q8Gk8d7SQNlIvVndtJ7A MnVs30k11SrN2gXru0tiKWQh6GPr7L+VuoCJDZkHsjLJ4jnMF/ThmV4ik6TuRSuj7agu N6Yjj8IaQQcIXfk0cvUTGd7CFs51Z2YnF2qV5zHOt3YCKOfPx2jDKvRUuv3yrIZ06nqI esRGmImf7rHio+gV7bUTtERQBVt6Z8Y+x8i3hIUNSvusX9JzibgdRiRm7cIVXqHy3PYU aoUg== X-Received: by 10.42.95.146 with SMTP id f18mr6691095icn.9.1360294063046; Thu, 07 Feb 2013 19:27:43 -0800 (PST) MIME-Version: 1.0 Sender: rohityadav89@gmail.com Received: by 10.50.111.16 with HTTP; Thu, 7 Feb 2013 19:27:21 -0800 (PST) In-Reply-To: References: From: Rohit Yadav Date: Fri, 8 Feb 2013 08:57:21 +0530 X-Google-Sender-Auth: ssFgoHcAXX-lP4dtXvNGyxx4QPo Message-ID: Subject: Re: Building SystemVM template appliance To: Chiradeep Vittal Cc: Chip Childers , "cloudstack-dev@incubator.apache.org" , Sheng Yang Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Feb 8, 2013 at 8:46 AM, Chiradeep Vittal wrote: > I undid your fix :) to leave it modular. :) I made it thinking would be easier to hack only one postinstall.sh script. Pl. also backport to 4.1 (CLOUDSTACK-1066's fix version is 4.1, though in cfg files we use version 4.2?) so we are in sync. > It still builds with the hostname as 'ahha' -- I can't figure out why. We can enforce hostname in one of the postinstall scripts, I found some reference of ahha in config.dat > What is left: > Openswan requires interactive input to install. Previously we had a > pre-baked config.dat that fed into pkg-configure to supply canned > responses. Somehow this needs to be copied into the root directory > (postinstall_files in definition.rb will try to execute it). scp to suitable path inside systemvmtemplate on port 7222? (See definitions.rb for ssh port details). Install ssh server in postinstall script if not installed (I think it is), or just attach the payload in yet another postinstall script and let it run. Regards. > One idea is to serve it from the http server that veewee runs to serve the > pressed.cfg file > Another idea is to make it a self-extracting shell file using [1] > > Also all the custom config files in patches/systemvm/debian/config needs > to be copied into the vm. Again one can make a self-extracting shell file > or use the http server > > Finally, I suspect netinst makes the base system far more bulky than it > needs to be. Some packages need to be trimmed after everything is > installed, apt-get clean needs to run and perhaps some locale data and man > pages need to be nuked. > > > On 2/7/13 4:22 AM, "Rohit Yadav" wrote: > >>Okay so I did few fixes, now there is only one postinstall.sh script >>which needs to be configured and one can simply port methods from the >>old script and it would run. One only required veewee and no other >>tool to build it, nor it packages any other dependency. >> >>Commit: >>https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commi >>t;h=04d51c9e4dfccafcd54cd6581434c0db16ef8f85 >> >>Now, someone with more experience with systemvm template needs to >>finish the postinstall.sh script with up-to-date packages. I'm done >>with basic definitions and code; building may take a lot of time, make >>sure you're good internet connection, it uses NAT to install stuff >>while running on vbox. >> >>Regards. >> >>On Thu, Feb 7, 2013 at 8:17 AM, Chiradeep Vittal >> wrote: >>> It is confusing -- gaah. >>> I could be persuaded that it could be licensed as Apache. But IANAL and >>>we >>> went through the legal wringer already on this in Aug/Sep. >>> >>> To build the actual systemvm, I would call another helper script in post >>> install: cloudstack.sh which replicates the packages() function in >>> buildsystemvm.sh >>> >>> To perform the overrides of default config files, it seems we would need >>> the puppet provisioner in vagrant? >>> >>> >>> On 2/5/13 6:49 PM, "Rohit Yadav" wrote: >>> >>>>I'm not sure it applies, I did not copy them, veewee generates the >>>>definitions for you which are like stubs and you modify the >>>>definitions as per your needs. MIT should be compatible with APL? >>>>Besides, we're not including veewee in our codebase, they are just >>>>config files for veewee. >>>> >>>>This is not something new, we've veewee definitions in >>>>tools/devcloud/src/deps/boxes for devcloud etc. If this is an issue, >>>>we need to fix it there as well. >>>> >>>>Regards. >>>> >>>>On Wed, Feb 6, 2013 at 5:24 AM, Chiradeep Vittal >>>> wrote: >>>>> What I meant was to >>>>> - retain the MIT license and not change the license >>>>> - maintain in our repo. >>>>> - optionally recognize the provenance (either in NOTICE or in the >>>>> directory) >>>>> >>>>> On 2/5/13 1:44 PM, "Chip Childers" wrote: >>>>> >>>>>>On Tue, Feb 5, 2013 at 2:34 PM, Chiradeep Vittal >>>>>> wrote: >>>>>>> Rohit, >>>>>>> I see that you have followed the code from >>>>>>> >>>>>>>https://github.com/jedi4ever/veewee/tree/master/templates/Debian-7.0- >>>>>>>b4 >>>>>>>-i >>>>>>>38 >>>>>>> 6-netboot >>>>>>> >>>>>>> >>>>>>> Since that code is under MIT license: >>>>>>> https://github.com/jedi4ever/veewee/blob/master/License >>>>>>> >>>>>>> >>>>>>> I think we should not check it in or reproduce the MIT license. >>>>>> >>>>>>Just to be clear, by "reproduce", are you suggesting that we include >>>>>>the legal docs for this? (assuming that we want to keep it in the >>>>>>repo, which I'm personally a +1 on) >>>>>> >>>>>>> On 2/5/13 4:24 AM, "Rohit Yadav" wrote: >>>>>>> >>>>>>>>Just wanted to share some wip, based on the way we can build >>>>>>>>devcloud >>>>>>>>and basebox appliance, I've added a template systemvm appliance >>>>>>>>which >>>>>>>>can be built using veewee and currently has VMDK disk image format. >>>>>>>>It's based on Debian b4-i386, has 256MB ram and 2GB HDD. The built >>>>>>>>vbox disk can be exported as ova, raw disk image, qcow2 etc. >>>>>>>>I've put it under tools/appliance. Maybe we should move our >>>>>>>>appliance >>>>>>>>building code which is in tools/devcloud/src to tools/appliance? Pl. >>>>>>>>feel free to hack on it, update the README and scripts. >>>>>>>> >>>>>>>>We now just need to port the >>>>>>>>patches/systemvm/debian/buildsystemvm.sh >>>>>>>>to tools/appliance/definitions/systemvmtemplate/base.sh and add >>>>>>>>cleanup code. >>>>>>>> >>>>>>>> - Install [RVM](https://rvm.io/rvm/install) >>>>>>>> - Setup paths: export PATH=~/.rvm/bin:$PATH >>>>>>>> - Install Ruby 1.9.3, if it installed some other version: rvm >>>>>>>>install >>>>>>>>1.9.3 >>>>>>>> >>>>>>>>cd tools/appliance >>>>>>>>veewee vbox list >>>>>>>>(Modify scripts in definitions/systemvmtemplate/ as per needs) >>>>>>>>veewee vbox build 'systemvmtemplate' >>>>>>>>veewee vbox up 'systemvmtemplate' # start the box >>>>>>>> >>>>>>>>Regards. >>>>>>> >>>>>>> >>>>> >>> >