Windows Server 2012 R2 is no longer officially supported by Microsoft.
If you have a valid Windows Server 2012 R2 license then you can make an installation media.
1] Create a bootable USB drive with the Windows Server 2012 R2 ISO. You may try Rufus for this.
2] Once done, boot from the bootable installation media.
3] Follow on-screen instructions.