diff options
| author | Dirk | 2013-12-13 20:52:00 +0100 |
|---|---|---|
| committer | Dirk | 2013-12-13 20:52:00 +0100 |
| commit | efd86cc8b5b138e4076bf1657ea888dc52e62901 (patch) | |
| tree | dde241d9c0041f10584415e97c6b6f326e03cd3f /remote/modules/qemukvm/data/opt/openslx/scripts | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-efd86cc8b5b138e4076bf1657ea888dc52e62901.tar.gz tm-scripts-efd86cc8b5b138e4076bf1657ea888dc52e62901.tar.xz tm-scripts-efd86cc8b5b138e4076bf1657ea888dc52e62901.zip | |
Heavily reworked the networking for the various virtual machines:
There will be three types of network interfaces for virtual machines available
all will be configured for every type of virtualization tool
a) br0 is the direct host bridge into the local LAN (br0 already exists)
vmnet0 for VMware
vboxnet0 for VirtualBox
kvmnet0* for Qemu/KVM
b) nat1 is an internal bridge which "NATes" into the local LAN (with DHCP)
vmnet1 for VMware
vboxnet1 for VirtualBox
kvmnet1* for Qemu/KVM
c) vsw2 is an internal host bridge to connect software defined LANs to
vmnet2 for VMware
vboxnet2 for VirtualBox
kvmnet2* for Qemu/KVM
Diffstat (limited to 'remote/modules/qemukvm/data/opt/openslx/scripts')
| -rw-r--r-- | remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env b/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env new file mode 100644 index 00000000..3173ca45 --- /dev/null +++ b/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env @@ -0,0 +1,27 @@ +#!/bin/ash +# ----------------------------------------------------------------------------- +# Copyright (c) 2013 - OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# ----------------------------------------------------------------------------- +# systemd-qemukvm_env +# - This is the preparation script for the configuration of Linux Qemu/KVM. +################################################################################ + +# check for Linux kvm modules (if required at all) +# lsmod |grep kvm || slxlog "qemukvm-modules" "Cannot find any kvm kernel module(s)" + +cat >> /etc/sudoers << EOF +# allow to start and stop kvm services / load-/unload kvm modules +ALL ALL=NOPASSWD: /opt/openslx/sbin/tunctl -t kvmnet* +ALL ALL=NOPASSWD: /opt/openslx/sbin/tunctl -d kvmnet* +ALL ALL=NOPASSWD: /opt/openslx/usr/sbin/brctl addif br0 kvmnet* +ALL ALL=NOPASSWD: /opt/openslx/bin/ip link set dev kvmnet* * +EOF + |
