I was amused to see no one have ever asked such a question here before. After a little research in google I found only a few links to root a device in avd. Somewhere I also read that the sdk is already rooted and you just want to install an application which allows other applications to launch as root (am not sure about this).
The reason why I asked this question here in information security is because rooted devices are a must for Penetration testing an android app. So what I am looking for is a step by step tutorial to root a virtual device in my sdk. I have already created a device with android 2.3. Thanks in advance.