title: Invalid configured shell error when running the official FreeBSD vagrant box
body: <p>I tried to run the official FreeBSD vagrant box by using:</p>
  
  <pre><code>vagrant init freebsd/FreeBSD-10.2-STABLE
  </code></pre>
  
  <p>And afterwards, modified my Vagrantfile accordingly based on the instructions at <a href="https://forums.freebsd.org/threads/52717/" rel="noreferrer">https://forums.freebsd.org/threads/52717/</a> by adding the following lines:</p>
  
  <pre><code>Vagrant.configure("2") do |config|
    config.vm.guest = :freebsd
    config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true
    config.vm.box = "freebsd/FreeBSD-10.2-STABLE"
    config.ssh.shell = "sh"
    config.vm.base_mac = "080027D14C66"
  
    config.vm.provider :virtualbox do |vb|
      vb.customize ["modifyvm", :id, "--memory", "1024"]
      vb.customize ["modifyvm", :id, "--cpus", "1"]
      vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
      vb.customize ["modifyvm", :id, "--audio", "none"]
      vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
      vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
    end
  end
  </code></pre>
  
  <p>When I issue the vagrant up command:</p>
  
  <pre><code>vagrant up --provider virtualbox
  </code></pre>
  
  <p>the following error was shown:</p>
  
  <blockquote>
    <p>The configured shell (config.ssh.shell) is invalid and unable to
    properly execute commands. The most common cause for this is using a
    shell that is unavailable on the system. Please verify you're using
    the full path to the shell and that the shell is executable by the SSH
    user.</p>
  </blockquote>
  
  <p>Regardless of the error, I'm still able to <code>vagrant ssh</code> into the box. However, I'm not able to gracefully shutdown the machine using <code>vagrant halt</code>. It would show the same error as above and does not shutdown at all.</p>