The partition scheme is part of the disk content and neither Packer nor AWS
can change that. Ask on a Windows site if it's possible to change
partitioning scheme on the fly (highly unlikely).

Your other options are to import a vm/disk that build locally (with
VirtualBox, VMware Workstation, etc) or on an EC2 with an extra blank disk
initialize it with GPT and the copy over the OS from the boot drive and
adjust some boot settings. Packer can do both, the first with the
vmware-iso builder and amazon-import post-processor and the second with the
amazon-ebssurrogate builder. But both these options are very difficult and
requires a lot of knowledge about AWS Windows interoperability.

Is there any particular reason you need GTP?

On Wed, Dec 19, 2018, 19:48 <[email protected] wrote:

> This is part of packer process for building AWS AMI - WINDOWS. By Default
> disk attached are MBR, is there any  argument/variable which can  be added
> to add GPT disk. Thanks.
>
>  "device_name": "/dev/sdh",
>  "volume_type": "gp2",
>  "volume_size": "100",
>  "delete_on_termination": "true"
> ---------------------
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/2e20fe59-2977-4a71-a1f7-c015d09d3f5f%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/2e20fe59-2977-4a71-a1f7-c015d09d3f5f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt81UKsbAM%2BDY%3D62k1TBKg_dMw9L_X8iUvgDvwpeVRY6_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to