J'essaye d'installer Vagrant et Hyper-V et c'est presque terminé, mais le partage de dossier échoue car je refuse d'utiliser SMB et je préfère utiliser vagrant-sshfs . Il est de notoriété publique que, dans Windows, le système nécessite sftp-server
généralement l’utilisation d’OpenSSH et c’est pour cette raison que j’ai suivi ces instructions pour installer OpenSSH sous Windows 10.
Voici à quoi Vagrantfile
ressemble mon look:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network :forwarded_port, host: 8080, guest: 80
config.vm.network "private_network", ip: "192.168.50.4"
config.vm.synced_folder "../../applications", "/var/www", type: "sshfs", , sshfs_opts_append: "-o cache=no"
config.vm.provider :hyperv do |vb|
vb.memory = "2048"
vb.vmname = "centos7"
end
end
Lorsque j'ai exécuté la commande, vagrant up
j'ai obtenu ce qui suit:
λ vagrant up
Bringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Verifying Hyper-V is accessible...
default: Configuring the VM...
==> default: Starting the machine...
==> default: Waiting for the machine to report its IP address...
default: Timeout: 120 seconds
default: IP: 192.168.0.103
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.0.103:22
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Mounting SSHFS shared folder...
==> default: Mounting folder via SSHFS: E:/Development/applications => /var/www/html
==> 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 '192.168.0.103' (ECDSA) to the list of known hosts.
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
SFTP command:
Est-ce que tout peut m'aider à configurer ceci correctement? Pourquoi je manque ici?