Run with headless false, add flag --on-error=ask when this fails use the console and debug the winrm setup from the inside or check the status of the installation.
On Tue, Aug 13, 2019, 13:11 Automationbuilder360 Builder < [email protected]> wrote: > Hi All, > > Am new to Packer, am trying to create a Windows 2016 guest on VBOX hosted > on RHEL VM. > using virtualbox-iso builders and trying to test my windows customized > image. > the idea to create VM and get windows 2016 installed through iso and then > connect with ansible and run couple of test cases. part of my image > building and testing pipeline. > > however after the VM gets created it waits for winrm untill the timeout > and just fails, > i have no idea to see whats happening on the guest. > this is a tested iso which works great on vmware. any help is much > appreciated. > > > Here is the output > > ==> virtualbox-iso: Retrieving ISO > virtualbox-iso: Using file in-place: > file:///home/myhome/iso/mycustom_windows2016.v1.0.ISO > ==> virtualbox-iso: Creating floppy disk... > virtualbox-iso: Copying files flatly from floppy_files > virtualbox-iso: Copying file: ./Scripts/enable_winrm.ps1 > virtualbox-iso: Done copying files from floppy_files > virtualbox-iso: Collecting paths from floppy_dirs > virtualbox-iso: Resulting paths from floppy_dirs : [] > virtualbox-iso: Done copying paths from floppy_dirs > ==> virtualbox-iso: Creating virtual machine... > ==> virtualbox-iso: Creating hard drive... > ==> virtualbox-iso: Attaching floppy disk... > ==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, > WinRM, etc) (host port 3789) > ==> virtualbox-iso: Executing custom VBoxManage commands... > virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1565282739 > --natpf1 winrm,tcp,,222585,,5985 > virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1565282739 > --memory 4096 > virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1565282739 > --cpus 2 > ==> virtualbox-iso: Starting the virtual machine... > virtualbox-iso: The VM will be run headless, without a GUI. If you want to > virtualbox-iso: view the screen of the VM, connect via VRDP without a > password to > virtualbox-iso: rdp://127.0.0.1:5908 > ==> virtualbox-iso: Waiting 10s for boot... > ==> virtualbox-iso: Typing the boot command... > ==> virtualbox-iso: Using winrm communicator to connect: 127.0.0.1 > ==> virtualbox-iso: Waiting for WinRM to become available... > ==> virtualbox-iso: Timeout waiting for WinRM. > ==> virtualbox-iso: Deregistering and deleting VM... > ==> virtualbox-iso: Deleting output directory... > Build 'virtualbox-iso' errored: Timeout waiting for WinRM. > > ==> Some builds didn't complete successfully and had errors: > --> virtualbox-iso: Timeout waiting for WinRM. > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/1e83587f-660c-45ed-9caf-1e0acf39786f%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/1e83587f-660c-45ed-9caf-1e0acf39786f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt8bhK3mDAboH00sg1JZmZ2jBKMxZVPwVqtcX%2B%2BhGzKj0g%40mail.gmail.com.
