Hamsters are lively and clean, and most are happy to live alone. They can take time to become tame, and, because they are nocturnal, they need to have peace and quiet during the day.
If a hamster appears in your dream is it running endlessly on its wheel in frustration? If this is the case, do you feel as if your life or a particular relationship is going nowhere? If, however, the hamster seems content, the dream could depict aspects of your life that give you small comforts. As hamsters tend to enjoy solitude, could your dreaming mind be urging you to rely more on your own resources. Gerbils and guinea pigs, on the other hand, need companionship, so in dreams they could be highlighting your need for more friends in real life.
[1]