Added functions to get the next virtual machine ID.
This is currently not documented in the api.