...
- 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 yum did not wanted to pick it up from the system variable set by export - execute
yum install euca2ools.$ARCH --nogpgcheck - Problems
- bundling would quit after ~15 minutes of work with the message:
SOLUTION: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
- edit python script /usr/lib/python2.5/site-packages/euca2ools/_init_.py
look for line 1013 and add "print output" so it looks like:
Then you'll see what's causing problems and exclude it.Code Block if output[1]: print output raise CopyError
- in my case it was ~3 screen-dump
Which means I should 'disable selinux' by execution of the following commandCode 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 .....
echo 0 >/selinux/enforce - I run bundling again and got one more error mentioning
The solution to that is to exclude /var/run/cups from bundling by addingCode Block /var/run/cups
*-e /var/run/cups * in to euca-bundle-vol command - now bundling finished successfully
After which I have enabled back selinuxCode Block ...... ...... Part: image.part.130 Part: image.part.131 Part: image.part.132 Generating manifest /image/image.manifest.xml
echo 0 1 >/selinux/enforce
- edit python script /usr/lib/python2.5/site-packages/euca2ools/_init_.py
- bundling would quit after ~15 minutes of work with the message:
...