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"
17 # make sure to check qemu_kill.sh if you change this
18 QEMU=qemu-system-x86_64
22 TAP="tap,script=$SCRIPT";
23 #check for the creation of new HDA
24 if [ -e "$HDA" ]; then
25 echo "Disk already existing removing it..."
30 echo "Creating hard disk for Qemu install under $HDA"
32 img=$(qemu-img create $HDA 10G)
34 echo "Can't Create disk image..."
38 echo "New $HDA is created..."
40 #Command for running the Qemu Emulator
41 ARGS="-boot d -cdrom ${NODE_ISO} -hda ${HDA} -m ${RAM} -net nic,macaddr=${MACADDR} -net $TAP -nographic -pidfile qemu.pid"
43 echo "Running qemu $ARGS"