How to put a virtualize vm into my website

Hello everyone,

I am a collage student where right now, i in final year project for my last semester. My project was quite similar to htb or tryhackme website where every vm can be run on internet browser, does not need to download the VM to pentest it.

Therefore, i am having a problems on how to virtualize the vm into the website and clueless.

I hope any one from the community can help me by giving me tips or guidance on how to solve my problems.

Sorry my english is bad.

Hope the get a reply soon.

Thank you.