3 # cd in this command's directory
6 #Getting the env. as passed by the test framework - mostly MACADDR and NODE_ISO
8 if [ ! -e ${CONFIG} ];then
9 echo "File for MAC Address not found"
20 TAP="tap,script=$SCRIPT";
21 #check for the creation of new HDA
22 if [ -e "$HDA" ]; then
23 echo "Disk already existing removing it..."
28 echo "Creating hard disk for Qemu install under $HDA"
30 img=$(qemu-img create $HDA 10G)
32 echo "Can't Create disk image..."
36 echo "New $HDA is created..."
38 #Command for running the Qemu Emulator
39 ARGS="-boot d -cdrom ${NODE_ISO} -hda ${HDA} -m ${RAM} -net nic,macaddr=${MACADDR} -net $TAP -nographic "
40 echo "Running qemu $ARGS";
41 qemu-system-x86_64 $ARGS