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. 3D acceleration is no longer supported in VirtualBox 6.1 and newer.

Guest additions installation bug
Due to expiring certificates Windows XP guest additions won't install without disconnecting the virtual ethernet cable while installing.