New Question
0

Reseal Image process

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

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
0

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

avladu gravatar image

Hello,

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?

Thanks.

edit flag offensive delete link more

Comments

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 +0200 )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 +0200 )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 +0200 )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 +0200 )edit

On Windows, you can use the qemu-img.exe provided here: https://cloudbase.it/qemu-img-windows/

avladu gravatar imageavladu ( 2016-05-05 12:05:19 +0200 )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

Stats

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

Seen: 586 times

Last updated: May 04 '16