Search code examples
vagrantchef-infravirtualboxtest-kitchen

Chef Workstation: Overcoming nested virtualization issues


Regarding Chef Workstation best practices:

I currently am setting up a Chef Workstation on a windows 7 machine. In order to avoid Powershell scripts, I have my workstation setup on a VM running on Virtualbox.

When I attempt to use Chef's Testkitchen, Testkitchen attempts to spin up a sandbox environment using Vagrant + Virtualbox. Virtualbox running on Virtualbox = nested virtualization issue as Virtualbox does not support nested virtualization.

Am I correct in assuming here that in order to keep using Testkitchen and Vagrant + Virtualbox, I will either need to dual boot my current windows 7 machine or acquire an additional machine with a linux distribution as the native OS?

Thanks in advance for any feedback / recommendations on overcoming this hurdle in setting up my Chef Workstation environment.


Solution

  • The expectation is that ChefDK is installed on your actual workstation, not a VM. You don't need Powershell specifically, you can use ChefDK just fine with bash from MSYS or cmd.exe if you prefer.