Unix/Linux Go Back    


Virtualization and Cloud Computing Xen, VMWare, hypervisors, Amazon Elastic Computing Cloud, EC2, virtual storage, Amazon S3 and other cloud computing topics.

Help with Vmrun in Vmware

Virtualization and Cloud Computing


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-30-2011
r4v3n r4v3n is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 18 July 2012, 3:01 AM EDT
Posts: 30
Thanks: 6
Thanked 2 Times in 2 Posts
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.
Sponsored Links
    #2  
Old Unix and Linux 06-30-2011
KenJackson KenJackson is offline
Registered User
 
Join Date: May 2008
Last Activity: 7 September 2011, 6:25 AM EDT
Location: Maryland, USA
Posts: 307
Thanks: 2
Thanked 29 Times in 21 Posts
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.
Sponsored Links
    #3  
Old Unix and Linux 06-30-2011
r4v3n r4v3n is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 18 July 2012, 3:01 AM EDT
Posts: 30
Thanks: 6
Thanked 2 Times in 2 Posts
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  
Old Unix and Linux 06-30-2011
KenJackson KenJackson is offline
Registered User
 
Join Date: May 2008
Last Activity: 7 September 2011, 6:25 AM EDT
Location: Maryland, USA
Posts: 307
Thanks: 2
Thanked 29 Times in 21 Posts
Quote:
Originally Posted by r4v3n View Post
I'm running malware that come into my honeypot in an automated way to get the analysis reports...
Wow! Linux

If ever there was a valid, legitimate need to run real Windows, you just nailed it.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX on VMWARE mlaiti AIX 3 12-30-2010 03:54 PM
Hi VMware 7.1.1 andresguillen Virtualization and Cloud Computing 2 09-09-2010 05:08 PM
VMware ESX 3.5 rajasekg Solaris 1 02-14-2010 11:45 PM
VMware asalman.qazi Solaris 2 11-09-2009 10:09 AM
VMware BSD mxlst14 BSD 1 06-12-2006 09:16 AM



All times are GMT -4. The time now is 09:36 AM.