Need help with "how to terminate a virtual machine" parallels sudo kill?

Discussion in 'Windows, Linux & Others on the Mac' started by aneftp, Jun 19, 2011.

  1. aneftp macrumors 601

    Joined:
    Jul 28, 2007
    #1
    I have parallels 6. Running windows 7. It's "stuck/frozen" on the shutdown screen.

    I went over to the parallels webpage and found this article how to terminate a virtual machine
    http://kb.parallels.com/6338

    However, the last step is very confusing to me. I located my UDID of the windows 7.

    But the last step says,
    "Find out the UUID of the machine you would like to stop and abort the prl_vm_app process of this VM:

    sudo kill -9 362


    so I type in sudo kill -9 362 and hit enter and it asks for my password, which I type but that doesn't stop the virtual machine.

    So where do I add the UDID to stop the virtual machine?

    I need help. Because I do quickbooks on Windows 7 on the virtual machine on my Mac OSX snow leopard.

    Thannks
     
  2. aneftp thread starter macrumors 601

    Joined:
    Jul 28, 2007
    #2
    48 views so far and no one knows the answer to my question?

    I may have to just use Time Machine to revert back but I am going to lose 3 weeks worth of data on my Quickbooks for Windows on the virtual machine.
     
  3. TomH TX macrumors regular

    Joined:
    Oct 18, 2010
    #3
    Take a look under preferences. As I recall, you can set preferences to not only exit out of Windows, but also "force" a shutdown and close of the parallels VM, so that it does not leave the win7 screen sitting there.
     
  4. aneftp thread starter macrumors 601

    Joined:
    Jul 28, 2007
    #4
    I think I tried that last night. I kept on working on it for 2 hours and just gave up after doing as much research as I can. I just ended up using time machine and lost about 3 weeks worth of quickbooks data. I can make up that time in less than 1 hour replugging in the data for my business.

    I don't know why parallels has such as horrible knowledge base without detailed instructions. And I wasn't going to pay $15 per technical support when I knew I had the time machine option on my mac.

    Thanks anyways. But if anyone does know how to plug in the UDID to terminate the virtual machine, I would love to know the step by step detail as opposed to going the time machine route.
     
  5. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #5
    I'm not a Parallels user, but the command
    Code:
    sudo kill -9 [B]362[/B]
    is looking for what we usually call a process ID or PID where the 362 lives.

    This can be found using Activity Monitor, or ps or top from Terminal.app. Look for the task that is running as Parallels.

    Again, not a Parallels user so I can't experiment.

    B
     
  6. aneftp thread starter macrumors 601

    Joined:
    Jul 28, 2007
    #6
    Ok. Good to know. I am not familiar with terminal. I used it as the instructions wanted me to. But couldn't figure out the last step with the sudo kill.

    I used time machine and up and back running. At least I didn't lose that much data since I like to back up once a month with the portable hard drive.
     
  7. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #7
    Glad to hear you are back up and running. I read the KB article and IMHO it is bass-ackwards.

    Open Terminal
    Code:
    prlctl list -a
    
    Hit Return and you will get a list of all your virtual machines with their UUIDs:

    Code:
    {[B][U]248e9848-2169-4aa6-bfbf-c53c3db5c752[/U][/B]}  paused       Red Hat Enterprise Linux
    {7959a431-e0c1-4380-9887-e766f6e51530}  stopped      CentOS Linux
    {9d9174e1-deed-4d7e-bb14-4e7ad307899f}  stopped      Ubuntu Linux
    {a9b57971-b7d7-4961-b157-10490852cced}  stopped      Ubuntu Linux 8.10
    {b5d933c3-6b41-44f5-b477-dadeb2c2e346}  stopped      Windows Server 2003
    {cae3858f-5863-4e9a-badc-a7af37a43297}  running      Windows XP
    
    Find out the UUID of the machine you would like to stop, e.g.
    {248e9848-2169-4aa6-bfbf-c53c3db5c752} for Red Hat Enterprise Linux (bold,underline).

    Then retrieve the process ID for the process responsible for the VM that is associated with that UUID using the command:
    Code:
    ps auxwww | grep 248e9848-2169-4aa6-bfbf-c53c3db5c752
    output should look like

    Code:
    administrator   [B][U]362[/U][/B]  44.3  4.9   594924  77396   ??  R     9:52AM   0:16.80 /Library/Parallels/Parallels Service.app/Contents/MacOS/../PlugIns/Parallels VM.app/Contents/MacOS/prl_vm_app 78 {248e9848-2169-4aa6-bfbf-c53c3db5c752} {b08e2690-ca2e-4e4b-aeab-449e99edb98e} server
    The PID for this process is 362 (bold, underline). Now stop it using

    Code:
    sudo kill -9 362
    Substitute the values you find for the UUID and PID.

    B
     

Share This Page