Created
December 20, 2017 09:32
-
-
Save liberforce/6b904be8d9476d3936717ea6ee1ed14a to your computer and use it in GitHub Desktop.
simple use of a Windows OVA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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\"" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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