generic wrapper for facilitating VM instance creation