質問: vagrant sshがvirtualboxで失敗する ssh部分に到達するとvagrant upが失敗します。myterminal$ vagrant up [default] vm already created. booting if its not already running... [default] running any vm customizations... [default] clearing any previously set forwarded ports... [default] forwarding ports... [default] -- ssh: 22 => 2222 (adapter 1) [default] -- db2: 30003 => 30003 (adapter 1) [default] cleaning previously set shared folders... [default] creating shared folders metadata... [default] booting vm... [default] waiting for vm to boot. this can take a few minutes. [default] failed to connect to vm! failed to connect to vm via ssh. please verify the vm successfully booted by looking at the virtualbox gui. その後、vagrant sshまたはvagrant reloadなどを使用して接続しようとすると、次のようになります。myterminal$ vagrant reload [default] attempting graceful shutdown of linux... ssh connection was refused! this usually happens if the vm failed to boot properly. some steps to try to fix this: first, try reloading your vm with `vagrant reload`, since a simple restart sometimes fixes things. if that doesn't work, destroy your vm and recreate it with a `vagrant destroy` followed by a `vagrant up`. if that doesn't work, contact a vagrant maintainer (support channels listed on the website) for more assistance. 助けてください!私は本当に困惑しています。敬具、ルーク
回答: 私は次のようにvagrantfileの一部のコメントを外しました: config.vm.provider :virtualbox do |vb| # don't boot with headless mode vb.gui = true # use vboxmanage to customize the vm. for example to change memory: # vb.customize ["modifyvm", :id, "--memory", "1024"] end それを保存してからvagrant reload そして、物事はうまくいきました。なぜそれがそれを直したのかはわかりません。