Configure resources per host machine

Resources (cpu and memory) assigned to VM now takes into account the
host machine.

This is supposed to fix #15