[Fusionforge-commits] FusionForge branch master updated. 8f541e33892e299511886a6be60ede741f4dfa13
Sylvain Beucler
beuc-inria at fusionforge.org
Mon Mar 10 19:03:23 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 8f541e33892e299511886a6be60ede741f4dfa13 (commit)
from 020c014ace97e296dd4a218d577235068a41cfb5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8f541e33892e299511886a6be60ede741f4dfa13
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date: Mon Mar 10 19:03:16 2014 +0100
VM: fix VirtualBox slow DNS
diff --git a/vm/packer/README b/vm/packer/README
index 6a3be13..d03c59b 100644
--- a/vm/packer/README
+++ b/vm/packer/README
@@ -29,3 +29,5 @@ Inspiration:
- https://github.com/jedi4ever/veewee/tree/master/templates/Debian-7.3.0-amd64-netboot
- https://github.com/ffuenf/vagrant-boxes/tree/master/packer/debian-7.3.0-amd64
- https://github.com/puppetlabs/puppet-vagrant-boxes/tree/master/definitions/debian-70rc1-x64-vf503
+- https://github.com/blalor/vm-image-configs
+- http://opscode.github.io/bento/
diff --git a/vm/packer/scripts/virtualbox-centos.sh b/vm/packer/scripts/virtualbox-centos.sh
index 11cc6ba..faaa43e 100644
--- a/vm/packer/scripts/virtualbox-centos.sh
+++ b/vm/packer/scripts/virtualbox-centos.sh
@@ -1,4 +1,8 @@
if test -f .vbox_version ; then
+ # Fix slow DNS
+ echo 'RES_OPTIONS="single-request-reopen"' >> /etc/sysconfig/network
+ service network restart
+
# Installing the virtualbox guest additions
VBOX_VERSION=$(cat .vbox_version)
diff --git a/vm/packer/scripts/virtualbox-debian.sh b/vm/packer/scripts/virtualbox-debian.sh
index 0f528a8..b0d83d8 100755
--- a/vm/packer/scripts/virtualbox-debian.sh
+++ b/vm/packer/scripts/virtualbox-debian.sh
@@ -1,4 +1,12 @@
if test -f .vbox_version ; then
+ # Fix slow DNS
+ cat <<'EOF' > /etc/dhcp/dhclient-exit-hooks.d/virtualbox-fix-slow-dns
+#!/bin/bash
+echo 'options single-request-reopen' >> /etc/resolv.conf
+EOF
+ chmod 755 /etc/dhcp/dhclient-exit-hooks.d/virtualbox-fix-slow-dns
+ /etc/dhcp/dhclient-exit-hooks.d/virtualbox-fix-slow-dns
+
# Use version from Debian
apt-get -y install --no-install-recommends linux-headers-amd64 virtualbox-guest-dkms
-----------------------------------------------------------------------
Summary of changes:
vm/packer/README | 2 ++
vm/packer/scripts/virtualbox-centos.sh | 4 ++++
vm/packer/scripts/virtualbox-debian.sh | 8 ++++++++
3 files changed, 14 insertions(+)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list