jedi4ever / veewee

Easing the building of vagrant boxes
MIT License
4.29k stars 779 forks source link

(erb):3:in `get_binding': undefined method `start_with?' for nil:NilClass (NoMethodError) error while building Windows 8 image #980

Closed andrewmilkowski closed 10 years ago

andrewmilkowski commented 10 years ago

LT-MBP-AM:veewee amilkowski$ veewee fusion define 'windows-8-amd64' 'windows-8-amd64'

The basebox 'windows-8-amd64' has been successfully created from the template 'windows-8-amd64'
You can now edit the definition files stored in /opt/local/src/git/veewee/definitions/windows-8-amd64 or build the box with:
veewee fusion build 'windows-8-amd64' --workdir=/opt/local/src/git/veewee
LT-MBP-AM:veewee amilkowski$ veewee fusion build 'windows-8-amd64' --workdir=/opt/local/src/git/veewee
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
Building Box windows-8-amd64 with Definition windows-8-amd64:
- debug : false
- cwd : /opt/local/src/git/veewee
- force : false
- nogui : false
- auto : false
- checksum : false
- postinstall_include : []
- postinstall_exclude : []
- skip_to_postinstall : false

We did not find an isofile here : /opt/local/src/git/veewee/iso/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO. 

The definition provided the following download information:
- Download url: http://care.dlservice.microsoft.com/dl/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO
- Md5 Checksum: 5e4ecb86fd8619641f1d58f96e8561ec

Download? (Yes/No) Yes
Creating an iso directory
Checking if isofile 9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO already exists.
Full path: /opt/local/src/git/veewee/iso/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO
Fetching file:   1% |                        |  39.5MB   3.Fetching file:   1% |         Moving /var/folders/hr/bnq6tsdn0slg7_x7d6707d3c31fpwv/T/open-uri20140903-59314-r9tofi to /opt/local/src/git/veewee/iso/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO

Found VNC port 5920 available
(erb):3:in `get_binding': undefined method `start_with?' for nil:NilClass (NoMethodError)
    from /Users/amilkowski/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/erb.rb:838:in `eval'
    from /Users/amilkowski/.rvm/rubies/ruby-1.9.3-p547/lib/ruby/1.9.1/erb.rb:838:in `result'
    from /opt/local/src/git/veewee/lib/veewee/provider/vmfusion/box/template.rb:57:in `vmx_template'
    from /opt/local/src/git/veewee/lib/veewee/provider/vmfusion/box/create.rb:57:in `create_vm'
    from /opt/local/src/git/veewee/lib/veewee/provider/vmfusion/box/create.rb:11:in `create'
    from /opt/local/src/git/veewee/lib/veewee/provider/core/box/build.rb:42:in `kickstart'
    from /opt/local/src/git/veewee/lib/veewee/provider/core/box/build.rb:109:in `build'
    from /opt/local/src/git/veewee/lib/veewee/provider/vmfusion/box/build.rb:9:in `build'
    from /opt/local/src/git/veewee/lib/veewee/command/fusion.rb:23:in `build'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor.rb:235:in `block in subcommand'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /opt/local/src/git/veewee/bin/veewee:24:in `<top (required)>'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/bin/veewee:23:in `load'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/bin/veewee:23:in `<main>'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `eval'
    from /Users/amilkowski/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in `<main>'
mpapis commented 10 years ago

this happens because the definition for fusion is empty here: https://github.com/jedi4ever/veewee/blob/master/lib/veewee/config/ostypes.yml#L18 you can try with windows8-64 - to find the file on disk run: ls $(bundle show veewee)/lib/veewee/config/ostypes.yml

andrewmilkowski commented 10 years ago

thanks @mpapis , made suggested change and error went away