VM installation using Foreman running on Virtual Machine (KVM)


I am a new user to Foreman and Puppet and currently I am configuring it. I
want to do KVM based VM installation via Foreman using Libvirt. I wanted to
know whether it's possible to Run the foreman server in a VM and do these
things. If yes, how?

Thanks in advance.