Kernel creates and manages virtual memory using the space on the hard disk called as swap space. Kernel swaps the contents of virtual memory locations back and forth to the physical memory, this makes the system think that there is more memory.
Kernel swaps the memory page which has not yet been accessed and whenever the system calls for the requirement of the memory space, the kernel makes space available in the physical memory and swaps it back.