vagrant-lxc-ng/lib/vagrant-lxc
Brandon Rhodes 43aa9bfb3e Avoid Timed out error when umask is 027 or 077
If LXC commands are run with a restrictive umask like 027 or 077, then
the root directory of new containers will lack read `r` and access `x`
permission for non-root users.  The first failure to result from this
during `vagrant up` is that the SSH daemon cannot read the crucial file
`/home/vagrant/.ssh/authorized_keys` after it drops privileges to the
level of the `vagrant` user.  The result is the familiar:

```
    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.
```

So we should make sure that we run all LXC commands with a umask that at
least does not prevent group and world `r` and `x` bits from being set
in newly created files and directories.
2017-01-29 13:53:09 -05:00
..
action tries amount of fetching ip is now configurable 2016-11-09 14:38:05 +00:00
command vagrant-lxc-wrapper: Use correct ruby interpreter 2015-03-19 16:22:00 -07:00
driver Fix handling of non-fatal lxc-stop return code 2016-05-11 16:50:29 -07:00
provider/cap core: Introduce a public_address capability so that we can use vagrant share 2014-03-13 00:57:36 -03:00
action.rb remove /tmp cleanup, fixes lvm rootfs 2015-08-28 14:58:16 +02:00
config.rb default values goes to finalize 2016-11-11 08:34:42 +00:00
driver.rb Fix warning message 2015-08-28 15:00:37 +02:00
errors.rb Fix handling of non-fatal lxc-stop return code 2016-05-11 16:50:29 -07:00
plugin.rb Make code similar to other providers 2016-10-20 13:39:33 +03:00
provider.rb Use /usr/bin/env CMD instead of hardcoded paths 2015-08-28 14:58:16 +02:00
sudo_wrapper.rb Avoid Timed out error when umask is 027 or 077 2017-01-29 13:53:09 -05:00
synced_folder.rb synced_folder: Emit vagrant-mounted upstart event when starting containers 2014-09-22 23:44:01 -03:00
version.rb v1.2.3 2016-12-20 20:20:38 -08:00