'mac' : '00:0b:cd:62:50:95',
},
},
+ {'node_fields': {'hostname': 'pluton.inria.fr',
+ 'model':'qemu/minhw', } ,
+ 'host_box': 'test.one-lab.org',
+ 'owner' : 'pi',
+ 'network_fields': { 'method':'static',
+ 'type':'ipv4',
+ 'ip':'138.96.250.151',
+ 'gateway':'138.96.248.250',
+ 'network':'138.96.0.0',
+ 'broadcast':'138.96.255.255',
+ 'netmask':'255.255.0.0',
+ 'dns1': '138.96.0.10',
+ 'dns2': '138.96.0.11',
+ 'mac' : '00:08:02:33:4d:9e',
+ },
+ },
]
return nodes
# Fonction de mise en place du pont
start () {
-
+ #if we have already configured the same host_box no need to do it again
+ set $(/sbin/ifconfig | grep $INTERFACE_BRIDGE) >/dev/null
+ if [ -n "$1" ]; then
+ echo "Interface bridge $INTERFACE_BRIDGE already exist."
+ exit 0
+ fi
if [ -n "$1" ]; then
INTERFACE_LAN=$1
shift
#Restarting the udev
echo "Starting the udev ..."
/sbin/udevd restart
+ echo "Starting the kqemu patch module ..."
+ modprobe kqemu
#Loding the tun/tap model
echo "Loading the kqemu patch module ..."
modprobe kqemu
echo "New $HDA is created..."
#Command for running the Qemu Emulator
-ARGS="-boot d -cdrom ${CDROM_IMG} -hda ${HDA} -m ${RAM} -net nic,macaddr=${MACADDR} -net $TAP -no-kqemu";
+ARGS="-boot d -cdrom ${CDROM_IMG} -hda ${HDA} -m ${RAM} -net nic,macaddr=${MACADDR} -net $TAP ";
echo "Executing qemu $ARGS";
qemu $ARGS