Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshfs: command not found #110

Closed
oxr463 opened this issue May 9, 2020 · 6 comments
Closed

sshfs: command not found #110

oxr463 opened this issue May 9, 2020 · 6 comments

Comments

@oxr463
Copy link

oxr463 commented May 9, 2020

Here is are the Vagrantfile contents:

Vagrant.configure("2") do |config|
  config.vm.box = "generic/gentoo"
  config.vm.synced_folder ".", "/tmp", type: "sshfs", reverse: false
end

Here is the actual output:

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'generic/gentoo'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'generic/gentoo' version '3.0.0' is up to date...
==> default: Setting the name of the VM: quickstart_default_1589045623687_57353
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting SSHFS shared folder...
==> default: Mounting folder via SSHFS: /home/user/tmp => /tmp
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
==> default: Checking Mount..
Mounting SSHFS shared folder via slave SSHFS mount failed. Please
look at the below STDERR output from the processes that were run.

SSH command:

Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
sudo: sshfs: command not found


SFTP command:

See also: #62

@oxr463
Copy link
Author

oxr463 commented May 9, 2020

Possible workaround,

sudo emerge -q net-fs/sshfs

@localhost8080
Copy link

Found an actual workaround (or two)
The actual fix is this: #111 and it shows the reason:

Vagrant 2.8.8 introduced explicit handling of CentOS as a guest in the commit hashicorp/vagrant@5104d07

This means that on boot in vagrant >= 2.2.8 , centos is not detected (which means that the epel repo is not installed, which means that fuse-sshfs is not installed)

Workaround is to use the code in the pull request (or if thats out of reach, downgrade vagrant to 2.2.7)

Hopefully the referenced pull request gets merged in soon so we can use the centos7/8, vagrant >= 2.2.8 combo.

@oxr463
Copy link
Author

oxr463 commented May 28, 2020

@localhost8080 this is for Gentoo though.

@localhost8080
Copy link

@oxr463 sorry, I totally missed that;

I had a 'me too' on the sshfs not found on centos

@bngsudheer
Copy link

On CentOS 8, I had to run dnf --enablerepo=PowerTools install fuse-sshfs

@dustymabe
Copy link
Owner

This should be fixed in #111. There is a new release out. Please try it and let us know how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants