extract method _install_vm