I'd like to be able to create multiple disks or a secondary disk of a VMDK type.
VBoxManage createhd --format VMDK --filename "second_disk.vmdk" --variant STREAM --size 100
Did you try:
"vboxmanage": [
[
"createhd",
"--format",
"VMDK",
"--filename"
"second_disk.vmdk"
"--variant STREAM"
"--size 100"
]
],
or
"vboxmanage_post": [
[
"createhd",
"--format",
"VMDK",
"--filename"
"second_disk.vmdk"
"--variant STREAM"
"--size 100"
]
],
Hah, I was just about to reply that I got it working with the following, however is there an option for SATA?
[ "createhd", "--format", "VMDK", "--filename", "disk2.vmdk", "--variant", "STREAM", "--size", "1" ],
[ "storageattach", "{{.Name}}", "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "disk2.vmdk" ]
You need a 'storagectl' command prior to your 'storageattach' command and
some changes to the latter. The former creates the SATA controller for you
to attach to.
On May 9, 2014 9:23 AM, "digitaljedi2" [email protected] wrote:
Hah, I was just about to reply that I got it working with the following,
however is there an option for SATA?
[ "createhd", "--format", "VMDK", "--filename", "disk2.vmdk", "--variant",
"STREAM", "--size", "1" ],
[ "storageattach", "{{.Name}}", "--storagectl", "IDE Controller",
"--port", "1", "--device", "0", "--type", "hdd", "--medium", "disk2.vmdk" ]—
Reply to this email directly or view it on GitHubhttps://github.com/mitchellh/packer/issues/1147#issuecomment-42671392
.
Thanks for the feedback. This appears to work just fine. Now if I'm searching docs for making both disks SATA.
[ "createhd", "--format", "VMDK", "--filename", "disk2.vmdk", "--variant", "STREAM", "--size", "1" ],
[ "storagectl", "{{.Name}}", "--name", "SATA Controller", "--add", "sata", "--controller", "IntelAHCI"],
[ "storageattach", "{{.Name}}", "--storagectl", "SATA Controller", "--port", "1", "--type", "hdd", "--medium", "disk2.vmdk" ]
We recommend what you did.
In case of vmware-iso, what would be the recommendation?
Most helpful comment
In case of vmware-iso, what would be the recommendation?