I just had the same error message, and it turned out I had a typo in the 
name of the base.
make sure your --base is the full name of the VM in virtualbox (or what 
ever provider you use). 

if the VM was already created by vagrant, then the name will probably look 
something like: netbeans8-ide_default_1401579635196_54681
so the command would look like: vagrant package --base 
netbeans8-ide_default_1401579635196_54681 --output netbeans8-ide.box

also, I saw a bug report about this problem for VMs that did exist, that 
bug has been fixed in 1.6.1, make sure your vagrant is up2date.


On Wednesday, 21 May 2014 14:13:01 UTC, Daniel Wilson wrote:
>
> *My apologies if this is a repost.  As far as I can tell, my first attempt 
> to post failed.*
>
> I have created a machine run in VirtualBox.  It runs CentOS 6.5 and Gnome 
> and has all the specified headers and client additions installed.  But when 
> I attempt to package it as a base box, I get errors.
>
> Any idea what I'm doing wrong?
>
> Thanks!
>
> D:\YB_Code\git_code\YB\VagrantImages\BaseIDE>vagrant package --base 
> netbeans8-ide --output netbeans8-ide.box
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:251:in
>  
> `id=': undefined method `join' for n
> il:NilClass (NoMethodError)
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:433:in
>  
> `state'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/created.rb:11:in
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in
>  
> `block in run'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in
>  
> `busy'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in
>  
> `run'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:43:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/providers/virtualbox/action/check_virtualbox.
> rb:17:in `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builder.rb:116:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in
>  
> `block in run'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/util/busy.rb:19:in
>  
> `busy'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/runner.rb:66:in
>  
> `run'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:196:in
>  
> `action_raw'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:173:in
>  
> `block in action'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:434:in
>  
> `lock'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:161:in
>  
> `call'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/machine.rb:161:in
>  
> `action'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/commands/package/command.rb:83:in
>  
> `package_vm
> '
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/commands/package/command.rb:66:in
>  
> `package_ba
> se'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/plugins/commands/package/command.rb:42:in
>  
> `execute'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/cli.rb:42:in
>  
> `execute'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/environment.rb:252:in
>  
> `cli'
>         from 
> C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.2/bin/vagrant:166:in 
> `<main>'
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to