Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CDEE114BA for ; Thu, 24 Apr 2014 23:38:09 +0000 (UTC) Received: (qmail 17332 invoked by uid 500); 24 Apr 2014 23:38:08 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 17235 invoked by uid 500); 24 Apr 2014 23:38:08 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 17224 invoked by uid 99); 24 Apr 2014 23:38:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 23:38:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shadowsor@gmail.com designates 209.85.128.176 as permitted sender) Received: from [209.85.128.176] (HELO mail-ve0-f176.google.com) (209.85.128.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 23:38:04 +0000 Received: by mail-ve0-f176.google.com with SMTP id db11so3805828veb.35 for ; Thu, 24 Apr 2014 16:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GrsenYOS4b6c41QF7v7EQZNAdZofnme6NvjemKHNczg=; b=jnPKWF/CzAyZM2M0AELK43zAA6H7Mykp53zCKf/klfQqclrPd9UfPk8ewlZFq393mq n5970tyGKrp6s5n+KYBmy1S3SK9azy7q/787NHT2nE6naIGItQolaQX/lrYYHdhySRSz eOo0G30JM8B1f7B31zjwcvFt/IW88/7HF4r5C7h6CKTk9WCqj8nfB1IKpuFfqih+DVPI jgdiZtANP38kO2Kz4gJhp8OgJXvRpTKWM/RCRwOXYStBBc2/KjsB00JTqYV0KHPBNrKi DGCgtuzIq4DHCnJOPgxAuneF5rdZW0/mitwV5Ubx7m2F0uNJb1e7d5WZ7QwAspen7sWN baIg== MIME-Version: 1.0 X-Received: by 10.58.219.233 with SMTP id pr9mr3597947vec.10.1398382663339; Thu, 24 Apr 2014 16:37:43 -0700 (PDT) Received: by 10.52.0.5 with HTTP; Thu, 24 Apr 2014 16:37:43 -0700 (PDT) In-Reply-To: <50edba630ddc2b2384c1042e1613c79e@li.nux.ro> References: <3589b1b6d9a9e43a120a3ce733bd5ab8@li.nux.ro> <5357387C.4030905@gmail.com> <53586BF0.1030107@gmail.com> <66c14c790bdeebc7df0483777f73b97d@li.nux.ro> <50edba630ddc2b2384c1042e1613c79e@li.nux.ro> Date: Thu, 24 Apr 2014 17:37:43 -0600 Message-ID: Subject: Re: Creating or customising OS type From: Marcus To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=047d7bdc1632e8944e04f7d2554d X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc1632e8944e04f7d2554d Content-Type: text/plain; charset=UTF-8 updated the patch. You can also see if specifying nicAdapter works in your existing build. On Thu, Apr 24, 2014 at 4:43 PM, Nux! wrote: > On 24.04.2014 17:28, Marcus wrote: > >> I like the idea of it. I don't like the magic strings in 'details', but it >> sounds like VMware supports it so this patch allows for it as well. It >> seems pretty useful to be able to specify the desired nic/storage driver >> when registering a template, rather than just saying 'all CentOS is virtio >> nic and virtio disk', especially with upcoming things like virtio-scsi, >> where newer operating systems will have multiple good options to choose >> from. >> >> If you need to build your own agent, you can use this patch: >> >> http://marcus.mlsorensen.com/cloudstack-extras/models.43.patch >> > > I've patched ACS with this and generated a new set of RPMs, after the > update however I was not only unable to create the custom type, but all > templates failed. > See agent logs here: > http://fpaste.org/96815/13983790/raw/ > > This is how I added the template: > cloudmonkey register template ostypeid=73188ae8-a44f-11e3-bae5-f6145f6a2f37 > passwordenabled=true isfeatured=true ispublic=true url= > http://10.193.172.130/templates/windows_migration_50G.qcow2name=virto_e1000_50 hypervisor=kvm zoneid=a6572c99-b268-4a6b-8bd0-bf2cafa4c04b > format=qcow2 details[0].rootDiskController=virtio > displaytext=virto_e1000_50 > > "ostypeid=73188ae8-a44f-11e3-bae5-f6145f6a2f37" means Windows 2008. > > > Lucian > > -- > Sent from the Delta quadrant using Borg technology! > > Nux! > www.nux.ro > --047d7bdc1632e8944e04f7d2554d--