def init_vagrant(self, vagrant_file):
if self.inherit_image:<EOL><INDENT>image_name, image_tag = str(self.inherit_image).split("<STR_LIT::>")<EOL><DEDENT>else:<EOL><INDENT>image_name = self.get_arca_base_name()<EOL>image_tag = self.get_python_base_tag(self.get_python_version())<EOL><DEDENT>logger.info("<STR_LIT>", vagrant_file, image_name, image_tag)<EOL>repos_dir = (Path(self._arca.base_dir) / '<STR_LIT>').resolve()<EOL>vagrant_file.parent.mkdir(exist_ok=True, parents=True)<EOL>vagrant_file.write_text(dedent(f"""<STR_LIT>"""))<EOL>(vagrant_file.parent / "<STR_LIT>").write_text(self.RUNNER.read_text())<EOL>
Creates a Vagrantfile in the target dir, with only the base image pulled.
            Copies the runner script to the directory so it's accessible from the VM.