We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running packer build -force -only virtualbox-iso .\vbox-2016.json gives the following
packer build -force -only virtualbox-iso .\vbox-2016.json
virtualbox-iso: Download progress: 99% virtualbox-iso: Download progress: 100% virtualbox-iso: Download progress: 100% ==> virtualbox-iso: Creating floppy disk... virtualbox-iso: Copying files flatly from floppy_files virtualbox-iso: Copying file: answer_files/2016/Autounattend.xml virtualbox-iso: Copying file: scripts/winrm.ps1 virtualbox-iso: Done copying files from floppy_files virtualbox-iso: Collecting paths from floppy_dirs virtualbox-iso: Resulting paths from floppy_dirs : [] virtualbox-iso: Done copying paths from floppy_dirs ==> virtualbox-iso: Creating virtual machine... ==> virtualbox-iso: Creating hard drive... ==> virtualbox-iso: Attaching floppy disk... ==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 3794) ==> virtualbox-iso: Executing custom VBoxManage commands... virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1507060953 --memory 2048 virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1507060953 --vram 48 virtualbox-iso: Executing: modifyvm packer-virtualbox-iso-1507060953 --cpus 2 ==> virtualbox-iso: Starting the virtual machine... virtualbox-iso: The VM will be run headless, without a GUI. If you want to virtualbox-iso: view the screen of the VM, connect via VRDP without a password to virtualbox-iso: rdp://127.0.0.1:5937 ==> virtualbox-iso: Waiting 10s for boot... ==> virtualbox-iso: Typing the boot command... ==> virtualbox-iso: Waiting for WinRM to become available... virtualbox-iso: WinRM connected. virtualbox-iso: #< CLIXML virtualbox-iso: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" Re fId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1 </I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR >-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">1</I64><PR N="Rec ord"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </S D></PR></MS></Obj></Objs> ==> virtualbox-iso: Connected to WinRM! ==> virtualbox-iso: Uploading VirtualBox version info (5.1.28) ==> 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, ins tall} virtualbox-iso: Installing chef from C:\Users\vagrant\AppData\Local\Temp\chef-client-13.5.3-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----- 10/3/2017 9:05 PM 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----- 10/3/2017 9:05 PM 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----- 10/3/2017 9:05 PM 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/sol o.rb -j C:/Windows/Temp/packer-chef-solo/node.json virtualbox-iso: Starting Chef Client, version 13.5.3 virtualbox-iso: c:/windows/temp/packer-chef-solo/local-mode-cache/cache/cookbooks/windows/resources/printer_port.rb: 33: warning: constant ::Fixnum is deprecated virtualbox-iso: resolving cookbooks for run list: ["wsus-client::configure", "packer-templates::install_ps_modules", "packer-templates::vbox_guest_additions", "packer-templates::uninstall_powershell_ise", "packer-templates::delete_pagef ile"] virtualbox-iso: [2017-10-03T21:06:45+00:00] WARN: Child with name 'packer-templates' found in multiple directories: C:/Windows/Temp/packer-chef-solo/cookbooks-0/packer-templates and C:/Windows/Temp/packer-chef-solo/cookbooks-1/packer-te mplates virtualbox-iso: [2017-10-03T21:06:45+00:00] WARN: Child with name 'packer-templates' found in multiple directories: C:/Windows/Temp/packer-chef-solo/cookbooks-0/packer-templates and C:/Windows/Temp/packer-chef-solo/cookbooks-1/packer-te mplates virtualbox-iso: [2017-10-03T21:06:45+00:00] WARN: Child with name 'packer-templates' found in multiple directories: C:/Windows/Temp/packer-chef-solo/cookbooks-0/packer-templates and C:/Windows/Temp/packer-chef-solo/cookbooks-1/packer-te mplates virtualbox-iso: Synchronizing Cookbooks: virtualbox-iso: - wsus-client (1.2.1) virtualbox-iso: - packer-templates (0.1.0) virtualbox-iso: - windows (1.44.1) virtualbox-iso: - chef_handler (1.4.0) virtualbox-iso: Installing Cookbook Gems: virtualbox-iso: Compiling Cookbooks... virtualbox-iso: virtualbox-iso: ================================================================================ virtualbox-iso: Recipe Compile Error in c:/windows/temp/packer-chef-solo/local-mode-cache/cache/cookbooks/packer-tem plates/recipes/uninstall_powershell_ise.rb virtualbox-iso: ================================================================================ virtualbox-iso: virtualbox-iso: Chef::Exceptions::NoSuchResourceType virtualbox-iso: ------------------------------------ virtualbox-iso: Cannot find a resource for windows_feature_dism on windows version 10.0.14393 virtualbox-iso: virtualbox-iso: System Info: virtualbox-iso: ------------ virtualbox-iso: chef_version=13.5.3 virtualbox-iso: platform=windows virtualbox-iso: platform_version=10.0.14393 virtualbox-iso: ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32] virtualbox-iso: program_name=c:/opscode/chef/bin/chef-solo virtualbox-iso: executable=c:/opscode/chef/bin/chef-solo virtualbox-iso: virtualbox-iso: virtualbox-iso: Running handlers: virtualbox-iso: [2017-10-03T21:06:46+00:00] ERROR: Running exception handlers virtualbox-iso: Running handlers complete virtualbox-iso: [2017-10-03T21:06:46+00:00] ERROR: Exception handlers complete virtualbox-iso: Chef Client failed. 0 resources updated in 05 seconds virtualbox-iso: [2017-10-03T21:06:46+00:00] FATAL: Stacktrace dumped to c:/windows/temp/packer-chef-solo/local-mode- cache/cache/chef-stacktrace.out virtualbox-iso: [2017-10-03T21:06:46+00:00] FATAL: Please provide the contents of the stacktrace.out file if you fil e a bug report virtualbox-iso: [2017-10-03T21:06:46+00:00] FATAL: Chef::Exceptions::NoSuchResourceType: Cannot find a resource for windows_feature_dism on windows version 10.0.14393 virtualbox-iso: c:/windows/temp/packer-chef-solo/local-mode-cache/cache/cookbooks/windows/resources/printer_port.rb: 38: warning: constant ::Fixnum is deprecated ==> virtualbox-iso: Unregistering and deleting virtual machine... ==> virtualbox-iso: Deleting output directory... Build 'virtualbox-iso' errored: Error executing Chef: Non-zero exit status: 1 ==> Some builds didn't complete successfully and had errors: --> virtualbox-iso: Error executing Chef: Non-zero exit status: 1 ==> Builds finished but no artifacts were created.
Packer 1.1 Chef Development Kit 2.3.4 VirtualBox 5.1
The text was updated successfully, but these errors were encountered:
I was having this same issue but I found issue #90.
The answer from scolligan fixed my compile error:
I was having the same issue with the Chef 13 client. To work around it, I deleted:
.\cookbooks\packer-templates\Berksfile.lock
before I ran
berks vendor ../../vendor/cookbooks
Sorry, something went wrong.
No branches or pull requests
running
packer build -force -only virtualbox-iso .\vbox-2016.json
gives the followingPacker 1.1
Chef Development Kit 2.3.4
VirtualBox 5.1
The text was updated successfully, but these errors were encountered: