How to lock 2 computers together to run in sync using cubase 8

I would like to run 2 computers together to play midi in sync using master computer for audio and slave computer for plugins

You have some options. Steinberg offers VST Link that uses digital I/O to sync and send audio and midi between the multiple computers.
Vienna Ensemble Pro is a popular software that syncs multiple computers using standard network adapters and Ethernet cable.