VirtualBox

Running Windows XP in VirtualBox is an easy to get started with XP without having to worry about hardware drivers (all provided with the guest additions) and also being able to run it in a more secure host environment.

Hardware virtualization
Virtualbox 6.1 requires hardware virtualization (VT-x) to be enabled. For older computers you now need to use an older version of Virtualbox and you will only be able to run 32-bit operating systems.