I would suggest that you install the 9.5.1 server on the new machine.
Take the backups from the 8.6.1. and restore it in new schema.
Then create services with no content in 9.5.1 and point it to the new schema in which you have restored the 8.6.1 data..
Then you can do an upgrade from the admin console..
Refer this KB for details: