GPT disk in AWS AMI Build.

22 views
Skip to first unread message

jaiswa...@gmail.com

unread,
Dec 19, 2018, 1:48:49 PM12/19/18
to Packer
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"
---------------------

Rickard von Essen

unread,
Dec 22, 2018, 7:11:19 AM12/22/18
to packe...@googlegroups.com
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? 

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/2e20fe59-2977-4a71-a1f7-c015d09d3f5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jaiswa...@gmail.com

unread,
Jan 3, 2019, 1:07:26 PM1/3/19
to Packer
Yes, MBR doesn't support disk size more than 2TB.

Rickard von Essen

unread,
Jan 7, 2019, 6:58:47 AM1/7/19
to packe...@googlegroups.com
Since my Windows skill is nearly zero I can't help you with the specifics but you should be able to use the amazon-ebssurrogate builder to launch an AWS Windows AMI and attach an empty EBS volume a initialise it with GPT and transfer the OS to that.

On Thu, Jan 3, 2019 at 7:07 PM <jaiswa...@gmail.com> wrote:
Yes, MBR doesn't support disk size more than 2TB.

--
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 packer-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages