Reputation: 31
I was working on automating VM creation on GCP using a packer image.
But I got an issue when adding an additional disk there is no such option through packer configuration as it is only has the option to create boot(os-disk).
Kindly help me in fixing how to add additional disk for a VM through packer image on RHEL 7 OS.
Thanks in advance ..
Upvotes: 0
Views: 348
Reputation: 31
This was solved by adding a shell script to create additional disk while running packer script and calling this script under the provisioner section.
Upvotes: 0
Reputation: 4298
GCE images only supports one disk. See https://issuetracker.google.com/issues/74106832 for a open feature request to support this.
Upvotes: 3