...
- execute
yum install euca2ools.$ARCH --nogpgcheck - Problems
- 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: - 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. - 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 - I run bundling again and got one more error mentioning The solution to that is to exclude /var/run/cups from bundling by adding
*-e /var/run/cups * in to euca-bundle-vol command - 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 1 >/selinux/enforce
SCRATCH -------------------------------------
euca-register -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $EC2_URL jan7-Sl5.3-x86_64-12GB-external-build/image.manifest.xml