I would probably snapshot the VM before upgrading, just to be safe, but you can directly upgrade from 9.7P1 to 9.10.
Just attach the upgrade ISO to the VM, and from the maintenance console, go to system menu and select upgrade. It's pretty easy.
It's the same process as upgrading SCV as well.