New Question

Reseal Image process

asked 2016-05-04 16:04:09 +0300

jrack gravatar image

So tried to do a couple things, but I seemed to have inconsistent results and looking for a sanity check.

  1. Deleted the Init registry key
  2. Re-sysprepped (sysprep.exe /generalize /oobe /shutdown /unattend:C:\progra~1\cloudb~1\cloudb~1\conf\Unattend.xml)

Took a snapshot (didn't upload to glance) and then created a new Instance from the snap and the cb-init bootstrap didn't seem to run.

Now if I uninstalled cb-init, rebooted and reinstalled (used the sysprep call at the end of the installer) the template seemed to function as expected. I am sure I am just missing something in the cleanup or how I am calling sysprep. Any thoughts?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2016-05-04 19:56:19 +0300

avladu gravatar image


I have tried to reproduce your scenario, with PowerShell, ran with administrative privileges:

Remove-Item -Force -Recurse "HKLM:\\Software\Cloudbase Solutions"
& C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:'C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\Unattend.xml'

I have created an image from the instance, after I waited for the instance to complete the shutdown process. I did not get any errors with the newly spawned instanced from the created snapshot.

If possible, can you put in a pastebin the cloudbase-init logs, to further debug the issue? Moreover, are you doing some changes to the Unattend.xml?


edit flag offensive delete link more


I am doing the specialized to oobe change as this is Windows 10. That was actually the original reason for the reseal. I have also been using a volsnap as I was toying around instead of uploading to Glance. Sounds like you were using Glance? pastebin is verboten, but will look for an option

jrack gravatar imagejrack ( 2016-05-04 20:06:11 +0300 )edit

So same result... 2016-05-04 20:52:11.716 4428 INFO cloudbaseinit.init [-] Executing plugins for stage 'MAIN': 2016-05-04 20:52:11.716 4428 DEBUG cloudbaseinit.init [-] Plugin 'SetHostNamePlugin' execution already done, skipping _exec_plugin Could the volsnap instead of glance be the issue?

jrack gravatar imagejrack ( 2016-05-04 23:58:25 +0300 )edit

Is your Windows 10 32bit? If so, you need to remove another registry key: Remove-Item -Force -Recurse "HKLM:\\Software\WOW6432Node\Cloudbase Solutions\Cloudbase-Init"

avladu gravatar imageavladu ( 2016-05-05 12:00:37 +0300 )edit

If you only need to change the Unattend file, you can actually do so by converting the image file to a raw or vhd (depending on the preferred OS) with qemu-img and mounting it, then changing the required files. In this case, you need to update: C:\Windows\Panther\unattend.xml

avladu gravatar imageavladu ( 2016-05-05 12:04:40 +0300 )edit

On Windows, you can use the qemu-img.exe provided here:

avladu gravatar imageavladu ( 2016-05-05 12:05:19 +0300 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-05-04 16:04:09 +0300

Seen: 549 times

Last updated: May 04 '16