Skip to content

Instantly share code, notes, and snippets.

@summerwind
Last active June 17, 2019 19:58
Show Gist options
  • Save summerwind/77ef4feb594bf98927f4fef7636ac4cc to your computer and use it in GitHub Desktop.
Save summerwind/77ef4feb594bf98927f4fef7636ac4cc to your computer and use it in GitHub Desktop.
Example of vboxmanage command in Packer template
{
"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