Uses new VMX manager to set displayname, annotations, memory size, vcpus.

Removes also some code duplication