vagrant xenial box with libvirt

31 views
Skip to first unread message

POE

unread,
Dec 12, 2016, 10:44:47 AM12/12/16
to Vagrant
Hi, 

I'm trying to launch some vagrant boxes on Ubuntu 16.04LTS. Most of the time (not always) I get error below. 
The box itself is a simple ubuntu cloud image with minor changes. When it works, I can ssh there without any problems. When vagrant fails (usually 50% of launched with `vagrant up` required boxes), it shuts down VMs on libvirt host. 

No issues with trusty image with same Vagrant file. All guides me to some strange ssh issue, but I have no idea how to trace it or fix. net-ssh seems to be dead. 

Tested on vagrant 1.9.1 and 1.7.4.

Any ideas? Help, please. :)



/opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/proxy/command.rb:93:in `read_nonblock': end of file reached (EOFError)
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/proxy/command.rb:93:in `recv'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/buffered_io.rb:65:in `fill'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/packet_stream.rb:88:in `next_packet'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:185:in `block in poll_message'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:180:in `loop'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:180:in `poll_message'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:217:in `block in wait'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:215:in `loop'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:215:in `wait'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh/transport/session.rb:87:in `initialize'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh.rb:225:in `new'
from /opt/vagrant/embedded/gems/gems/net-ssh-3.0.2/lib/net/ssh.rb:225:in `start'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/plugins/communicators/ssh/communicator.rb:397:in `block (2 levels) in connect'
from /opt/vagrant/embedded/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'
from /opt/vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `block in catch'
from /opt/vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `catch'
from /opt/vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `catch'
from /opt/vagrant/embedded/lib/ruby/2.2.0/timeout.rb:103:in `timeout'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/plugins/communicators/ssh/communicator.rb:371:in `block in connect'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/util/retryable.rb:17:in `retryable'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/plugins/communicators/ssh/communicator.rb:370:in `connect'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/plugins/communicators/ssh/communicator.rb:129:in `ready?'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/wait_till_up.rb:66:in `block (2 levels) in call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/util/retryable.rb:17:in `retryable'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/wait_till_up.rb:58:in `block in call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/util/timer.rb:9:in `time'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/wait_till_up.rb:56:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/start_domain.rb:294:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/set_boot_order.rb:60:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/create_network_interfaces.rb:143:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/create_networks.rb:80:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/share_folders.rb:20:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/prepare_nfs_settings.rb:18:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/synced_folders.rb:87:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/plugins/synced_folders/nfs/action_cleanup.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb:12:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/provision.rb:80:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/create_domain.rb:244:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/create_domain_volume.rb:51:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/handle_box_image.rb:111:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/handle_storage_pool.rb:50:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /root/.vagrant.d/gems/2.2.5/gems/vagrant-libvirt-0.0.35/lib/vagrant-libvirt/action/set_name_of_domain.rb:35:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/machine.rb:225:in `action_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/machine.rb:200:in `block in action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/environment.rb:567:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/machine.rb:186:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/machine.rb:186:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.1/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

Reply all
Reply to author
Forward
0 new messages