Whether your server is a VM should not make a difference, as long as you run Apache+PHP on it, just pass the link to your php script to InitiateRecorder—although keep in mind that you will need a secure domain (https), so a public IP address won’t be enough for that
Same thing about the audio: as long as you have a public link that points to a valid audio file, it should work just fine