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 5DB1210E77 for ; Mon, 9 Sep 2013 20:22:08 +0000 (UTC) Received: (qmail 43299 invoked by uid 500); 9 Sep 2013 20:22:07 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 43226 invoked by uid 500); 9 Sep 2013 20:22:07 -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 43208 invoked by uid 99); 9 Sep 2013 20:22:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 20:22:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of creategui@gmail.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yh0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 20:22:01 +0000 Received: by mail-yh0-f50.google.com with SMTP id a41so2504357yho.9 for ; Mon, 09 Sep 2013 13:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=FQLlDwP+mrChusZStHulIw5jJp+zM01bYam5kW87hW0=; b=E57nNWnrqdX2CszBnN3V7UsciiKB+YA0W8yiwh7BOIVN7FJBChIUCssCUSOo/Ocjjd KKyvtBYbH3b5vUgxMsVUS9ygcMIJpWUQfKTB+nYLKOyQXRb8QMGoVTMIfRDNDpJVT64v /FIiowfIsThL202Y4863Xz155Lw/v75cmWZkEceA46Gi+BfHGeWo6K2GZOhtEvEKuH50 bkRzKkObxehRcHApwwfyXimNc1ghkbGg4v9t9DMFnabhQMG3l/x71KoiSJwus07FqBFl sH3D69UcyDJqQXaIVDjA0ft9uhUjpUlGZasc1lE0MKp3YYGMNFguQ1J7GNr/PXPAhSxJ qdtg== X-Received: by 10.236.134.8 with SMTP id r8mr2450121yhi.62.1378758100469; Mon, 09 Sep 2013 13:21:40 -0700 (PDT) Received: from ?IPv6:2602:306:3a7c:9ea0:458e:da1c:8fb:9212? ([2602:306:3a7c:9ea0:458e:da1c:8fb:9212]) by mx.google.com with ESMTPSA id m26sm19724474yho.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Sep 2013 13:21:39 -0700 (PDT) References: <52285942.3090601@isg.si> <52285F81.60901@isg.si> <5229B5B4.5000801@isg.si> <522D8FC4.8040107@isg.si> <522D916B.4030201@isg.si> <522D9C33.3070906@isg.si> <522DA0F2.8060204@isg.si> <522DB199.9090505@isg.si> <6A79FE0E-F6D7-4FF9-9ACF-D5625ABF569F@gmail.com> <5747C81B-7A2A-4B06-8420-87B7AF00D953@tgraham.us> <522E27C8.7000404@isg.si> Mime-Version: 1.0 (1.0) In-Reply-To: <522E27C8.7000404@isg.si> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: Cc: "users@cloudstack.apache.org" , Dean Kamali X-Mailer: iPhone Mail (10B350) From: =?utf-8?Q?Carlos_Re=C3=A1tegui?= Subject: Re: Ubuntu 12.04 LTS or 14.04 on XenServer 6.0.2 with CS 4.1.1? templates in general? Date: Mon, 9 Sep 2013 13:21:34 -0700 To: "users@cloudstack.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org I register it as is, compressed. Have not had any issues doing it that way w= ith these or the CentOS 5 templates I've created.=20 On Sep 9, 2013, at 12:55 PM, France wrote: > Works for me. Even password was set successfully. > Now i need to test if updating (apt-get update && apt-get dist-upgrage) do= esn't kill the install, then create a new compressed 20GB template from it. > Thank you Carlos! >=20 > Also to Dean, hopefully you decompressed the file before importing? :-) I d= id. >=20 > Regards, > F. >=20 > On 9/9/13 9:33 PM, Dean Kamali wrote: >> Thanks Carlos >>=20 >> I have setup it as "Other PV 64 bit" (Xenserver 6.0.2 and CS 4.1.1 ) >> however I'm getting an exception "RuntimeError: Unable to find partition >> containing kernel" >>=20 >> http://pastebin.com/raw.php?i=3DFiNbxBHn >>=20 >> So far, this template is broken :( >>=20 >> Dean >>=20 >>=20 >>=20 >>=20 >> On Mon, Sep 9, 2013 at 1:42 PM, Carlos Reategui wro= te: >>=20 >>> try this: >>> http://reategui.com/CSImages/ubuntu-12.04.3-server-cloudimg-amd64.vhd.bz= 2 >>>=20 >>> Just created this with the script and tested it on CS 4.1.1 + XS 6.0.2 >>> (patched up to 22). >>>=20 >>> ubuntu/passw0rd >>>=20 >>> Register it as Other PV 64 bit >>>=20 >>> You can check the "Password Enabled" flag and the password will be set b= y >>> CS. >>>=20 >>> Alternatively you can you can set ssh keys in meta-data and that should >>> work too. >>>=20 >>> You can also set user-data and that should work with cloud-init (I have n= ot >>> been able to get the CS ec2-api working so have not validated this -- go= ing >>> to try with cloud monkey instead). >>>=20 >>> Should have xe-guest-utilities_6.0.2-766 installed too. >>>=20 >>> Let me know if you have probs with it. >>>=20 >>> Regards, >>> -Carlos >>>=20 >>>=20 >>>=20 >>> On Mon, Sep 9, 2013 at 9:44 AM, Carlos Reategui >>> wrote: >>>=20 >>>> It's possible because he ran the script from CentOS instead of ubuntu. = I >>>> will be uploading a working template shortly. >>>>=20 >>>>=20 >>>> On Mon, Sep 9, 2013 at 9:32 AM, Dean Kamali >>> wrote: >>>>> if I set template to Ubuntu 12.4 it will boot with (no bootable devise= s >>>>> found), and if I set template to other PV 64 bit, it won't boot, and i= t >>>>> will keep on looping. >>>>>=20 >>>>> what else can I try? >>>>>=20 >>>>>=20 >>>>>=20 >>>>> On Mon, Sep 9, 2013 at 9:53 AM, Travis Graham >>> wrote: >>>>>> If you change the LINK to >>> http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-ser= ver-cloudimg-amd64-root.tar.gzitwontredirect and things should stay current f= or newer point releases >>>>>> and you wont have to update the script when newer versions are cut. >>>>>>=20 >>>>>> On Sep 9, 2013, at 9:43 AM, Carlos Re=C3=A1tegui >>>>> wrote: >>>>>>> I'll upload and image in a couple hours. >>>>>>>=20 >>>>>>> On Sep 9, 2013, at 4:31 AM, France wrote: >>>>>>>=20 >>>>>>>> As i have no NFS primary storage (all NFS servers are mounted as >>>>>> secondary storages in CS 4.1.1) i have to find another way of >>> converting >>>>>> ubuntu-12.04-server-cloudimg-amd64.fs to .vhd. :-/ >>>>>>>> On 9/9/13 12:20 PM, France wrote: >>>>>>>>> That fixed the first error, but there are two more: >>>>>>>>> -- >>>>>>>>> Saving to: `cloud-set-guest-password-ubuntu' >>> 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] >>>>>> 4,153 --.-K/s in 0s >>>>>>>>> 2013-09-09 08:59:45 (50.8 MB/s) - >>> `cloud-set-guest-password-ubuntu' >>>>>> saved [4153/4153] >>>>>>>>> cp: cannot stat `/run/resolvconf/resolv.conf': No such file or >>>>>> directory >>>>>>>>> FATAL: kernel too old >>>>>>>>> rm: cannot remove >>>>>> `ubuntu-12.04-server-cloudimg-amd64/run/resolvconf/resolv.conf': No >>> such >>>>>> file or directory >>>>>>>>> Done creating image. You can mount it to check it out using: >>>>>>>>> mount -o loop ubuntu-12.04-server-cloudimg-amd64.fs >>>>>> ubuntu-12.04-server-cloudimg-amd64 >>>>>>>>> If you are happy with it, copy >>> ubuntu-12.04-server-cloudimg-amd64.fs >>>>>> to one of your XenServer hosts and create the vhd file using >>>>> createVHD.sh >>>>>>>>> -- >>>>>>>>>=20 >>>>>>>>> First is about resolv.conf which is at /etc/resolv.conf in my >>> CentOS >>>>>> install. I can work around that by creating softlink, even thou >>>>> resolv.conf >>>>>> is normally populated using DHCP client. >>>>>>>>> The other "FATAL: kernel too old" might be in relation to CentOS >>>>>> kernel, once script chroots into Ubuntu install. I'm just going to >>> leave >>>>>> this for now and install xen tools or guest utilities once i have the= >>>>> first >>>>>> Ubuntu VM running in case if they weren't already. >>>>>>>>> Now it's time to test .vhd creation. >>>>>>>>>=20 >>>>>>>>> Regards, >>>>>>>>> F. >>>>>>>>>=20 >>>>>>>>> On 9/9/13 12:00 PM, France wrote: >>>>>>>>>> I just found the first error: >>>>>>>>>>=20 >>>>>>>>>> Script downloads ubuntu-12.04-server-cloudimg-amd64-root.tar.gz >>>>>> (actually ubuntu-12.04.3-server-cloudimg-amd64-root.tar.gz redirects >>> to >>>>>> ubuntu-12.04-server-cloudimg-amd64-root.tar.gz), but then tries to >>>>>> uncompress ubuntu-12.04.3-server-cloudimg-amd64-root.tar.gz: >>>>>>>>>> --- >>>>>>>>>> This filesystem will be automatically checked every 34 mounts or >>>>>>>>>> 180 days, whichever comes first. Use tune2fs -c or -i to >>> override. >>>>>>>>>> Untar file system >>>>>>>>>> tar: ubuntu-12.04.3-server-cloudimg-amd64-root.tar.gz: Cannot >>> open: >>>>>> No such file or directory >>>>>>>>>> tar: Error is not recoverable: exiting now >>>>>>>>>> tar: Child returned status 2 >>>>>>>>>> tar: Error exit delayed from previous errors >>>>>>>>>> Extract done >>>>>>>>>> Begin customizing image >>>>>>>>>> ./createUbuntuCSimageXen.sh: line 66: etc/init/hvc0.conf: No such= >>>>>> file or directory >>>>>>>>>> sed: can't read boot/grub/menu.lst: No such file or directory >>>>>>>>>> sed: can't read etc/fstab: No such file or directory >>>>>>>>>> sed: can't read boot/grub/grub.cfg: No such file or directory >>>>>>>>>> sed: can't read etc/fstab: No such file or directory >>>>>>>>>> sed: can't read etc/fstab: No such file or directory >>>>>>>>>> sed: can't read etc/cloud/cloud.cfg: No such file or directory >>>>>>>>>> ./createUbuntuCSimageXen.sh: line 80: >>>>>> etc/cloud/cloud.cfg.d/90_dpkg.cfg: No such file or directory >>>>>>>>>> can't find file to patch at input line 3 >>>>>>>>>> Perhaps you used the wrong -p or --strip option? >>>>>>>>>> The text leading up to this was: >>>>>>>>>> -------------------------- >>>>>>>>>> |--- >>>>>> /usr/lib/python2.7/dist-packages/cloudinit/DataSourceCloudStack.py.ol= d >>>>>> 2012-04-11 03:54:56.000000000 +0000 >>>>>>>>>> |+++ >>>>>> /usr/lib/python2.7/dist-packages/cloudinit/DataSourceCloudStack.py >>>>>> 2013-09-07 01:01:02.482498743 +0000 >>>>>>>>>> -------------------------- >>>>>>>>>> File to patch: >>>>>>>>>> --- >>>>>>>>>>=20 >>>>>>>>>> I'll just change that LINK variable to: >>> http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-ser= ver-cloudimg-amd64-root.tar.gz >>>>>>>>>> On 9/9/13 11:14 AM, France wrote: >>>>>>>>>>> Carlos, >>>>>>>>>>>=20 >>>>>>>>>>> just one quick question. Which OS type should be used when >>>>>> registering this Ubuntu created VHD on CS 4.1.1 with XS 6.0.2? >>>>>>>>>>> https://github.com/creategui/CloudStackImageScripts >>>>>>>>>>>=20 >>>>>>>>>>> Tnx. >>>>>>>>>>> F. >=20