title: detect if application running on virtual box
body: <p>I went thrrough <a href="https://stackoverflow.com/questions/498371/how-to-detect-if-my-application-is-running-in-a-virtual-machine">some</a> <a href="https://stackoverflow.com/questions/154163/detect-virtualized-os-from-an-application">links</a> in stackoverflow. But code given here doesnt work for virtual box. I have also tried <a href="http://www.invisiblethings.org/papers/redpill.html" rel="nofollow noreferrer">redpill</a> but thats not working too. my application will run on both linux and windows(preferably).<br>
  Please let me know if anyone has any solution.</p>
  
  <p>Edit: Preet Sangha's link not working as well</p>