厨房在测试厨师角色期间挂起

Kitchen hangs during test chef role

我已经创建了一些厨师食谱并且一切正常。 现在我想用厨房来测试我的食谱和食谱。 Kitchen 运行 在 Linux centos 7 上,我使用 virtualbox。

如果我启动配方以在 win server 2008 上安装 ms_dotnet 4.5,一切正常。

如果我在同一平台上使用厨房启动相同的食谱,厨师客户端会挂起此消息 更新文件中的内容(文件大小超过 10000000 字节,diff 输出被抑制)

如果我打开虚拟框并显示桌面,则存在 .dotnet 4.5 的目录和可执行文件。 如果我尝试在没有厨房的情况下安装 .dotnet 4.5,所有 运行s 都正确。

我该如何解决我的问题?

非常感谢

这是我的厨房配置

driver:
  name: vagrant
  boot_timeout: 1200
provisioner:
  name: chef_solo
  require_chef_omnibus: 12.5.1

platforms:
  - name: softsolutions/redhat72
  - name: softsolutions/centos67  
  - name: softsolutions/centos7  
  - name: softsolutions/opensuse113
  - name: softsolutions/win-2008r2-standard-amd64-nocm
    transport:
        name: winrm
  - name: softsolutions/win-7-professional-amd64-nocm
    transport:
        name: winrm  

suites:
  #Roles for physical machines
  - name: do-base
    run_list:
        - role[do-base]  

这是我的厨房日志(尝试安装 dotnet 4.5 时)

I, [2017-02-24T15:39:41.503828 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:  (up to date)
I, [2017-02-24T15:39:41.504670 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:   * execute[set_for_current_shell] action run
I, [2017-02-24T15:39:41.505538 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:     - execute PATH=%PATH%;C:\BuildTools\apache-maven\bin\
I, [2017-02-24T15:39:41.506393 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm: Recipe: ms_dotnet45::default
I, [2017-02-24T15:39:41.507264 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:   * windows_package[Microsoft .NET Framework 4.5] action install
I, [2017-02-24T15:39:44.344388 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:     * remote_file[C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/ms_dotnet-4.5.exe] action create
I, [2017-02-24T15:39:46.292294 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:       - create new file C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/ms_dotnet-4.5.exe
I, [2017-02-24T15:39:46.293742 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:       - update content in file C:\Users\vagrant\AppData\Local\Temp\kitchen\cache/ms_dotnet-4.5.exe from none to 6c2c58
I, [2017-02-24T15:39:46.295069 #31565]  INFO -- do-developer-softsolutions-win-2008r2-standard-amd64-nocm:       (file sizes exceed 10000000 bytes, diff output suppressed)

我解决了我的问题!

我修改我的 kitchen.yml 并插入:

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

现在 msdotnet 说明书可以正常工作。

谢谢