Firstly I give an introduction of lives living inside a machine. Then I give the definitions of awakening and dreaming in a virtual reality. Secondly, I show 3 examples of situations : eating steaks, playing games, approaching to death, and show that some of them require awakening, while some of them forbid awakening. Thirdly, two important cases of computer program bugs are proposed : halting problem, infinite loop. I discuss the ability of detecting them, and make the corresponding awakening choices. Lastly I list points of how to prevent the bugs before running virtual reality.