mitchellh/vagrant — Issue #773: Feature detect Openbsd guest
Author: stefancocora
Created: 2012-03-05 17:02:42+00:00
State: open

I've logged it as a new ticket, I assume new tickets get a bigger chunk of your attention compared to comments on closed tickets. ( old ticket Issue #627 )
I've ran the "vagrant reload" test against an openbsd 5.0 VM. Vagrant doesn't appear to be detecting openbsd. Is there a way to make vagrant detect an openbsd OS ?

Vagrant version 0.9.7
I have same specs as my first test + I've just upgraded vagrant:
ubuntu 11.04, ruby 1.8.7, OpenBSD 5.0 virtual machine

I've ran vagrant reload with this Vagrant file:
#
Vagrant::Config.run do |config|

config.vm.customize ["modifyvm", :id, "--memory", "256", "--name", "openbsd50_amd64"]
# vm.name = 'openbsd50_amd64'
# # vm.name = 'openbsd50_i386'
# end
config.vm.box="openbsd50_amd64"

config.vm.guest=:freebsd

# config.vm.box="openbsd50_i386"
config.vm.boot_mode = :gui
config.ssh.timeout = 300
config.ssh.max_tries = 50

# Use a shell provisioner for Vagrant here taking the commented code below
# config.vm.provision :shell, :path => "bin/vagrant-provision.sh"

end

The output is

vagrant reload
[default] Attempting graceful shutdown of VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

shutdown -p now

I've also ran vagrant reload without "config.vm.guest=:freebsd" and I get:

vagrant reload
[default] Attempting graceful shutdown of VM...
/usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:33:in `select': closed stream (IOError)
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:33:in `io_select'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:32:in `synchronize'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/ruby_compat.rb:32:in `io_select'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/transport/packet_stream.rb:73:in `available_for_read?'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/transport/packet_stream.rb:85:in `next_packet'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:171:in `poll_message'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:166:in `loop'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:166:in `poll_message'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:451:in `dispatch_incoming_packets'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:213:in `preprocess'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:197:in `process'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:161:in `loop'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:161:in `loop_forever'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/session.rb:161:in `loop'
from /usr/lib/ruby/gems/1.8/gems/net-ssh-2.2.2/lib/net/ssh/connection/channel.rb:269:in `wait'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/communication/ssh.rb:206:in `shell_execute'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/communication/ssh.rb:53:in `execute'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/communication/ssh.rb:110:in `connect'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/communication/ssh.rb:52:in `execute'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/communication/ssh.rb:72:in `sudo'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/guest/linux.rb:31:in `halt'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/halt.rb:14:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/discard_state.rb:17:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/check_accessible.rb:18:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/general/validate.rb:14:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/vm/check_accessible.rb:18:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/general/validate.rb:14:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/builder.rb:92:in `call'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/runner.rb:49:in `run'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/util/busy.rb:19:in `busy'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/action/runner.rb:49:in `run'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/vm.rb:192:in `run_action'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/vm.rb:158:in `reload'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/command/reload.rb:21:in `execute'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/command/base.rb:100:in `with_target_vms'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/command/base.rb:95:in `each'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/command/base.rb:95:in `with_target_vms'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/command/reload.rb:18:in `execute'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/cli.rb:38:in `execute'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/lib/vagrant/environment.rb:156:in `cli'
from /usr/lib/ruby/gems/1.8/gems/vagrant-0.9.7/bin/vagrant:43
from /usr/bin/vagrant:19:in `load'
from /usr/bin/vagrant:19

Am I missing something in the Vagrant file ? Shouldn't vagrant autodetect Openbsd ?