createVirtualMachine(dev) {
	        const mod = this.ctx.detachFromCurrentScope(this.systemLib().getFunction("vm_load_executable")());
	        return this.ctx.attachToCurrentScope(new VirtualMachine(mod, dev));
	    }
Setup a virtual machine module with given device.

@param dev DLDevice the device.
@returns The created virtual machime.