Ubuntu guest OS loses mouse control after waking from suspend

Discussion in 'Linux Virtual Machine' started by dpickett, Jan 11, 2012.

  1. dpickett

    dpickett Member

    Messages:
    64
    I usually have my VMs running for several days at a time, and I had gotten into the habit of suspending my Ubuntu install before I put my Mac to sleep. I have found that, after two or three suspend and wake cycles, the guest OS loses the ability to sense mouse clicks. I can move the cursor around the screen, but no mouse clicks register. The only solution is to reboot the VM.

    I'm running Ubuntu 11.10, in the latest Parallels, with OS X 10.7.2 as the host OS.
     
  2. shanjoyb

    shanjoyb Member

    Messages:
    48
    Simple test, forwarding X11 back to OSX:

    Start your Ubuntu VM, get its IP.
    On OSX, start X11.app. You should (by default) get an xterm.
    In that xterm, execute the command:
    ssh -Y [your Ubuntu username]@[Ubuntu VM's IP]
    You'll be asked to confirm that you really do want to connect, then be asked for your password.
    Once that's done, you'll be in a shell session, connected to your Ubuntu VM.
    Now, from the xterm, start up an X11 app, and it should be "forwarded" back to OSX =)

    Xnest is a little more complicated, as you need to edit the gdm.conf file to enable XDMCP (a fancy acronym ("X Display Manager Control Protocol") that essentially means "Let remote X sessions connect"). Then in the xterm on OSX, instead of sshing, you use:

    Xnest :1 -geometry 1024x768 -query [Ubuntu VM's IP]

    ...which gets you a full X session, in a 1024x768 window (you can modify the command to get other resolutions, just remember it's in a window, not fullscreen). Nice if you need a full GNOME or KDE environment.

    Hopefully that makes sense


    _______________

    shanjoyb [​IMG]
     

Share This Page