Search online for "cpubusy" - it's a simple script that can max out a virtual CPU in a Windows VM. It's single threaded so you need to start multiple instances if your VM has multiple CPUs.
RIght-click the .vbs file once it's in your VM and choose "Open with command prompt" so that it loops...