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. it must be either 6.0 for Older systems or 5.2 for 32 Bits systems.