Guest User

start.sh

a guest
Dec 13th, 2020
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2. # need to be run as root
  3.  
  4. set -e
  5.  
  6. # Deny non-root run
  7. if [ "$EUID" -ne 0 ]
  8.   then echo "ERROR: Please run as root"
  9.   exit
  10. fi
  11.  
  12. SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
  13.  
  14. # Prepare environment for qemu
  15. ${SCRIPT_PATH}/prepare.sh
  16.  
  17. # Run qemu
  18. sudo -u alex numactl --membind 0 ${SCRIPT_PATH}/qemu.sh $@ &
  19. sleep 5
  20.  
  21. # Pin qemu threads to cpus
  22. ${SCRIPT_PATH}/pin-cpu-cores.py
  23.  
  24. wait
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×