joymic5556 :
Also is the Ryzen 3 2200g good for VR ? (Also I know that I need to change the motherboard)
The 2200G could do in a pinch but it's not the greatest option. The main thing it has going for it is the integrated graphics which aren't fast enough for VR anyway. If you want an AMD CPU something like the R5 1500x has more threads which can help, though springing for the R5 1600 or 2600 would be ideal. On the Intel side, the i3 8100 could get the job done, being a faster gaming CPU than any of the 4 core 4 thread Ryzen chips eg. R3 2200G, R3 1200/1300, though ideally you might want to move up to 6 cores and look at the i5 8400 if budget allows.
Another thing, you don't really need to spend money on a Z370 board if you go Intel. Only K SKU chips can be overclocked and the only other benefits Z370 offers you are SLI support (useless for most applications as few things support it these days, VR doesn't support it) and being able to take advantage of high speed RAM (something that isn't nearly as impactful to performance on Intel as it is on AMD's current chips).