I have been trying to create the vbox-2016 VM but everytime I get an error when installing Chef.
My task is simply to create a Vagrant Basebox running Windows using Oracle Virtualbox. The VM needs to have Chef installed as well and other tools but I can't get that far...
Things to know:
I use a work-laptop from my Internship that uses proxy
The VM can access internet through a script, so most files download without problems. All except Chef...
I am trying to build the vbox-2016.json from a Windows Machine
I have tried to remove the Windows dependency from cookbooks/metadata.rb
I can't seem to find a fix to this after searching this thread and other threads online... I hope someone has a solution. Thank you.
Update:
The issue was that I had not set proxy in my Environment Variables.
To do this, create a script or write the following inside Powershell:
Although the Proxy variables were set, the issue reappeaered, so I had to change the vbox JSON files, so that it would install chef through the proxy... Now it has come to licensing issues... Anyone has faced similar issue?
Error:
==> virtualbox-iso: Connected to WinRM!
==> virtualbox-iso: Uploading VirtualBox version info (6.1.18)
==> virtualbox-iso: Provisioning with chef-solo
virtualbox-iso: Installing Chef...
virtualbox-iso:
virtualbox-iso: ModuleType Version Name ExportedCommands
virtualbox-iso: ---------- ------- ---- ----------------
virtualbox-iso: Script 0.0 Omnitruck {Get-ProjectMetadata, Install-Project, install}
virtualbox-iso: Installing chef from C:\Users\vagrant\AppData\Local\Temp\chef-client-16.10.8-1-x64.msi
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Creating directory: C:/Windows/Temp/packer-chef-solo
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Directory: C:\Windows\Temp
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Mode LastWriteTime Length Name
virtualbox-iso: ---- ------------- ------ ----
virtualbox-iso: d----- 2/18/2021 9:11 AM packer-chef-solo
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: 'skipping chmod 0777 C:/Windows/Temp/packer-chef-solo'
virtualbox-iso: Creating directory: C:/Windows/Temp/packer-chef-solo/cookbooks-0
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Directory: C:\Windows\Temp\packer-chef-solo
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Mode LastWriteTime Length Name
virtualbox-iso: ---- ------------- ------ ----
virtualbox-iso: d----- 2/18/2021 9:11 AM cookbooks-0
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: 'skipping chmod 0777 C:/Windows/Temp/packer-chef-solo/cookbooks-0'
virtualbox-iso: Creating directory: C:/Windows/Temp/packer-chef-solo/cookbooks-1
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Directory: C:\Windows\Temp\packer-chef-solo
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: Mode LastWriteTime Length Name
virtualbox-iso: ---- ------------- ------ ----
virtualbox-iso: d----- 2/18/2021 9:11 AM cookbooks-1
virtualbox-iso:
virtualbox-iso:
virtualbox-iso: 'skipping chmod 0777 C:/Windows/Temp/packer-chef-solo/cookbooks-1'
virtualbox-iso: Creating configuration file 'solo.rb'
virtualbox-iso: Creating JSON attribute file
virtualbox-iso: Executing Chef: c:/opscode/chef/bin/chef-solo.bat --no-color -c C:/Windows/Temp/packer-chef-solo/solo.rb -j C:/Windows/Temp/packer-chef-solo/node.json
virtualbox-iso: Unrecognized license acceptance value '', expected one of: 'accept', 'accept-silent', 'accept-no-persist'
virtualbox-iso: Chef Infra Client cannot execute without accepting the license
==> virtualbox-iso: Provisioning step had errors: Running the cleanup provisioner, if present...
==> virtualbox-iso: Cleaning up floppy disk...
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored after 16 minutes 28 seconds: Error executing Chef: Non-zero exit status: 172
==> Wait completed after 16 minutes 28 seconds
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error executing Chef: Non-zero exit status: 172
Hello
I have been trying to create the vbox-2016 VM but everytime I get an error when installing Chef. My task is simply to create a Vagrant Basebox running Windows using Oracle Virtualbox. The VM needs to have Chef installed as well and other tools but I can't get that far...
Things to know:
Pre-run:
My crash log: VM_Error.txt
I can't seem to find a fix to this after searching this thread and other threads online... I hope someone has a solution. Thank you.
Update:
The issue was that I had not set proxy in my Environment Variables. To do this, create a script or write the following inside Powershell:
Although the Proxy variables were set, the issue reappeaered, so I had to change the vbox JSON files, so that it would install chef through the proxy... Now it has come to licensing issues... Anyone has faced similar issue?
Error: ==> virtualbox-iso: Connected to WinRM! ==> virtualbox-iso: Uploading VirtualBox version info (6.1.18) ==> virtualbox-iso: Provisioning with chef-solo virtualbox-iso: Installing Chef... virtualbox-iso: virtualbox-iso: ModuleType Version Name ExportedCommands virtualbox-iso: ---------- ------- ---- ---------------- virtualbox-iso: Script 0.0 Omnitruck {Get-ProjectMetadata, Install-Project, install} virtualbox-iso: Installing chef from C:\Users\vagrant\AppData\Local\Temp\chef-client-16.10.8-1-x64.msi virtualbox-iso: virtualbox-iso: virtualbox-iso: Creating directory: C:/Windows/Temp/packer-chef-solo virtualbox-iso: virtualbox-iso: virtualbox-iso: Directory: C:\Windows\Temp virtualbox-iso: virtualbox-iso: virtualbox-iso: Mode LastWriteTime Length Name virtualbox-iso: ---- ------------- ------ ---- virtualbox-iso: d----- 2/18/2021 9:11 AM packer-chef-solo virtualbox-iso: virtualbox-iso: virtualbox-iso: 'skipping chmod 0777 C:/Windows/Temp/packer-chef-solo' virtualbox-iso: Creating directory: C:/Windows/Temp/packer-chef-solo/cookbooks-0 virtualbox-iso: virtualbox-iso: virtualbox-iso: Directory: C:\Windows\Temp\packer-chef-solo virtualbox-iso: virtualbox-iso: virtualbox-iso: Mode LastWriteTime Length Name virtualbox-iso: ---- ------------- ------ ---- virtualbox-iso: d----- 2/18/2021 9:11 AM cookbooks-0 virtualbox-iso: virtualbox-iso: virtualbox-iso: 'skipping chmod 0777 C:/Windows/Temp/packer-chef-solo/cookbooks-0' virtualbox-iso: Creating directory: C:/Windows/Temp/packer-chef-solo/cookbooks-1 virtualbox-iso: virtualbox-iso: virtualbox-iso: Directory: C:\Windows\Temp\packer-chef-solo virtualbox-iso: virtualbox-iso: virtualbox-iso: Mode LastWriteTime Length Name virtualbox-iso: ---- ------------- ------ ---- virtualbox-iso: d----- 2/18/2021 9:11 AM cookbooks-1 virtualbox-iso: virtualbox-iso: virtualbox-iso: 'skipping chmod 0777 C:/Windows/Temp/packer-chef-solo/cookbooks-1' virtualbox-iso: Creating configuration file 'solo.rb' virtualbox-iso: Creating JSON attribute file virtualbox-iso: Executing Chef: c:/opscode/chef/bin/chef-solo.bat --no-color -c C:/Windows/Temp/packer-chef-solo/solo.rb -j C:/Windows/Temp/packer-chef-solo/node.json virtualbox-iso: Unrecognized license acceptance value '', expected one of: 'accept', 'accept-silent', 'accept-no-persist' virtualbox-iso: Chef Infra Client cannot execute without accepting the license ==> virtualbox-iso: Provisioning step had errors: Running the cleanup provisioner, if present... ==> virtualbox-iso: Cleaning up floppy disk... ==> virtualbox-iso: Deregistering and deleting VM... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored after 16 minutes 28 seconds: Error executing Chef: Non-zero exit status: 172
==> Wait completed after 16 minutes 28 seconds
==> Some builds didn't complete successfully and had errors: --> virtualbox-iso: Error executing Chef: Non-zero exit status: 172