Vagrant: Probleme mit der Verbindung zum Server nach dem Vagabunden-Up

Erstellt am 28. Okt. 2017  ·  3Kommentare  ·  Quelle: hashicorp/vagrant

Vagabundenversion 2.0.0

Host-Betriebssystem Windows 10

Gastbetriebssystem ubuntu/trusty64

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  # Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "ubuntu/trusty64"

  config.vm.provider "virtualbox" do |v|
      v.name = "local_vm_100500"
      v.memory = 2048
  end

  # Create a private network, which allows host-only access to the machine using a specific IP.
  config.vm.network "private_network", ip: "192.168.128.56"

  # Share an additional folder to the guest VM. The first argument is the path on the host to the actual folder.
  # The second argument is the path on the guest to mount the folder.
  config.vm.synced_folder ".", "/var/www/project", owner: "vagrant", group: "vagrant"

end

Debug-Ausgabe

$ vagrant ssh -- -v
OpenSSH_7.5p1, OpenSSL 1.0.2k  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 2222.
debug1: Connection established.
Could not create directory '/home/admin/.ssh'.
debug1: key_load_public: No such file or directory
debug1: identity file C:/Users/admin/.vagrant.d/insecure_private_key type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:/Users/admin/.vagrant.d/insecure_private_key-cert type -
1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.5
ssh_exchange_identification: read: Connection reset by peer

Erwartetes Verhalten

Es sollte über ssh mit der virtuellen Maschine verbunden sein

Tatsächliches Verhalten

in Debug

hoswindows waiting-reply

Alle 3 Kommentare

Könnten Sie einen Link zu einer Zusammenfassung der Debug-Ausgabe bereitstellen, wenn Sie gerade vagrant ssh --debug ausführen? Dankeschön!

Hallo, ich habe dieses Problem global gelöst. Ich habe Ubuntu installiert und jetzt funktioniert alles einwandfrei. Ich weiß nicht warum, nach dem letzten Update in Windows hat nichts mehr geklappt. In meinem Fall habe ich das Problem durch die Neuinstallation des Betriebssystems gelöst. =D

Ich werde dieses Problem sperren, da es seit _30 Tagen_ geschlossen ist ⏳. Dies hilft unseren Betreuern, die aktiven Probleme zu finden und sich darauf zu konzentrieren.

Wenn Sie ein ähnliches Problem gefunden haben, öffnen Sie bitte ein neues Problem und füllen Sie die Problemvorlage aus, damit wir alle Details erfassen können, die für die weitere Untersuchung erforderlich sind.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen