#!/bin/bash
+# Thierry Parmentelat <thierry.parmentelat@inria.fr>
+# Copyright (C) 2010 INRIA
+#
# Establishment of a runtime environment for a
# virtual machine under QEMU, This script allows the host box
# to share its network connection with qemu-based guests
hostname
uname -a
ifconfig
+ netstat -rn
echo "========== $COMMAND: entering start - end"
# take extra arg for ifname, if provided
echo "Starting udev ..."
/sbin/udevd restart
if modprobe kqemu &> /dev/null ; then
- echo "kqemu loadded"
+ echo "(bridge-init) kqemu loaded"
else
- echo "WARNING : Could not modprobe kqemu"
+ echo "(bridge-init) WARNING : Could not modprobe kqemu"
fi
#Loading the tun/tap model
if modprobe tun ; then
echo "========== $COMMAND: exiting start - beg"
ifconfig
+ netstat -rn
echo "========== $COMMAND: exiting start - end"
}
echo "========== $COMMAND: entering add - beg"
ifconfig
+ netstat -rn
echo "========== $COMMAND: entering add - end"
echo "Activating link for $INTERFACE_LAN..."
echo "========== $COMMAND: exiting add - beg"
ifconfig
+ netstat -rn
echo "Installed iptables"
iptables-save