From cfdb64bf94990a821cb539c7a2efd7a998098b68 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 1 Apr 2008 15:33:17 +0000 Subject: [PATCH] pass the MAC address varaible to the qemu run command increase the RAM size to 1G --- system/template-qemu/start-qemu-node | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/template-qemu/start-qemu-node b/system/template-qemu/start-qemu-node index 2a6c4ea..105fd88 100755 --- a/system/template-qemu/start-qemu-node +++ b/system/template-qemu/start-qemu-node @@ -13,12 +13,12 @@ fi #default Value #always use the 64 bit version of qemu, as this will work on both 32 & 64 bit host kernels -QEMU=qemu-system-x86_64 +QEMU=qemu HDA=hda_5.img -RAM=520; +RAM=1024 -SCRIPT=./qemu-ifup -TAP="tap,script=$SCRIPT"; +SCRIPT=qemu-ifup +TAP="tap,script=$SCRIPT" #Creating new HDA if needed only #using qcow2 disk image format which is essential to support VM snapshots @@ -38,7 +38,7 @@ echo "New $HDA is created..." rm -f qemu.pid #Command for running the Qemu Emulator -ARGS="-boot d -net nic -net $TAP -cdrom ${NODE_ISO} -hda ${HDA} -m ${RAM} -nographic -pidfile qemu.pid" +ARGS="-boot d -net nic,macaddr=${MACADDR} -net $TAP, -cdrom ${NODE_ISO} -hda ${HDA} -m ${RAM} -nographic -pidfile qemu.pid" echo $$ > shell.pid echo "Running $QEMU $ARGS < /dev/null" exec $QEMU $ARGS < /dev/null -- 2.47.0