Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

trusty & puppet: Warning: Connection refused. Retrying... #27

Closed
onionjake opened this issue Dec 30, 2014 · 2 comments
Closed

trusty & puppet: Warning: Connection refused. Retrying... #27

onionjake opened this issue Dec 30, 2014 · 2 comments

Comments

@onionjake
Copy link

$ PUPPET=1 make trusty
$ cd some_other_dir
$ cat Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "trusty64"
  config.vm.provider :lxc do |lxc|
    lxc.customize 'aa_allow_incomplete','1'
  end
end
$ vagrant add box --name trusty64 ~/vagrant-lxc-base-boxes/output/2014-12-30/vagrant-lxc-trusty-amd64.box
$ vagrant up --provider=lxc
Bringing machine 'default' up with 'lxc' provider...
==> default: Importing base box 'trusty64'...
==> default: Setting up mount entries for shared folders...
    default: /vagrant => /home/jake/repos/c4puppet
Warning! The LXC provider doesn't support the :owner parameter for synced
folders. It will be silently ignored.
    default: /tmp/vagrant-puppet-2/manifests => /home/jake/repos/c4puppet/manifests
Warning! The LXC provider doesn't support the :owner parameter for synced
folders. It will be silently ignored.
    default: /tmp/vagrant-puppet-2/modules-0 => /home/jake/repos/c4puppet/modules
==> default: Starting container...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 10.0.3.178:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection refused. Retrying...
    default: Warning: Connection refused. Retrying...
    default: Warning: Connection refused. Retrying...

It appears that openssh-server is not installed. Installing it seems to resolve the issue:

$ sudo lxc-attach -n $(cat .vagrant/machines/default/lxc/id)
root@vagrant-base-trusty-amd64:/# apt-get install openssh-server
 ... installing ...
root@vagrant-base-trusty-amd64:/# exit
exit
$ vagrant ssh
vagrant@vagrant-base-trusty-amd64:~$
@nvtkaszpir
Copy link

Resolved in this pull request: #37

@fgrehm
Copy link
Owner

fgrehm commented Dec 6, 2015

The PR mentioned above has been merged! 🚀

@fgrehm fgrehm closed this as completed Dec 6, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants