Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • instruction page is as for http://open.eucalyptus.com/wiki/Euca2oolsCentosInstall_v1.1
  • set system variables
    export VERSION=1.2
    export ARCH=x86_64
    export http_proxy="http://aaa:bbb" ( do not forget the prefix 'http://')
    to get 'yum' to work from BNL one needs to setup proxy be setting above
  • create file /etc/yum.repos.d/euca.repo as in Centos instruction
    in my case I hardcoded '1.2' instead of '$VERSION' because it yum did not wanted to pick it up from the system variable set by export
  • execute
    yum install euca2ools.$ARCH --nogpgcheck
  • Problems
    1. bundling would quit after ~15 minutes of work with the message:
      Code Block
      euca-bundle-vol -c $EC2_CERT -k $EC2_PRIVATE_KEY -u $EC2_USER_ID --ec2cert $EUCALYPTUS_CERT -d /image -e /image --no-inherit -r x86_64 --kernel eki-AEC117E0 --ramdisk eri-175C1933
      1+0 records in
      1+0 records out
      1048576 bytes (1.0 MB) copied, 0.131823 seconds, 8.0 MB/s
      ......
      ......
      ......
      Writing inode tables: done
      Creating journal (32768 blocks): done
      Writing superblocks and filesystem accounting information: done
      
      This filesystem will be automatically checked every 27 mounts or
      180 days, whichever comes first.  Use tune2fs \-c or \-i to override.
      Unable to copy files
      SOLUTION:
      1. edit python script /usr/lib/python2.5/site-packages/euca2ools/_init_.py
        look for line 1013 and add "print output" so it looks like:
        Code Block
               if output[1]:
                   print output
                   raise CopyError
        Then you'll see what's causing problems and exclude it.
      2. in my case it was ~3 screen-dump
        Code Block
        ('', 'selinux: rsync_xal_set: lsetxattr security.selinux failed: Permission denied\nselinux/avc: rsync_xal_set: lsetxattr security.selinux failed: Permission denied\nselinux/booleans: rsync_xal_set: lsetxattr security.selinux failed: Permission denied\nselinux/.access.5oRT2N: rsync_xal_set: lsetxattr security.selinux failed: Permission denied\nselinux/.checkreqprot.b5ebHI: rsync_xal_set: lsetxattr security.selinux failed: Permission denied\nselinux/.commit_pending_bools.1c9ulD: rsync_xal_set: lsetxattr security.selinux failed: Permission denied\nselinux/.compat_net.JYYQZx: rsync_xal_set: lsetxattr security.selinux failed: Permission
        .....
        
        Which means I should 'disable selinux' by execution of the following command
        echo 0 >/selinux/enforce
      3. I run bundling again and got one more error mentioning
        Code Block
         /var/run/cups
        
        The solution to that is to exclude /var/run/cups from bundling by adding
        *-e /var/run/cups * in to euca-bundle-vol command
      4. now bundling finished successfully
        Code Block
        ......
        ......
        Part: image.part.130
        Part: image.part.131
        Part: image.part.132
        Generating manifest /image/image.manifest.xml
        
        After which I have enabled back selinux
        echo 0 >/selinux/enforce

...