What do you need?
Well, the basic SDK. 1.5, 1.6 or 1.1
And then, go to the HTC website where you can find the images/recovery images. Download the version (system image only) which you want to run.
(Download the System Image zip)
Extract the files of this zip. There’s a system.img file which you will need in the next steps.
Create an AVD (1.1, 1.5 or 1.6) depending on your requirements.
Copy this system.img file into the avd directory. For example, if you created an avd named “MyPhone”, go to .avdMyPhone and paste this system.img file here.
Now start the emulator. Voila, You are ready to go. After you sign in with a google account, your phone is ready to use. You now have access to all the market apps right from your emulator.
Note: If you are not able to run it successfully, and if you are getting Network communication error, please download the AVD that I have created from this link.
Link for 1.5 image
Link for 1.6 image