There could be a lot of reasons why this works in a virtual environment and not in a real one, you could check if the real OS is more up to date than the virtual one.
Also take a look in the video section at the Metasploit videos and read the Metasploit Unleashed course.


