You could consider containers if your OSs can use the same kernel, they are lightweight in comparison to virtual machines, for ex. Docker: