From 209bfa4debc92cb31426f0cc7b2a84c733917f7b Mon Sep 17 00:00:00 2001 From: Dirk Date: Tue, 27 Nov 2012 21:57:10 +0100 Subject: Updating settings for VirtualBox ... --- src/os-plugins/plugins/qemukvm/XX_qemukvm.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/os-plugins/plugins/qemukvm/XX_qemukvm.sh') diff --git a/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh b/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh index 3f952241..da3c998e 100644 --- a/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh +++ b/src/os-plugins/plugins/qemukvm/XX_qemukvm.sh @@ -1,5 +1,5 @@ # Copyright (c) 2009..2010 - RZ Uni Freiburg -# Copyright (c) 2008..2010 - OpenSLX GmbH +# Copyright (c) 2008..2012 - OpenSLX GmbH # # This program/file is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -107,6 +107,15 @@ ALL ALL=NOPASSWD: /sbin/sysctl -q -w net.ipv4.conf.*.forwarding=? ALL ALL=NOPASSWD: /opt/openslx/rootfs/usr/bin/killall -9 udhcpd ALL ALL=NOPASSWD: /sbin/iptables -t nat -? POSTROUTING -s 192.168.1*.0/24 -o br0 -j MASQUERADE EOF + + # setting the base samba configuration + if [ -f /mnt/opt/openslx/plugins/virtualization/smb.conf -a \ + -f /mnt/usr/sbin/smbd ] ; then + testmkd /mnt/etc/qemu + sed -e "s#NWIF#tapnat0#taphost0#;s#PIDDIR#/tmp/virt#" \ + /mnt/opt/openslx/plugins/virtualization/smb.conf \ + >/mnt/etc/qemu/smb.conf + fi fi else [ $DEBUGLEVEL -gt 0 ] && echo " * Configuration of 'qemukvm' plugin failed" -- cgit v1.2.3-55-g7522