Help with Vmrun in Vmware

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Help with Vmrun in Vmware


I've set up Windows XP virtual machines on an Ubuntu host to perform certain automated tasks. I copy files from the Ubuntu machine over to the XP machines using vmrun, execute the files, and receive reports back. All this is done using bash.

If the files I copy and run over in the vm crash the vm and cause a BSOD for some reason, the whole automation gets stuck. Is there any way to find out the state of the Windows XP machine ?

Any help is appreciated

---------- Post updated 06-30-11 at 01:13 PM ---------- Previous update was 06-29-11 at 11:12 PM ----------

I managed to find a crude solution for this. I've introduced a timeout in the bash script like this:

bash & sleep 120 ; kill $!

So, if the script doesn't finish execution in the vmware guest within 120 seconds, for whatever may be the reason [BSOD, machine hung machine rebooted etc.], I kill it.

Hope someone finds this useful.
# 2  
If your bash script pinged the virtual Windows machine every second or every few seconds, that would give a reasonably quick and reliable indication.

But I have to ask the obligatory question. Have you tried running your Windows software under Wine? That might give you better control.
# 3  
Thanks for the reply Ken.

Pinging the machine was one of the first solutions I thought of, but unfortunately when the VM goes down, ping would just hang. It would not throw any errors I could work with. The same goes for querying a PID on the VM, or querying for a file in a directory using vmrun. They would all just hang and wait for the machine to reboot without throwing errors.

It's not one software that I'm running VMWare. I'm running malware that come into my honeypot in an automated way to get the analysis reports...kind of like I can run them in wine, but I need more accurate reports.

# 4  
Originally Posted by r4v3n
I'm running malware that come into my honeypot in an automated way to get the analysis reports...
Wow! Smilie

If ever there was a valid, legitimate need to run real Windows, you just nailed it.
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
problem with VMWare 7 1 4
Hi all I have a very big problem with ..... > VMWare Workstation 7.1.4 Closes abruptly >> If I do anything This video demonstrates the problem:: Ubuntu
Hi VMware 7.1.1
Hi Gurus Can anyone please send a trial license of VMware 7.1.1. I install it in my machine. Thanks... Virtualization and Cloud Computing
Virtualization and Cloud Computing
Hi I want to install vmware on my laptop and get started by installing a Solaris 10 on it . Can aybody suggest any links, pdfs etc that describes the procedure step by step .The laptop is running windows Vista Thanks in advance... Solaris
I sorry for not being able to follow the rules.... OS X (Apple)
OS X (Apple)
i got the rpm file and installed it but nothing happens i went to the cmd line and got the wizard to come up and finshed it but still no a thing will any body help me set this thing up i'm using mandrak9... UNIX for Dummies Questions & Answers
UNIX for Dummies Questions & Answers