Sysprepping an AMI Instance

40 views
Skip to first unread message

Paul Brushwood

unread,
Jun 16, 2016, 6:19:09 PM6/16/16
to Packer
I've been trying to get a packer build to sysprep the EC2 instance before creating an AMI from it with no success.  I tried following the example here https://gist.github.com/mefellows/a7a5ef98a3ec21a2c972 with the exception that I am not setting Ec2SetComputerName to Yes since I want a random hostname rather than the hostname based on the ip address.  Sysprep is not running for me.  Has anyone gotten the above sample working?  The way I interpret it, is that sysprep should be run when creating the AMI if those settings are set and there's no need to explicitly invoke it.  

John Culkin

unread,
Jul 20, 2016, 3:26:10 PM7/20/16
to Packer
I am having the same issue - there has got to be a better way
Reply all
Reply to author
Forward
0 new messages