Help with Vmrun in Vmware

Login or Register to Reply

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

Hi,

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 vmrun.sh & 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 threatexpert.com. I can run them in wine, but I need more accurate reports.

Cheers.
# 4  
Quote:
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
aonallah
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:: http://www.youtube.com/watch?v=n0OVSQY3LtI... Ubuntu
0
Ubuntu
Hi VMware 7.1.1
andresguillen
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
2
Virtualization and Cloud Computing
VMware
asalman.qazi
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
2
Solaris
vmware
puertochico
I sorry for not being able to follow the rules.... OS X (Apple)
0
OS X (Apple)
vmware???????????????????
amicrawler2000
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
1
UNIX for Dummies Questions & Answers