Uncategorized

How to Build Custom Xen Kernel Based on CentOS/RHEL Xen Kernel

The HOWTO on compiling CentOS kernel based on RHEL code base (currently 2.6.18) is overly complicated. Follow the following steps to build a custom Xen kernel, maybe with different kernel configuration.

  • Setup the rpmbuild directory, and install prerequisite packages.
    mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
    sudo yum -y install rpm-build redhat-rpm-config unifdef kernel-devel kernel-xen-devel
    
  • Grab the kernel source RPM, you want to modify and compile, and install it.
    wget -c http://mirrors.kernel.org/centos/5/updates/SRPMS/kernel-`uname -r`.src.rpm
    rpm -i kernel-`uname -r`.src.rpm
    
  • Create the spec file for the downloaded kernel
     cd ~/rpmbuild/SPECS
     rpmbuild -bp --target=`uname -m` kernel-2.6.spec
    
  • Modify the config to your needs. The config file are stored in ~/rpmbuild/SOURCES.
  • Modify the buildid. This is a good practice, if you are making extensive changes.
     cd ~/rpmbuild/SPECS
     sed -ibak -e 's/#% define buildid/%define buildid .ppadala/' kernel-2.6.spec
    
  • Build the kernel
     cd ~/rpmbuild/SPECS
     sudo rpmbuild -bb --with xenonly --without debug --without debuginfo --target=`uname -m` kernel-2.6.spec
    
  • This will generate a RPM that you can install on other machines as well.
Share

PhD Graduation Ceremony Video

Share

WordPress Hello World!

Just imported the blog to WordPress. Don’t like any of the themes, will be working on styling the blog and integrate with main site as well.

Share

The best software I have ever used …

The award goes to Turbo Tax! Once again I am amazed at how great the interface has been designed. Worth every penny!

P.S. Yep, I am done with my taxes, :-)

Share
100_2243

Glass paintings and Cross stitch work from Vinaya

For those in Hyderabad, must see art work from Vianaya.

Venue: Saptaparni at Banjara Hills road No:8, Hyderabad. 100_2243
Date: 5th and 6th April.

Share

The awesome Office 2007

Whoa! I seem to be falling in love with (the evil empire) Microsoft’s products. I recently upgraded to Office 2K7 after Rama’s suggestion. I was a bit skeptical as I never was a big fan of Office products, but maan, this product is really awesome. Yes, even compared to Latex. Creating styles, citations, references, table of contents, every thing that’s a bit difficult to do in a WYSIWYG editor has been made very easy. The equation editor has been re-vamped quite a bit, and it’s the best of both (Latex, WYSIWYG) worlds. I can type x_1^2 + x_2^2 = y_1^2 and the editor typesets the subscripts and superscripts correctly. I don’t have to do any twiddling with mouse. I have also fallen in love with Visio, Powerpoint and Excel. The graphs that are created in Excel are looking very professional.

I think some people didn’t like the suite, because of the contextual menu thingy. I think we got too accustomed to the old school, but once you start familiarizing yourself with the menus, it’s actually much easier to use.

Overall, Word is coming very close to getting the best of WYSIWYG and Latex worlds. It saves so much time when you can write the document and typeset it without much effort. All the other tools have been revamped to create more polished, stylish and professional looking documents. I haven’t used OpenOffice in a while, but I can’t imagine creating such glossy documents, drawings and presentations with any open source tool yet.

Share