Search code examples
.netvagrantchef-infravirtualboxtest-kitchen

Kitchen hangs during test chef role


I have creating some chef cookbooks and all works correctly. Now I want to use kitchen for testing my recipe and cookbooks. Kitchen run on Linux centos 7 and I use virtualbox.

If I launch recipe to install ms_dotnet 4.5 on win server 2008 all works correctly.

If I launch the same recipe using kitchen on same platform chef client hangs on this message update content in file (file sizes exceed 10000000 bytes, diff output suppressed)

If I open virtual box and show the desktop, the directory and the executable of .dotnet 4.5 is present. And if I try to install the .dotnet 4.5 without kitchen all runs correctly.

How can I resolve my problems?

Thanks you so much


Solution

  • I resolved my problems!

    I modify my kitchen.yml and insert:

      - name: softsolutions/win-2008r2-standard-amd64-nocm-sp1
        transport:
            name: winrm
            elevated: true
            elevated_username: System
            elevated_password: null
    

    Now msdotnet cookbook works correctly.

    Thanks you