7 CDROM_IMG=${NODE_DIR}/boot_file.iso
8 HDA=$NODE_DIR/hda_5.raw;
10 #Getting the MAC address
11 if [ ! -e "$NODE_DIR/MAC" ];then
12 echo "File for MAC Address not found"
15 set $(cat $NODE_DIR/MAC)
21 TAP="tap,script=${NODE_DIR}/qemu-ifup.sh";
23 #check for the creation of new HDA
24 if [ -e "$HDA" ]; then
25 echo "Disk already existing removing it..."
28 qemu-img create $HDA 5G
29 echo "New $HDA is created..."
31 #Command for running the Qemu Emulator
32 ARGS="-boot d -cdrom ${CDROM_IMG} -hda ${HDA} -m ${RAM} -net nic,macaddr=${MACADDR} -net $TAP ";
33 echo "Executing qemu $ARGS";