Image sysprep not completing

1,091 views
Skip to first unread message

p.chatzima...@gmail.com

unread,
Aug 24, 2018, 5:34:32 AM8/24/18
to Packer
Hi all,

Using the very basic sysprep command, as given in Packer documentation. I can create images from all Windows Server SKUs, but 2016 Datacenter.

It gets stuck in the below:

azure-arm: Provisioning with powershell script: C:\Users\<username>\AppData\Local\Temp\packer-powershell-provisioner<number>
    azure-arm: IMAGE_STATE_COMPLETE
    azure-arm: IMAGE_STATE_UNDEPLOYABLE
    azure-arm: IMAGE_STATE_UNDEPLOYABLE
    azure-arm: IMAGE_STATE_UNDEPLOYABLE
    azure-arm: IMAGE_STATE_UNDEPLOYABLE
    azure-arm: IMAGE_STATE_UNDEPLOYABLE
    azure-arm: IMAGE_STATE_UNDEPLOYABLE

And it never completes.

Anyone ever had a similar issue?

Thanks,
Panos

Alvaro Miranda Aguilera

unread,
Sep 6, 2018, 9:35:06 AM9/6/18
to packe...@googlegroups.com
Hello 

that only that particular flavour fails, rise an eyebrow

as you are MS on MS, can't get azure to comment?


--
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/db7f585c-af8f-49a3-a78d-ec4aaa252667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

p.chatzima...@gmail.com

unread,
Sep 7, 2018, 10:21:16 AM9/7/18
to Packer
So like you said, it was an MSFT issue.

rgagent, windowsAzureTelemetryService, WindowsAzureGuestAgent need to be disabled in the temp VM and the following keys need to be removed from the registry.

"Set-Service RdAgent -StartupType Disabled",

"Set-Service WindowsAzureTelemetryService -StartupType Disabled",

"Set-Service WindowsAzureGuestAgent -StartupType Disabled",

"remove-itemproperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\SysPrepExternal\\Generalize' -Name '*'"


reboot and after that sysprep works fine.

Reply all
Reply to author
Forward
0 new messages