Hyper-V : Upgrading kernel on an CentOS guest OS

CentOS works pretty well under Hyper-V once you install the Linux IC from Microsoft. I see significantly improved disk i/o performance, along with network performance. However, there is a glitch with the Microsoft supported solution. There is no official explanation or steps on how to upgrade your CentOS kernel to the latest, after you have he IC installed on a earlier version. If you attempted to upgrade the kernel, you’ll be stuck with a dead system (well, you can manually revert back to the old kernel).

So, I needed to install Asterisk 1.8 on a CentOS guest. I had a pre created template of a CentOS 5.4 system that I’ve been using a while, and started my process on that. After installing the Asterisk repositories, and installing Asterisk 1.8, I did notice that yum had upgraded my Kernel. I knew this would be a problem, so what we need to do is upgrade the Linux IC to run on this new kernel. Unfortunately, running “setup.pl drivers” from the linux IC source doesn’t do much, since it’ll just upgrade the current running kernel, which is not the one that’s been installed.

To upgrade the Linux IC, you need to fake the output of uname with the latest version of the kernel so that the setup and make scripts know what to build on.

What I ended up doing, was writing a simple c program to fake the uname output so that uname would give the names of the newest kernel, not the current one. If you are stuck in this situation, simple make a new file with the following source (change the kernel versions as required), and compile and replace the system uname with our “fake” uname.

#include <stdio.h>

int main(int argc, char* argv[])
        if (argc > 1)
                if (strcmp(argv[1], "-r") == 0)
                else if (strcmp(argv[1], "-p") == 0)
                else if (strcmp(argv[1], "-m") == 0)

        return 0;

That’s it. Save it, and compile it with “cc uname.c”. Make a backup of the current uname (in /bin/uname), and then copy this file over to “/bin/uname” and then run setup.pl drivers



How to remove HyperV from a Domain

Just a quick post. Today i’m transitioning from my old win2k3 domain, to a new Windows 2008 R2 Domain. In moving my HyperV servers, i found i could not disjoin them from the domain, but found this quick tip to force it off the domain

netdom remove %computername% /domain:%userdomain% /force

Thats it!

Hook’s Banana Muffin Recipe

Note to myself about this easy to make muffin recipe

1 Cup Sugar
1 Stick Butter (Room Temp)
4 Small OR 3 Large Banana’s
1 Egg
1/4 tsp salt
1/4 tsp baking soda
1/2 tsp nutmeg
1 Cup flour

Start oven at 350F
Cream together the sugar and butter
Mash the bananas, but not completely. Leave it lumpy
Add the banana’s to the mixture
Integrate the flour into the cream mixture slowly and don’t over mix.
Pour the mixture into muffin tray, and bake for 20-25 minutes, or until golden brown.

Testing posts from Windows Live Writer

So this is kind of cool. Microsoft’ Windows Live Writer appears to be able to post straight into WordPress blogs. If this post works, then i think thi is a great free product that will help people immensely. NO more having to open web pages, and send up boring attachments via form uploads and things.

Update: It does work, and it appears you can go back and edit the posts as well. I’ll have to see how the categories can be assigned. Undetermined, there’s a category section below the main text editing. Very nice Microsoft! Very nice!

Quick Funny

A stranger was seated next to a little girl on the airplane when the stranger turned to her and said, ‘Let’s talk. I’ve heard that flights go  quicker if you strike up a conversation with your fellow passenger.’ The little girl, who had just opened her book,closed it slowly and said to the stranger, ‘What would you like to talk about?’ Oh, I don’t know’, said the stranger. ‘How about nuclear power?”OK,’ she said. ‘That could be an interesting topic. But let me ask you a question first. A horse, a cow, and a deer all eat grass, the same stuff. Yet a deer excretes little pellets, while a cow turns out a flat patty, and a horse produces clumps of dried grass. Why do you suppose that is?’ The stranger thinks about it and says, ‘Hmmm, I have no idea,’To which the  little girl replies, ‘Do you really feel qualified to discuss nuclear power when you don’t know shit?’

Champions League Picks 11/27

My picks for games on 11/27, lets see how many i get right

Group E

Group F
Man Utd

Group G
Inter Milan

Group H
Slavia Prague

UPDATE : Bold items above are the ones i got right. 3 out of 8. Pathetic.

Wii Pool Party Review

Techie Certification : Denied

So, i was at Blockbuster on Saturday to see if they had FIFA ’08 for the Wii so i can check it out before shelling out $50.00 for it, they had it.. and they had this game called “Pool Party”. Being a huge Snooker fan, i picked it up to see if in fact it did have Snooker as a game to play, and sure enough, it did! So, i took them both to the counter to take home and check out. Unfortunately the only FIFA ’08 they had in stock, was a damaged disk, so i had to settle jsut for Pool Party.

Got home, turned on the Wii and put the disk in. After a few minutes, i was navigating through its really poorly designed menu’s, and finally started a game of snooker.

So heres my problems with this effort. Snooker is a completely different game from pool. Pool is possibly the easiest game to play on a table, its just way too simplified, but can be a lot of fun with a buddy.

Snooker, is not an easy game. The table is 2 times bigger in all directions, thers a lot more balls on the table and there is some serious tactics required to win the game due to the size of the table, and the rules of the game (which are relatively simple). The problem with this game is that they took the same arcade pool – inaccurate shooting mechanism, and put it into the snooker game play. That simply doesnt work for snooker. The pockets are smaller, hence the angles are a lot more precise. With the wiimote, its possible to get such accuracy – but they chose not to fine tune it for the snooker mode. I’d played Wii Play’s pool mode, which was a ok attempt at trying to get the cue movement into the game for play. This game doesnt even try to do that, so in essence yo ucould be playing this game on an xbox or any other console, and it would be the same, completely wasting the Wii’s spectacular ability for realistic motion. One more thing, after each shot, it gives a summary of what just happened – which really really slows down, a game thats supposed to be slow. So thus, this game is boring.

I didn’t bother playing any of the other modes, i just gave up after getting frustrated.

So my verdict. Boring, frustrating, useless, waste of time, waste of money.

The Best ‘Curb’ Yet!


This episode of Curb Your Enthusiasm on HBO was the best yet. Just perfectly crafted from start to finish linking in stuff from the whole series. Wonderful! Its the episode that first aired 28th October 2007. Don’t know the episode number, but its the one where Jeff goes in to get an operation.

Perfect i say, PERFECT!