I register it as is, compressed. Have not had any issues doing it that way with these or the CentOS 5 templates I've created.
On Sep 9, 2013, at 12:55 PM, France <mailingli...@isg.si> wrote: > Works for me. Even password was set successfully. > Now i need to test if updating (apt-get update && apt-get dist-upgrage) > doesn't kill the install, then create a new compressed 20GB template from it. > Thank you Carlos! > > Also to Dean, hopefully you decompressed the file before importing? :-) I did. > > Regards, > F. > > On 9/9/13 9:33 PM, Dean Kamali wrote: >> Thanks Carlos >> >> 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" >> >> http://pastebin.com/raw.php?i=FiNbxBHn >> >> So far, this template is broken :( >> >> Dean >> >> >> >> >> On Mon, Sep 9, 2013 at 1:42 PM, Carlos Reategui <car...@reategui.com> wrote: >> >>> try this: >>> http://reategui.com/CSImages/ubuntu-12.04.3-server-cloudimg-amd64.vhd.bz2 >>> >>> Just created this with the script and tested it on CS 4.1.1 + XS 6.0.2 >>> (patched up to 22). >>> >>> ubuntu/passw0rd >>> >>> Register it as Other PV 64 bit >>> >>> You can check the "Password Enabled" flag and the password will be set by >>> CS. >>> >>> Alternatively you can you can set ssh keys in meta-data and that should >>> work too. >>> >>> You can also set user-data and that should work with cloud-init (I have not >>> been able to get the CS ec2-api working so have not validated this -- going >>> to try with cloud monkey instead). >>> >>> Should have xe-guest-utilities_6.0.2-766 installed too. >>> >>> Let me know if you have probs with it. >>> >>> Regards, >>> -Carlos >>> >>> >>> >>> On Mon, Sep 9, 2013 at 9:44 AM, Carlos Reategui <car...@reategui.com> >>> wrote: >>> >>>> It's possible because he ran the script from CentOS instead of ubuntu. I >>>> will be uploading a working template shortly. >>>> >>>> >>>> On Mon, Sep 9, 2013 at 9:32 AM, Dean Kamali <dean.kam...@gmail.com> >>> wrote: >>>>> if I set template to Ubuntu 12.4 it will boot with (no bootable devises >>>>> found), and if I set template to other PV 64 bit, it won't boot, and it >>>>> will keep on looping. >>>>> >>>>> what else can I try? >>>>> >>>>> >>>>> >>>>> On Mon, Sep 9, 2013 at 9:53 AM, Travis Graham <tgra...@tgraham.us> >>> wrote: >>>>>> If you change the LINK to >>> http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64-root.tar.gzitwontredirect >>> and things should stay current for newer point releases >>>>>> and you wont have to update the script when newer versions are cut. >>>>>> >>>>>> On Sep 9, 2013, at 9:43 AM, Carlos Reátegui <create...@gmail.com> >>>>> wrote: >>>>>>> I'll upload and image in a couple hours. >>>>>>> >>>>>>> On Sep 9, 2013, at 4:31 AM, France <mailingli...@isg.si> wrote: >>>>>>> >>>>>>>> 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%[============================================================================================================================>] >>>>>> 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 >>>>>>>>> -- >>>>>>>>> >>>>>>>>> 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. >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> F. >>>>>>>>> >>>>>>>>> On 9/9/13 12:00 PM, France wrote: >>>>>>>>>> I just found the first error: >>>>>>>>>> >>>>>>>>>> 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.old >>>>>> 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: >>>>>>>>>> --- >>>>>>>>>> >>>>>>>>>> I'll just change that LINK variable to: >>> http://cloud-images.ubuntu.com/releases/precise/release/ubuntu-12.04-server-cloudimg-amd64-root.tar.gz >>>>>>>>>> On 9/9/13 11:14 AM, France wrote: >>>>>>>>>>> Carlos, >>>>>>>>>>> >>>>>>>>>>> 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 >>>>>>>>>>> >>>>>>>>>>> Tnx. >>>>>>>>>>> F. >