First run the activation of Windows 7 until it fails.
Then proceed as follows:
Login to the CLI/ssh, and using the g2 user, download the script and run it:
$ sudo -i
$ curl -OL https://gist.githubusercontent.com/kung-foo/d62c8bcd1b54ea3c7898/raw/3eb5b2383d8a520a912a3626fa812de65ffe64a0/rearm-profile.py
$ python rearm-profile.py
Output looks like this:
Is the IntelliVM base image you are attempting to activate currently in a failed state? [y/N] y
Looking for ivmcontrold's connection to the running base image...
Found srvcode.py running @ 10.74.1.100:5472
Atempting to run slmgr -rearm...
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Command completed successfully.
Please restart the system for the changes to take effect.
Shutting down the base image...
Please wait until the virtual machine has shutdown... (120 seconds)
Now go through the activation procedure in the UI and cancel/reset the activation and run it again.
Now the profile activates as expected