2016-04-03 12 views
0

Ich benutze Ubuntu 15.10 64bit auf einem Core i3. Ich habe Vagrant 1.8.1 und VirtualBox installiert.Kann nicht Ubuntu/Trustey32 läuft in Vagrant

Ich habe folgendes:

$ vagrant box add ubuntu/trusty32 
$ vagrant init ubuntu/trusty32 
$ vagrant up 

Nachdem ich vagrant up ich die unten Fehler. Wenn ich VirtualBox öffne, kann ich sehen, dass das System hochgefahren ist und auf Benutzernamen und Passwort wartet.

Hinweis: Ich habe keine Probleme, die hashicorp/precise32 in Vagrant zu bekommen. Ich habe nur Probleme mit ubuntu/trusty32.

~/vagrant$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'ubuntu/trusty32'... 
==> default: Matching MAC address for NAT networking... 
==> default: Checking if box 'ubuntu/trusty32' is up to date... 
==> default: Setting the name of the VM: vagrant_default_1459678892518_13508 
==> default: Clearing any previously set forwarded ports... 
==> 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: 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 
Timed out while waiting for the machine to boot. This means that 
Vagrant was unable to communicate with the guest machine within 
the configured ("config.vm.boot_timeout" value) time period. 

If you look above, you should be able to see the error(s) that 
Vagrant had when attempting to connect to the machine. These errors 
are usually good hints as to what may be wrong. 

If you're using a custom box, make sure that networking is properly 
working and you're able to connect to the machine. It is a common 
problem that networking isn't setup properly in these boxes. 
Verify that authentication configurations are also setup properly, 
as well. 

If the box appears to be booting properly, you may want to increase 
the timeout ("config.vm.boot_timeout") value. 

Ich habe wieder $ vagrant up und das ist, was ich habe

~/vagrant$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Checking if box 'ubuntu/trusty32' is up to date... 
==> default: VirtualBox VM is already running. 

Ich habe auch versucht $ vagrant ssh und ich habe folgendes.

~/vagrant$ vagrant ssh 
ssh_exchange_identification: read: Connection reset by peer 

Das ist mein Vagrantfile

Könnte jemand lassen Sie mich wissen, was das Problem ist?

+0

Bitte poste deine 'Vagrantfile' - hast du sie nach dem' $ vagrant init ubuntu/trusty32' verändert? –

+0

Nein. Ich habe daran nichts geändert. Die Vagrant-Datei wurde mit dem init-Befehl erzeugt. – robomon

Antwort

1

können Sie

versuchen
$ vagrant reload 

oder

$ vagrant halt && vagrant up 

Und sehen, ob Sie mehr Glück haben.

Ich habe gerade Ihre genaue Reihe von Schritten versucht und es hat für mich funktioniert. Das Standard-Zeitlimit für die Box beträgt 300 Sekunden (5 Minuten). Es ist also etwas Seltsames passiert. Sie können versuchen, es durch die VirtualBox-Schnittstelle booten, wenn die oben genannten Befehle nicht funktionieren, oder Ihre Vagrantfile durch Änderung der GUI angezeigt werden, haben wie folgt ...

ändern diese:

# config.vm.provider "virtualbox" do |vb| 
# # Display the VirtualBox GUI when booting the machine 
# vb.gui = true 
# 
# # Customize the amount of memory on the VM:  
# vb.memory = "1024" 
# end 

Um dies zu :

config.vm.provider "virtualbox" do |vb| 
    # Display the VirtualBox GUI when booting the machine 
    vb.gui = true 

# # Customize the amount of memory on the VM:  
# vb.memory = "1024" 
end 

Und versuchen Sie erneut $ vagrant up. Das neue Fenster/GUI, das angezeigt wird, kann zusätzliche Informationen enthalten.

Wenn alle oben genannten ausfällt, Sie sich wieder in Ihrem vagrant Verzeichnis

$ vagrant up --debug > vagrant_up.log 2>&1 && vagrant halt 

, die den Inhalt in die Datei vagrant_up.log die Maschine mit einem Debug-Flag und Ausgang bootet vor Abschalten der Maschine ausprobieren können. Sie können dann das resultierende Protokoll hier veröffentlichen.

EDIT

Nach mehr zur Fehlerbehebung durch die Kommentare dieser Antwort wurde dieses Bild gepostet:

vb.gui

Welche Virtualbox/vagrant gibt an, für einen Netzwerkadapter wartet das Boot weiter Sequenz.

Sie können dies beheben, indem Sie Ihre Vagrantfile noch einmal ändern, um eine Netzwerkschnittstelle zu aktivieren.

Hinzufügen einer Zeile wie die unten an der config Abschnitt Ihrer Vagrantfile sollte die Maschine zu booten lassen:

config.vm.network "private_network", ip: 192.168.30.10 
+0

Danke für deine Antwort. Aber es ist mir nicht gelungen. Bitte lassen Sie mich wissen, wenn oyu kann das Problem aus dem Protokoll finden http://pastebin.com/KrHbNXg5 – robomon

+0

@robomon was passiert, wenn Sie es über die GUI starten? –

+0

Ich bekomme das http://pastebin.com/qvefc1ag Einige Edelstein/Ruby-Fehler. Ich bin mir nicht sicher – robomon

0

Ich war auch vor dem gleichen Problem. Ich habe versucht, das BIOS zu ändern, um Virtualisierung zu ermöglichen, und es funktioniert für mich.

Verwandte Themen