FreeBSD guest problems
stblassitude opened this issue · 8 comments
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'stblassitude/freebsd-11' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
Vagrant attempted to execute the capability 'sshfs_forward_is_folder_mounted'
on the detect guest OS 'freebsd', but the guest doesn't
support that capability. This capability is required for your
configuration of Vagrant. Please either reconfigure Vagrant to
avoid this capability or fix the issue by creating the capability.
Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "stblassitude/freebsd-11"
config.vm.synced_folder ".", "/vagrant", type: "sshfs"
end
I've manually installed fuse-sshfs (after commenting-out the synced_folder), then tried to vagrant halt; vagrant up, but I get the same error.
FWIW, VirtualBox 5.1.26, vagrant 1.8.6, as well as vagrant 1.9.7.
I've dug a bit deeper:
With FreeBSD (stblassitude/freebsd-11):
$ vagrant sshfs --mount --debug
...
GuestAdditionsFacility_VirtualBox Base Driver=50,1502310966196
GuestAdditionsFacility_VirtualBox System Service=50,1502310971236
GuestAdditionsFacility_Seamless Mode=0,1502310966196
GuestAdditionsFacility_Graphics Mode=0,1502310966196
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG virtualbox_5_1: - [1, "ssh", 2222, 22, "127.0.0.1"]
DEBUG ssh: Checking key permissions: /Users/stb/working/vagrant/stblassitude-freebsd11/.vagrant/machines/default/virtualbox/private_key
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: sshfs_installed
DEBUG guest: Checking in: freebsd
DEBUG guest: Checking in: bsd
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: sshfs_forward_is_folder_mounted
DEBUG guest: Checking in: freebsd
DEBUG guest: Checking in: bsd
INFO environment: Running hook: environment_unload
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x00000100d1f960>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::GuestCapabilityNotFound: Vagrant attempted to execute the capability 'sshfs_forward_is_folder_mounted'
...
With Ubuntu (ubuntu/xenial64):
$ vagrant sshfs --mount --debug
...
GuestAdditionsFacility_VirtualBox System Service=50,1502312101621
GuestAdditionsFacility_Seamless Mode=0,1502312091487
GuestAdditionsFacility_Graphics Mode=0,1502312091487
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
DEBUG virtualbox_5_1: - [1, "ssh", 2200, 22, "127.0.0.1"]
DEBUG ssh: Checking key permissions: /Users/stb/working/vagrant/ubuntu-xenial64/.vagrant/machines/default/virtualbox/private_key
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: sshfs_installed
DEBUG guest: Checking in: ubuntu
DEBUG guest: Checking in: debian
DEBUG guest: Found cap: sshfs_installed in debian
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG ssh: Exit status: 0
DEBUG guest: Searching for cap: sshfs_installed
DEBUG guest: Checking in: ubuntu
DEBUG guest: Checking in: debian
DEBUG guest: Found cap: sshfs_installed in debian
INFO guest: Execute capability: sshfs_installed [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>] (ubuntu)
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: dpkg -l sshfs (sudo=false)
DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG ssh: Exit status: 0
DEBUG ssh: Checking whether SSH is ready...
DEBUG ssh: Re-using SSH connection.
INFO ssh: SSH is ready!
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: (sudo=false)
DEBUG ssh: stderr: 41e57d38-b4f7-4e46-9c38-13873d338b86-vagrant-ssh
DEBUG ssh: Exit status: 0
...
It appears that Vagrant executes an empty command via SSH, and/or has trouble finding the right capability code for FreeBSD? My Vagrant and Ruby knowledge is too limited to really tell where the problem lies, but it seems to me it's in the FreeBSD/BSD classes.
I thought that 1.3.0 included all the newest code from master, but it seems I didn't look closely enough. With the code from master, it works:
$ vagrant plugin uninstall vagrant-sshfs
Uninstalling the 'vagrant-sshfs' plugin...
Successfully uninstalled vagrant-sshfs-1.3.0
Successfully uninstalled win32-process-0.8.3
$ vagrant plugin install pkg/vagrant-sshfs-1.3.0.gem
Installing the 'pkg/vagrant-sshfs-1.3.0.gem' plugin. This can take a few minutes...
Fetching: win32-process-0.8.3.gem (100%)
Installed the plugin 'vagrant-sshfs (1.3.0)'!
$ vagrant sshfs --mount
==> default: Mounting SSHFS shared folder...
==> default: Mounting folder via SSHFS: . => /vagrant
==> default: Checking Mount..
==> default: Folder Successfully Mounted!
Any chance you could do a 1.3.1 release anytime soon?
@stblassitude - sorry about that - yeah I'd like to do a release soon. I've failed to do that for others. I'll really try to do that this weekend.
keep pinging me on it if it doesn't happen
Ping :-)
Ping 2