From 0d6de09552159132053f07a1badcfada529b836a Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 21 Sep 2011 13:44:08 -0500 Subject: [PATCH 1/2] Re-enable munin --- stack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack.sh b/stack.sh index c21e5ab..35641b8 100755 --- a/stack.sh +++ b/stack.sh @@ -74,7 +74,7 @@ NOVNC_DIR=$DEST/noVNC MUNIN_DIR=$DEST/openstack-munin # Specify which services to launch. These generally correspond to screen tabs -ENABLED_SERVICES=${ENABLED_SERVICES:-g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash,mysql,rabbit} +ENABLED_SERVICES=${ENABLED_SERVICES:-g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash,mysql,rabbit,munin} # Use the first IP unless an explicit is set by ``HOST_IP`` environment variable if [ ! -n "$HOST_IP" ]; then @@ -302,7 +302,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then # qcow images) and kvm (hardware based virtualization). If unable to # load kvm, set the libvirt type to qemu. sudo modprobe nbd || true - if ! -e /dev/kvm; then + if [ ! -e /dev/kvm ]; then LIBVIRT_TYPE=qemu fi # User needs to be member of libvirtd group for nova-compute to use libvirt. From 62a6deb1342b26bc486d1c399311da32d6615e73 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 21 Sep 2011 20:06:01 -0500 Subject: [PATCH 2/2] Add some kernel modules to container --- build_lxc.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_lxc.sh b/build_lxc.sh index fbdfcd3..e8612e6 100755 --- a/build_lxc.sh +++ b/build_lxc.sh @@ -29,6 +29,7 @@ if ! which cgdelete | grep -q cgdelete; then cd libcgroup-0.37.1 ./configure make install + ldconfig fi # Create lxc configuration @@ -99,6 +100,11 @@ echo stack:pass | chroot $ROOTFS chpasswd # stack requires) echo "stack ALL=(ALL) NOPASSWD: ALL" >> $ROOTFS/etc/sudoers +# Copy kernel modules +mkdir -p $ROOTFS/lib/modules/`uname -r`/kernel +cp -p /lib/modules/`uname -r`/modules.dep $ROOTFS/lib/modules/`uname -r`/ +cp -pR /lib/modules/`uname -r`/kernel/net $ROOTFS/lib/modules/`uname -r`/kernel/ + # Gracefully cp only if source file/dir exists function cp_it { if [ -e $1 ] || [ -d $1 ]; then