Closed tommasodargenio closed 8 years ago
If the VM hangs and Windows requests to enter the key, there is something wrong in Autounattend.xml with your key. The OpenSSH will be installed a long way after your problem. Just your ISO and key and the xml tags for the key in the Autounattend.xml to get it run. The headless=false mode really helps here.
The ISO that it's configured to use is specifically a trial ISO and I'm not sure if just any Key will be able to activate it. If you're providing your own key, I've found that you need to also provide your own ISO also.
Thanking you all for the feedback. I've managed to fix the issue which was very stupid, I realized that there was this in the autounattend script
<WillShowUI>OnError</WillShowUI>
which brought up the license key screen on the UI, meaning there was something wrong with it (now I realize, instead I thought it couldn't input the license key and was hanging there). Indeed of all license key I had I managed to pick the only one that was expired (didn't check the expire column in my spreadsheet as was further down), once I've put in one that wasn't expired already everything worked flawlessly.
@kensykora the iso files are not bound to the license keys, as long as they are of the same type. I have production licenses and production ISOs, obviously I won't be able to use a production license on a trial ISO and viceversa.
I'm trying to use virtualbox+packer+vagrant to automate the provisioning of VMs.
I've got the json template setup to show the VM UI (so headless=false), and configured the autounattend.xml with my ISO key and the OpenSSH Server option to be installed as first.
The issue is that the vm creation get stuck on the "Waiting for SSH" log entry, I can see the VM running and the prompt for entering the Windows Key but nothing else happen.
Any help is appreciated
this is the output up to that point from packer build, at which point I've aborted the installation
This is the autounattend.xml part with the openssh entry
I've also tried to change the order of the above as last command (order=23) but with no effect.
This is a part of the json template