{"id":14064553,"url":"https://github.com/a4099181/packer-officeVM","last_synced_at":"2025-07-29T18:32:50.791Z","repository":{"id":144220772,"uuid":"87364298","full_name":"a4099181/packer-officeVM","owner":"a4099181","description":"Building vagrant box from Windows ISO for vagrant-officeVM project. In ecosystem with: vagrant-officeVM and vagrant-provvin.","archived":false,"fork":false,"pushed_at":"2022-11-02T18:28:52.000Z","size":56,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-14T07:07:15.970Z","etag":null,"topics":["hyper-v","iso","packer","virtualbox","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a4099181.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null}},"created_at":"2017-04-05T23:04:57.000Z","updated_at":"2022-02-06T22:29:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"34e0527e-a3ff-4293-8b11-9b49d5179dc6","html_url":"https://github.com/a4099181/packer-officeVM","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a4099181%2Fpacker-officeVM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a4099181%2Fpacker-officeVM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a4099181%2Fpacker-officeVM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a4099181%2Fpacker-officeVM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a4099181","download_url":"https://codeload.github.com/a4099181/packer-officeVM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228040709,"owners_count":17860211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hyper-v","iso","packer","virtualbox","windows"],"created_at":"2024-08-13T07:03:55.646Z","updated_at":"2024-12-04T03:31:01.455Z","avatar_url":"https://github.com/a4099181.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# packer-officeVM\r\n\r\n## What is it for?\r\n\r\nSimply, in a couple of words. It converts Windows ISO file into [vagrant's](http://www.vagrantup.com) box.\r\n\r\n## Importance!\n\nThe primary goal of this project is to support [vagrant-officeVM](https://github.com/a4099181/vagrant-officeVM).\nThese two projects forms one small ecosystem.\n\n## Requirements\n\nThere is only one requirement: [packer](http://www.packer.io).\n\nPlease [download](https://www.packer.io/downloads.html) it and install on your own.\n\n\u003e After install be sure, that `packer.exe` is accessible in `PATH` environment variable.\n\n## Usage tip\n\nThis project supports two hypervisors: [Hyper-V](hyperv.md) and [Virtualbox](virtualbox.md).\n\nChoose the one you want. Detailed instructions are described at [hyperv.md](hyperv.md) and [virtualbox.md](virtualbox.md).\n\n#### What's in the box:\n\n* Windows installed,\n* single user: `vagrant` with password `vagrant`,\n* VirtualBox Guest additions installed,\n* WinRM access enabled,\n* Linux Subsystem for Windows installed,\n* Developer Mode enabled,\n* SSH Private/Public Keys may be uploaded. [Read this](#ssh-keys-support) to understand it.\n\r\n#### Localization:\r\n\r\nSetup file for Windows installer is localized. It contains some elements where strict region ID is specified.\r\n`Autounattend.xml` is located under a regional folder just to make a space for other languages.\r\n\r\nBuild operation supports additional argument `locale` to indicate wanted language.\r\nSo it is possible to run:\r\n\r\n```\r\nPS packer-officeVM\u003e .\\build.ps1 \u003cyour-iso-file-path\u003e -locale pl-PL\r\n```\r\n\r\n\u003e Supported languages it is a list of subfolders of the target Windows version folder.\r\n\r\n\u003e Currently polish is the only one supported language :) (maybe for some time only).\r\n\u003e It's a default one also when no `locale` is provided.\r\n\r\n#### SSH Keys support\n\n\u003e `windows-10.1607` template is not supported.\n\n##### The rules of concept are simple:\n\n- place your SSH keys at `%USERPROFILE%\\.ssh` folder at host OS,\n- take care of the content of the `known_hosts` file to ensure non-interactive connection success,\n- the name of your SSH keys file should starts with `id_`,\n- all files `%USERPROFILE%\\.ssh\\id_*` with `known_hosts` packer copies into the virtual floppy,\n- after successful Windows installation all files `A:\\id_*` and `A:\\known_hosts` are copied to `C:\\Users\\vagrant\\.ssh` folder.\n\nThat's all at this stage. The next steps should be done on `vagrant up` at `Vagrantfile`.\n\n\u003e Remember, that your box contains your SSH Private Key. Do not share the box.\n\nIf you don't use SSH keys, then ignore it. [Packer] will ignore it also.\n\n##### What you can do with uploaded SSH keys?\n\nMy real life examples:\n\n1. `Bash on Ubuntu on Windows` - link uploaded `.ssh` folder with user profile and enjoy git with SSH authentication:\n\n   ```shell\n   ~ $ ln -s /mnt/c/Users/vagrant/.ssh .ssh\n   ```\n\n2. `Git for Windows` - `%USERPROFILE%` folder is also user profile folder within `Git Bash`. With SSH keys uploaded you can clone repositories using SSH protocol already on non-interactive provisioning.\n\n3. `Git for Windows Portable` - the same as `Git for Windows`.\n\n[packer]: http://www.packer.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa4099181%2Fpacker-officeVM","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa4099181%2Fpacker-officeVM","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa4099181%2Fpacker-officeVM/lists"}