There is a ready-made VM and video tutorial posts ago
in the VM you put at least 9gb of ram and 6cores and when entering, go to each configuration file and replace REPLACE with 192.168.XXX.XXX (the IP that appears when you type ip addr in the terminal, inet as I remember), just use CTRL + H and put REPLACE on top, 192.168.XXX.XXX below
to configure through the text file, type "sudo nautilus", that's basically it, just put host=127.0.0.1 in dbgate (near the end, just this one you need for 127.0.0.1) instead of the IP and start the dockers commands with sudo su
docker container start ffe52fed945e
docker container start 6e0bc5167b25
then, go inside genshin/src where there is cli, open it and then put # before cd, chmod and nohup like in the example:
normal:
cd ../muipserver
chmod +x muipserver
nohup ./muipserver -i 9001.6.1.1 &
removed:
#cd ../oaserver
#chmod +x oaserver
#nohup ./oaserver -i 9001.9.1.1 &
you must remove from: oaserver, pathfinder, multiserver and tothemoon (but if you have the possibility to allocate +22GB of RAM, you don't need to do that, only if you want to, you will still have the game fully functional, with temples and quests working perfectly even without them)
after all that, just type "sudo bash cli start" and you will have your working Genshin, just wait 5+ minutes to load, you can check if everything is ok using "sudo bash cli status"
you can also try to follow the video tutorial in previous posts as well