How did you create the virtual switches?
How are you determining they run in the cloud?
There are several community created edge driver to create virtual switches which run locally.
[ST Edge] Virtual Things Edge Driver
[ST Edge] vEdge Creator: a virtual device generator for end users