Add support for creating vm from a vm image.