Guest User

Untitled

a guest
May 16th, 2019
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cache_type="unsafe"
  2.  
  3. for ((i = 2; i <= 7; i++)); do
  4. sudo qemu-img create -f qcow2 /mnt/tmp5/disk$i 20G
  5. done
  6. sudo chown fdmanana /mnt/tmp5/disk*
  7.  
  8. ulimit -c unlimited
  9.  
  10. qemu-system-x86_64 -m 8G \
  11. -device virtio-scsi-pci \
  12. -boot c \
  13. \
  14. -drive if=none,file=debian5.qcow2,cache=none,aio=native,cache.direct=on,format=qcow2,id=drive0,discard=on \
  15. -device scsi-hd,drive=drive0,bus=scsi.0 \
  16. \
  17. -drive if=none,file=/mnt/tmp5/disk2,cache=$cache_type,format=qcow2,id=drive1,discard=on \
  18. -device scsi-hd,drive=drive1,bus=scsi.0 \
  19. \
  20. -drive if=none,file=/mnt/tmp5/disk3,cache=$cache_type,format=qcow2,id=drive2,discard=on \
  21. -device scsi-hd,drive=drive2,bus=scsi.0 \
  22. \
  23. -drive if=none,file=/mnt/tmp5/disk4,cache=$cache_type,format=qcow2,id=drive3,discard=on \
  24. -device scsi-hd,drive=drive3,bus=scsi.0 \
  25. \
  26. -drive if=none,file=/mnt/tmp5/disk5,cache=$cache_type,format=qcow2,id=drive4,discard=on \
  27. -device scsi-hd,drive=drive4,bus=scsi.0 \
  28. \
  29. -drive if=none,file=/mnt/tmp5/disk6,cache=$cache_type,format=qcow2,id=drive5,discard=on \
  30. -device scsi-hd,drive=drive5,bus=scsi.0 \
  31. \
  32. -drive if=none,file=/mnt/tmp5/disk7,cache=$cache_type,format=qcow2,id=drive6,discard=on \
  33. -device scsi-hd,drive=drive6,bus=scsi.0 \
  34. \
  35. -drive if=none,file=disk8,cache=unsafe,aio=native,cache.direct=on,format=qcow2,id=drive7,discard=on \
  36. -device scsi-hd,drive=drive7,bus=scsi.0 \
  37. \
  38. -drive if=none,file=disk9,cache=unsafe,aio=native,cache.direct=on,format=qcow2,id=drive8,discard=on \
  39. -device scsi-hd,drive=drive8,bus=scsi.0 \
  40. \
  41. -drive if=none,file=disk10,cache=unsafe,aio=native,cache.direct=on,format=qcow2,id=drive9,discard=on \
  42. -device scsi-hd,drive=drive9,bus=scsi.0 \
  43. \
  44. -net nic,macaddr=52:54:00:12:34:fa -net tap,ifname=tap5,script=no,downscript=no \
  45. -rtc base=localtime -enable-kvm -machine accel=kvm -smp 4 -cpu host \
  46. -k pt -serial tcp:127.0.0.1:9997 -display vnc=:5
RAW Paste Data