Before creation, while being in deep meditation at the origin of universe, Virat purusha appeared to Brahma.
In spite of being son of lord Shiva, Khandakarnan was a horrible ogre who used to sacrifice animals to please Shiva and never missed any chance to humiliate Vishnu [REF].