hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.27k stars 4.43k forks source link

Vagrant 1.0.3 with VBox 4.1.18 on OS X Lion Provisioning issue with chef and puppet #1058

Closed jonchu closed 12 years ago

jonchu commented 12 years ago

I'm running through the getting started tutorial. When I try to do vagrant up, I get:

[default] Importing base box 'lucid32'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.1.16
VirtualBox Version: 4.1.18
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: *** Chef 0.10.10 ***
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Setting the run_list to ["recipe[vagrant_main]"] from JSON
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Run List is [recipe[vagrant_main]]
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Run List expands to [vagrant_main]
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Starting Chef Run for lucid32
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Running start handlers
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Start handlers complete.
[Wed, 08 Aug 2012 22:57:52 +0200] INFO: Processing execute[apt-get update] action run (apt::default line 20)
[default] Destroying VM and associated drives...
/Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:22:in `select': closed stream (IOError)
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:22:in `io_select'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/transport/packet_stream.rb:73:in `available_for_read?'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/transport/packet_stream.rb:85:in `next_packet'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:171:in `block in poll_message'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:166:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:166:in `poll_message'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:451:in `dispatch_incoming_packets'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:213:in `preprocess'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:197:in `process'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:161:in `block in loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:161:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:161:in `loop'
    from /Applications/Vagrant/embedded/gems/gems/net-ssh-2.2.2/lib/net/ssh/connection/channel.rb:269:in `wait'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/communication/ssh.rb:213:in `shell_execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/communication/ssh.rb:53:in `block in execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/communication/ssh.rb:110:in `connect'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/communication/ssh.rb:52:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/communication/ssh.rb:72:in `sudo'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/provisioners/chef_solo.rb:196:in `block in run_chef_solo'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/provisioners/chef_solo.rb:189:in `times'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/provisioners/chef_solo.rb:189:in `run_chef_solo'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/provisioners/chef_solo.rb:96:in `provision!'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/provision.rb:34:in `block in call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/provision.rb:31:in `each'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/provision.rb:31:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/forward_ports.rb:24:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/check_port_collisions.rb:42:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/env/set.rb:16:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/clear_forwarded_ports.rb:13:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/clean_machine_folder.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/check_accessible.rb:18:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/general/validate.rb:13:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/general/check_virtualbox.rb:23:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/match_mac_address.rb:16:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/default_name.rb:17:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/check_guest_additions.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/import.rb:31:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/check_box.rb:28:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/vm/check_accessible.rb:18:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/general/validate.rb:13:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/general/check_virtualbox.rb:23:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/warden.rb:33:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/builder.rb:92:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/runner.rb:49:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/action/runner.rb:49:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/vm.rb:192:in `run_action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/vm.rb:145:in `up'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/up.rb:31:in `block in execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/base.rb:116:in `block in with_target_vms'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/base.rb:111:in `each'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/base.rb:111:in `with_target_vms'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/command/up.rb:24:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/cli.rb:42:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/lib/vagrant/environment.rb:167:in `cli'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.0.3/bin/vagrant:43:in `<top (required)>'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:19:in `load'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:19:in `<main>'
mitchellh commented 12 years ago

This is actually a dupe of #516. The problem is rather complicated, but will be fixed in time.