A Virginia prisoner managed to escape from a hospital early Tuesday after grabbing a security guard's gun and running off in a hospital gown, authorities said.