Skip to content

Instantly share code, notes, and snippets.

@liberforce
Created December 20, 2017 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liberforce/6b904be8d9476d3936717ea6ee1ed14a to your computer and use it in GitHub Desktop.
Save liberforce/6b904be8d9476d3936717ea6ee1ed14a to your computer and use it in GitHub Desktop.
simple use of a Windows OVA
{
"variables":
{
"source_path": "",
"output_directory": "",
"vm_name": "",
"username": "",
"password": ""
},
"provisioners":
[
{
"type": "powershell",
"inline": ["dir c:\\"]
}
],
"builders":
[
{
"type": "virtualbox-ovf",
"communicator": "winrm",
"source_path": "{{user `source_path`}}",
"output_directory": "{{user `output_directory`}}",
"vm_name": "{{user `vm_name`}}",
"winrm_username": "{{user `username`}}",
"winrm_password": "{{user `password`}}",
"headless": "false",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\""
}
]
}
{
"source_path": "MSEdge - Win10.ova",
"username": "IEUser",
"password": "Passw0rd!",
"vm_name": "win10-x86_64"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment