mwrock / packer-templates

Templates for creating vagrant boxes
Other
536 stars 250 forks source link

Refresh Vagrant box mwrock/Windows2012R2 so license isn't expired #93

Open JohnEricson opened 7 years ago

JohnEricson commented 7 years ago

Hi Matt!

I appreciate your work with the mwrock/Windows2012R2 Vagrant box. Best box I found so far for Windows DevOps development.

It seems like the license has expired on it. I used latest version 0.6.1 today and it says "Windows License is expired". Is there anyway we could get a refreshed box? or tips on how to refresh it ourselves?

I would appreciate it greatly!

JohnEricson commented 7 years ago

I did a workaround in the mean time by doing:

slmgr.vbs /rearm

as described here.

mwrock commented 7 years ago

My apologies. I am away for the next couple weeks but will try to get refreshed boxes up shortly after I return. If you are familiar with packer, I use the templates at https://github.com/mwrock/packer-templates to create the box. So you could try building the 2012r2 box.

JohnEricson commented 7 years ago

Thanks for the tip. For now I'm fine. But it sounds great for provisioning. When I get a good case for it, I will definatelly check it out.

lavahot commented 7 years ago

Is there a way to automatically extend it when provisioning with test kitchen & vagrant? I've been looking through the documentation and it doesn't look like there's a way to do that.

darkn3rd commented 6 years ago

@lavahot slmgr /rearm and reboot. You can also export the vbox image, and use it to build a new image. You can rearm only a few times before you have to build from scratch.