Results 1 to 6 of 6

Thread: Batch and VMware help

  1. #1
    Pancake
    Guest

    Question Batch and VMware help

    Ok so i need some help, here is what i have

    HTPC/Server has a VM on it that i need running, then i want XBMC starting with windows, so i have this batch file i made that starts the VM and closes some Defender window etc

    Code:
    @echo off
    
    TASKKILL /F /IM MSASCui.exe /T
    
    "C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -T ws start "D:\Documents\WMware\Windows 7.vmx"
    
    PING 1.1.1.1 -n 1 -w 10000 >NUL
    
    "C:\Program Files (x86)\XBMC\XBMC.exe"
    Now, the problem is that even with the waiting from the ping, the VM it goes ontop of XBMC, sometimes the VM starts late because it has to start all over again. If the VM where to suspend before shutting down it would solve everything.

    So i went into the Local Group Policy Editor and made a shutdown script that looks like this

    Code:
    @echo off
    cls
    
    for /R "D:\Documents\VMware" %%f in (*.VMX) do "C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" suspend "%%f"
    
    shutdown -s
    But that doesn't work AT ALL.

    Does anyone know how i would go about getting it to suspend on shutdown? i have googled it 100 times and not got any further.

    Another Solution would be for XBMC to stay ontop of everything at all costs, but i cant seem to get that to work either

    Or for VMware to not steal focus
    Last edited by Pancake; 11-12-2011 at 05:10 PM.

  2. #2
    Splash
    Guest

    Re: Batch and VMware help

    What are you doing with the VM? Which version of VMWare Workstation? Is VMCI enabled for the guest?

  3. #3
    Pancake
    Guest

    Re: Batch and VMware help

    I have actually sorted it, but i use the VM for downloading. If i am watching TV on the machine i cant remote desktop to add stuff to the queue. So in a VM i can just RDC right to that

    Its the latest, version 8. And yeah its enabled

  4. #4
    Splash
    Guest

    Re: Batch and VMware help

    How did you sort it? My solution for that (assuming by "downloads" you mean torrents) would be to just run something like a Transmission daemon on the server (ie your host) then use Transmission Remote .net to manage downloads and the like, bypassing the need for the VM and the overhead that it imposes.

  5. #5
    Pancake
    Guest

    Re: Batch and VMware help

    Its all off RS and FS and i use Internet Download Manager (IDM) to download it, so there isnt really anything i can do about that. Its not really much of a problem as i have loads of space, loads of RAM and an i3 for just watching movies off. So it handles it well

    I just made a shortcut to a batch file and renamed it "Shut Down" and its this

    Code:
    "C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -T ws suspend "D:\Documents\WMware\Windows 7.vmx"
    
    PING 1.1.1.1 -n 1 -w 3000 >NUL
    
    shutdown -s -f -t 01

  6. #6
    Splash
    Guest

    Re: Batch and VMware help

    Hmm... this seems to cover your requirements, assuming only one VM running on the host, and you should be able to run the VM in background mode so long as it's sitting as a shared VM (so it won't steal focus)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •