Giter Site home page Giter Site logo

Comments (4)

basictheprogram avatar basictheprogram commented on July 28, 2024 1

Thought I did the build with PACKER_LOG=1, I'll run it again.

Only change from upstream is changing iso_url to SW_DVD9_Win_Server_STD_CORE_2016_64Bit_English_-4_DC_STD_MLF_X21-70526.ISO

Edit 1

$ env | grep PACKER
PACKER_LOG=1

$ time packer build -only=vmware-iso -var 'disk_size=65536' --force -var-file=/Users/tanner/.packer.d/vsphere.json windows_2016.json > packer.log 2>&1

Post packer.log when it completes or errors.

packer.log

from packer-windows.

StefanScherer avatar StefanScherer commented on July 28, 2024

I sometimes build with a MSDN ISO file and it worked for me.
Maybe we can see more with PACKER_LOG variable set to eg. 1.
Do you run a different shutdown command?

from packer-windows.

basictheprogram avatar basictheprogram commented on July 28, 2024

At a loss on what is wrong here. Did some debugging. Installed a pause into the sysprep.bat so I could try a few things by hand.

net stop tiledatamodelsvc
pause
c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:a:\unattend.xml

Packer log snippet

2018/03/26 00:03:21 packer: The Tile Data model server service is stopping.
2018/03/26 00:03:21 packer: The Tile Data model server service was stopped successfully.
2018/03/26 00:03:21 packer:
2018/03/26 00:03:21 packer:
2018/03/26 00:03:21 packer: C:\Users\vagrant>pause
2018/03/26 00:03:21 packer: Press any key to continue . . .

I went to the VM, fired up an Administrator powershell and executed

c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:a:\unattend.xml

And the VM shutdown, Pressed any key to continue and packer still threw an error.

2018/03/26 00:03:21 packer: 2018/03/26 00:03:21 Shutdown stderr:
2018/03/26 00:03:21 ui error: ==> vmware-iso: Timeout while waiting for machine to shut down.
==> vmware-iso: Timeout while waiting for machine to shut down.

Note the timestamp on the Shutdown stderr:, it's like packer isn't wait any amount of time for shutdown to happen.

from packer-windows.

basictheprogram avatar basictheprogram commented on July 28, 2024

This is a "new" (to my packer builders) but an older iMac. Added

    "shutdown_timeout": "1h",

Not images are created as expected.
Closing this issue.

from packer-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.