vagrantをインストールをした後に
vagrant upを行うと、、
Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'puppetlabs/centos-7.0-64-puppet' is up to date... ==> 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: Adapter 2: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> 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 default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... 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.
だったので、sshの認証になにか問題があるのではないかと思って、いろいろ調べると、
参考で見たページ↓
http://qiita.com/Esfahan/items/e5f707dc6d116c2cc751
とのことで、公開鍵を作成し、実際にsshでパスワードでつないでみようよすると
vagrant@127.0.0.1's password: vagrant@127.0.0.1's password: vagrant@127.0.0.1's password: Permission denied (publickey,password).
パスワードvagrantで何度やっても無理でした。。。
パスワードの設定ってどこから見ることができますか?
それとも全然関係ないとこでの問題でしょうか?
わかる方、相談乗ってくれる方がいれば教えてください、、、。6hはまっていて、答えがわかりません。
よろしくお願いします。
ちなみに、vagrant ssh-config は
Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile xxxx/workspace/Vagrant-CentOS7/.vagrant/machines/default/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL
になっています。
またVagrantfileは
Vagrant.configure("2") do |config| config.vm.box = "puppetlabs/centos-7.0-64-puppet" config.vm.hostname = "centos7.local" config.vm.network :private_network, ip: "192.168.56.37" config.vm.box_version = " 1.0.1 " config.vm.provider :virtualbox do |vb| vb.name = "centos7" vb.customize ["modifyvm", :id, "--memory", "768"] end config.vm.provision :puppet, :options => '--modulepath="/vagrant/puppet/modules":"/vagrant/puppet/roles"' do |puppet| puppet.manifests_path = "puppet/manifests" puppet.manifest_file = "app.pp" end end
です。
回答5件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。