2015-07-23 23 views
5

Windows 7'de "vagrant up" komutuna sahip Windows 7 ile birlikte vagrant kutusuna başlıyorum. Vagrantfile aitVagrant windows kutusu için "config.ssh.shell" değerini düzeltin mi?

İçindekiler:

vagrant up 

Bringing machine 'default' up with 'virtualbox' provider... 
==> 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: 88 => 3088 (adapter 1) 
==> default: Booting VM... 
==> default: Waiting for machine to boot. This may take a few minutes... 
    default: SSH address: 127.0.0.1:3088 
    default: SSH username: vagrant 
    default: SSH auth method: password 
    default: Warning: Connection timeout. Retrying... 
The configured shell (config.ssh.shell) is invalid and unable 
to properly execute commands. The most common cause for this is 
using a shell that is unavailable on the system. Please verify 
you're using the full path to the shell and that the shell is 
executable by the SSH user. 

Uyarı: Ben yürüterek serseri kutuya bağlanabiliyor değilim "Sonunda bir hata ile liste aşağıdaki almak Sonuç olarak

Vagrant.configure(2) do |config| 
    config.vm.box = "win7_base_test" 
    config.vm.network "forwarded_port", guest: 88, host: 3088 
    config.ssh.username = "vagrant" 
    config.ssh.password = "vagrant" 
    config.ssh.port = "3088" 
    config.ssh.host = "127.0.0.1" 
    config.ssh.shell = "cmd" 
end 

Bu arada vagrant ssh "ve orada kabuk komutları yayınlayın.

Bu nedenle bir sorum var: "config.ssh.shell" parametresi için doğru değeri ("cmd") kullanmalı mıyım? Orada hangi değerler var?

Teşekkürler!

+0

Lütfen sorunuzu [su] 'ya taşıyabilirsiniz. Bu [konu dışı] (http://stackoverflow.com/help/on-topic) burada. –

cevap

0

Vagrant docs göre, config.ssh.shell sadece Vagrant içinde kullanılır ne kabuk etkiler, kabuk olarak kullanılır değil ne vagrant ssh gerçekleştirdiğinizde. Varsayılan olarak, bash kullanır ve bunu değiştirmek için özel bir gereksiniminiz olmadıkça, hesaba kattığım gibi bırakın.

1

Bir seçenek SSH yerine WinRM kullanmaktır: config.vm.communicator değerini "winrm" olarak ayarlayın.

İlgili konular