New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gogolecompute] Support for more than one disk #8899
Comments
Hey @pmontanari thanks for opening; I think this is a neat idea. The following piece of code is what adds a drive to the instance and is an array: packer/builder/googlecompute/driver_gce.go Lines 425 to 438 in 3571c58
So I think adding a {
"disks" : [
{"type": "...", "size": "...", "name":"..."}
]
} If you (or anyone) have time to do it we would love to review a PR 🙂 👍 |
I need a way to launch an image with multiple disks as well. I was looking into this a bit and it seems like we'd also need a way to save the image with those additional disks which is not supported at the moment in Packer (edit: not possible with Packer + googlecompute). It looks like Packer uses the Image type which will only create an image with the boot disk. Google recently announced Machine Images which will save create an image with all currently attached disks. The new MachineImage type is available in the Would it make sense to try to switch fully away from the Image to using the newer MachineImage, or maybe it should be a feature that lives alongside the current functionality? Happy to help if I can. |
We generally try not to use beta versions of SDKs and APIs, just to help keep Packer stable. |
@SwampDragons that makes sense. I wonder if it'd be worth breaking ground on implementing this new "MachineImage" functionality to start preparing for their new API. I'm curious too if this should replace the current imaging functionality or should live alongside it? |
I'd say at the very least while MachineImage is a beta feature, it should be alongside rather than replacing. |
This issue has been automatically migrated to hashicorp/packer-plugin-googlecompute#7 because it looks like an issue with that plugin. If you believe this is not an issue with the plugin, please reply to hashicorp/packer-plugin-googlecompute#7. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Feature Description
googlecompute builder is missing the fearture to attach multiple disks (like for for Amazon AWS: ami_block_device_mappings) even though Machine images support it
Thanks
Patrick
The text was updated successfully, but these errors were encountered: