Last active
June 17, 2019 19:58
-
-
Save summerwind/77ef4feb594bf98927f4fef7636ac4cc to your computer and use it in GitHub Desktop.
Example of vboxmanage command in Packer template
This file contains 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
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-ovf", | |
"source_path": "ubuntu-16.04-server-cloudimg-amd64.ova", | |
"vboxmanage": [ | |
["storageattach", "{{.Name}}", "--storagectl", "IDE", "--port", "0", "--device", "0", "--type", "dvddrive", "--medium", "files/cloud.iso"], | |
["modifyvm", "{{.Name}}", "--nic1", "nat" ], | |
["modifyvm", "{{.Name}}", "--uart1", "0x3F8", "4"], | |
["modifyvm", "{{.Name}}", "--uartmode1", "file", "console.log"] | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment