extenden create_vm method