User interaction between host and virtual machine
问题 I have a python script on my host machine which is trying to run another script in the guest machine. I also want the script on host to feed the script on guest with a number. On host machine: args = shlex.split("vmrun -gu root -gp mohsen77 runProgramInGuest F:/Attacker/Ubuntu1110.vmx /usr/bin/python /home/srastega/Attacker") Attacker = subprocess.Popen(args, stdin=PIPE, stderr=STDOUT, stdout=PIPE) out, err = Attacker.communicate("1\n") exitcode = Attacker.returncode On guest machine: n= int