Need help installing xp on a separate drive

I recently bought a new computer (hp 9340f)

I tried to boot from the old xp drive I had in my old computer but it wouldn’t boot so I tried to install and I got the same error.

I basically get a a blue screen saying there was an error with my computer and that it was shut down to prevent damage.

When I try to start the process from within vista in the new computer’s drive, the buton for starting a new install is greyed out.

Also, the blue error screen comes up after windows begins to load all the necessary files for setup, when it tries to bot windows, I’m assuming from the cd is when the blue screen comes up.