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 D5B4511BAC for ; Tue, 19 Aug 2014 01:15:21 +0000 (UTC) Received: (qmail 30101 invoked by uid 500); 19 Aug 2014 01:15:20 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 30051 invoked by uid 500); 19 Aug 2014 01:15:20 -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 30039 invoked by uid 500); 19 Aug 2014 01:15:20 -0000 Delivered-To: apmail-incubator-cloudstack-users@incubator.apache.org Received: (qmail 30036 invoked by uid 99); 19 Aug 2014 01:15:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2014 01:15:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ivanoch@gmail.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2014 01:15:15 +0000 Received: by mail-oa0-f52.google.com with SMTP id o6so4708434oag.11 for ; Mon, 18 Aug 2014 18:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HPEsQDerxz/O1kfwVywjHahoeNIhggiQKxQKLFULaP0=; b=MKOdaU1VIGRVMikfSaPZTR4810uM505lAltMrBa43QkvR5lBBwCLgD+wjiSMVpVckV FqMeag6XBwb7cLnLZ4ZicZZLNvc/YbYyxz+CVt8x2/OT3ZMo1OQEoupq5qmTKinHljkE yttGHx47/5C42KzzlEjvwDUHpp8si8gM8LiwljaJp73SaWJgiIUnKb+UG0Q2tADGHqI2 rmC3nawvoqgw5SIYeInvST3vTDS5FAdp7YZZX4mfOpm/gYVVF6jYAJNWLcYzD2fZRWX8 cKQJDH6QS9SyZXV9+rBHBo0Jk8XuSywRU9HRQgFBnQREVXpWWgmf366PHUimuGK0FN76 gUgA== MIME-Version: 1.0 X-Received: by 10.60.57.193 with SMTP id k1mr10849514oeq.66.1408410894976; Mon, 18 Aug 2014 18:14:54 -0700 (PDT) Received: by 10.76.1.173 with HTTP; Mon, 18 Aug 2014 18:14:54 -0700 (PDT) Date: Tue, 19 Aug 2014 11:14:54 +1000 Message-ID: Subject: KVM cloudstack createnewvm From: Ivan Rodriguez To: "cloudstack-users@incubator.apache.org" Content-Type: multipart/alternative; boundary=089e013a02d417cd560500f1371f X-Virus-Checked: Checked by ClamAV on apache.org --089e013a02d417cd560500f1371f Content-Type: text/plain; charset=UTF-8 Hi there, One of our templates in secondary storage needs some minor changes, I was able to track down the path from the secondary storage getting the reference from vm_template (unique_name) Then look for the template id on the properties find . -name "*.properties" -exec grep -il "2d1f46882-755a-3239-a9b8-019eca89e86b" {} \; I believe I have the right qcow2 image when I open it up with guestfish I can see that is actually my template so I do my changes save the image then provision a new vm from that template and my changues are not there so I'm wondering if cloudstack is copying the template from secondary storage into primary storage for fast provisioning. Later on I bump into the script createvm.sh which is basically using qemu-img to create the new root disk I've been checking this process and I can't figure out who is actually provisioning the new root disk. I don't think is the secondary storage since it doesn't look like its mounting primary storage, and also on the compute hypervisor side it doesn't look like its mounting the secondary storage to copy the template. Any advise will be really appreciate it. Also is there a place where internal process for cloudstack are explained ? or you gotta jump in the source code and try to figure it out ? Pd. I know I can destroy the template and upload it again with the changes but it would be nice if I can understand the cloudstack process. Thanks in advance Ivan --089e013a02d417cd560500f1371f--