GO9PRUN8 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $HARVEY/util/ufs -root=$HARVEY &
  2. pids="$!"
  3. for port in `seq 5550 5557`; do
  4. sudo qemu-system-x86_64 -cpu Opteron_G1 -smp 1 -m 1024 \
  5. -enable-kvm \
  6. --machine pc \
  7. -net nic,model=rtl8139 \
  8. -net user,hostfwd=tcp::"$port"-:1522 \
  9. -kernel harvey.32bit $* </dev/null &
  10. pids="$! $pids"
  11. done
  12. echo $pids
  13. die() {
  14. sudo kill $pids
  15. }
  16. trap die 2
  17. wait
  18. # -nographic \
  19. #-S -gdb tcp::1234 \
  20. # -nographic \
  21. #-kernel mnt/hdd/kernel $*
  22. # if you need the dump.
  23. #-net dump,file=/tmp/vm0.pcap \
  24. #sudo qemu-system-x86_64 -s -cpu phenom -smp 8 -m 4096 -nographic \
  25. #-net nic,model=rtl8139 mnt/hdd268mb.img \
  26. #-net user,hostfwd=tcp::5555-:23 \
  27. #-net dump,file=/tmp/vm0.pcap \
  28. #-kernel mnt/hdd/kernel $*
  29. #
  30. #sudo qemu-system-x86_64 -s -cpu phenom -smp 8 -m 6024 -nographic -net nic,model=rtl8139 mnt/hdd268mb.img -netdev user,id=mynet0 -kernel mnt/hdd/kernel $*
  31. #sudo qemu-system-x86_64 -s -cpu phenom -smp 8 -m 6024 -nographic -net nic,model=rtl8139 mnt/hdd268mb.img -netdev user,id=mynet0,net=192.168.76.0/24,dhcpstart=192.168.76.9 -kernel mnt/hdd/kernel $*
  32. #