Buulding a VM is not a beginner task. You can get going if you have some basic understanding of various things, but getting anything half decent tends towards being a research project.
e.g. Scheme, Lua, etc.
AI, as it stands, screws up the basics, let alone something if this scope. It has no formal reasoning. A virtual machine is a formal reasoning engine.