From e598086913033e901e0f9147ab950d1c5bccef2c Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 9 Mar 2014 17:25:08 -0300 Subject: [PATCH] boxes: Backport GH-92 --- boxes/common/download.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boxes/common/download.sh b/boxes/common/download.sh index b617a13..2ae9b99 100755 --- a/boxes/common/download.sh +++ b/boxes/common/download.sh @@ -33,3 +33,11 @@ lxc-create -n ${CONTAINER} -t download -- \ # TODO: Nicely handle boxes that don't have an image associated log "Container created!" + + +# Fixes some networking issues +# See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info +if ! $(grep -q 'ip6-allhosts' ${ROOTFS}/etc/hosts); then + log "Adding ipv6 allhosts entry to container's /etc/hosts" + echo 'ff02::3 ip6-allhosts' >> ${ROOTFS}/etc/hosts +fi