First draft of create install vm function