Archive for the ‘informational’ Category

Installing snap-guest on Ubuntu 12.04

No Comments »

At my current workplace we use libvirt and qemu/kvm running on the latest Ubuntu LTS release for our cloud platform. Recently, I wanted to use the awesome tool to simplify the provisioning of guest images. The configuration is for Fedora, but it can easily be done on Ubuntu.

First install the prerequisite packages:

apt-get install bash sed qemu-img virtinst cloud-utils util-linux genisoimage python-guestfs perl libguestfs-tools libguestfs-perl cloud-utils openssl util-linux

Then clone the git repo:

cd /opt
sudo git clone git://github.com/lzap/snap-guest.git
sudo ln -s /opt/snap-guest/snap-guest /usr/local/bin/snap-guest

You’re now good to go! From the snap-guest link (https://github.com/lzap/snap-guest):
“It’s recommended to use “base” string in the guest name (e.g. fedora-10-base or rhel4-base) to differentiate those files (snap-guest lists them using -l option), but it is not mandatory (option -a lists them all).”

I’d done this previously anyways, so was very easy in my case.

./snap-guest --list
./snap-guest -p /mnt/data/images --list-all

Visit the aforementioned link for further details.


KMix mousewheel bug workaround

No Comments »

There’s a bug in Kmix (I’m running KDE 4.10.3) which causes the mousewheel to increment 15% rather than a more sensible 5% as normal. Add VolumePercentageStep=1.6666 to the file ~/.kde4/share/config/kmixrc and all should be well. Close and reopen kmix, or logout then back in and all will be well 🙂


Adjusting ServerLimit and ThreadLimit in Apache

No Comments »

I was having this issue for a couple weeks and couldn’t figure it out for the life of me. I would attempt to increase the ThreadLimit (and also ServerLimit) above the default of 64 on Apache on an RHEL6 box, but the change just simply would not take. I continually got the following error:

WARNING: ThreadsPerChild of 128 exceeds ThreadLimit value of 64
threads, lowering ThreadsPerChild to 64. To increase, please see the
 ThreadLimit directive.

Which didn’t make since, because I indeed set the ThreadLimit to 128.

Turns out, it was because I was restarting apache, rather than stopping, then starting it. -_____________-


Freebsd Apache mpm_worker

No Comments »

Building apache w/mpm_worker on FreeBSD breaks several ports. Add the following to /etc/make.conf in order to fix this issue:

APACHE_PORT=www/apache22-worker-mpm