The documentation is kinda convoluted. The C API reference docs are much better. Essentially, you have to first login to the VM guest. In this case, you have to call the Vm.login_in_guest() method first. And remember this is an asynchronous call so, this should get you the VmGuest object (e.g.):
vm_guest = vm.login_in_guest('user', 'my_awesome_pass').wait().get_param()
Then you can call other VmGuest methods on it.
Edit: Forgot about string handles. Look at StringList object in the API. run_program method takes StringList as values for hArgsList & hEnvsList.
Last edited: Sep 22, 2011