Why is test-kitchen with Windows 2008r2 so slow?

Peter Burkholder -

I don't think there's going to be any good resolution when using Windows2008r2 as the VM you're trying to spin up. On OsX I get around 3m30s or 4m when starting Windows2008r2, even when I allocate 4 cpus and 8G ram. Windows2012 takes only half the time.

I recommend the following:

  • Allocate at least 2 cpus and 4G ram as with the following .kitchen.yml
---
driver:
  name: vagrant
  provider: virtualbox
  customize:
    cpus: 2
    memory: 4192

provisioner:
  name: chef_zero

verifier:
  name: pester

platforms:
  - name: opentable/win-2008r2-standard-amd64-nocm
    os_type: windows
    transport:
      name: winrm
    provisioner:
      require_chef_omnibus: 12.5.1
  - name: opentable/win-2012r2-standard-amd64-nocm
    os_type: windows
    transport:
      name: winrm
    provisioner:
      require_chef_omnibus: 12.5.1

The crux of the issue is that 2008r2 is just dog slow on startup in general, and also uses a delayed start to winrm.

Have more questions? Submit a request

Comments

Powered by Zendesk