Problems with Enterprise v5 derivatives
neilwilson Jul 3, 2012 5:23 AMI'm having a bit of fun with CentOS 5 and SL 5 builds using the meta-appliance.
I'm using a JEOS appliance definition file.
name: JEOS
os:
name: centos
version: 5
appliances:
- jeos
with a base jeos.appl file of:
name: JEOS
summary: RPM Based JEOS
hardware:
partitions:
"/":
size: 5
type: ext4
This setup works just fine with Enterprise 6 derivatives and Fedora builds.
On Enterprise 5 X86_64 derivatives the build issues a warning
W, [2012-07-03T08:53:19.088481 #19115] WARN -- : Loading SELinux policy failed. SELinux may be not fully initialized.
and this seems to lead to errors in using the image:
Jul 3 09:19:01 srv-5qvia kernel: type=1400 audit(1341307140.893:31): avc: denied { read } for pid=1725 comm="dbus-daemon" name="config" dev=vda1 ino=133576 scontext=system_u:system_r:system_dbusd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file
Jul 3 09:19:01 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:etc_t:s0) returned 22 for dev=vda1 ino=132373
Jul 3 09:19:01 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:etc_t:s0) returned 22 for dev=vda1 ino=133285
Jul 3 09:19:03 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:etc_t:s0) returned 22 for dev=vda1 ino=133871
Jul 3 09:19:04 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:etc_t:s0) returned 22 for dev=vda1 ino=132394
Jul 3 09:19:17 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:etc_t:s0) returned 22 for dev=vda1 ino=131998
Jul 3 09:19:17 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:etc_t:s0) returned 22 for dev=vda1 ino=128290
Jul 3 09:19:17 srv-5qvia kernel: inode_doinit_with_dentry: context_to_sid(unconfined_u:object_r:selinux_config_t:s0) returned 22 for dev=vda1 ino=133938
which for Scientific Linux 5 means that it won't pick up a DHCP address (although CentOS5 appears to).
On Enterprise 5 the i686 version build just fails with:
F, [2012-07-03T08:56:55.173875 #21044] FATAL -- : RuntimeError: An error occurred while executing command: 'appliance-creator -d -v -t 'build/appliances/i686/centos/5/JEOS/1.0/centos-plugin/tmp' --cache=/var/cache/boxgrinder/rpms-cache/i686/centos/5 --config 'build/appliances/i686/centos/5/JEOS/1.0/centos-plugin/tmp/JEOS.ks' -o 'build/appliances/i686/centos/5/JEOS/1.0/centos-plugin/tmp' --name 'JEOS' --vmem 256 --vcpu 1 --format raw', process exited with wrong exit status: 1
Something seems to be missing from the default base package list. Anybody any idea what it is?