Running VMware Server Console on a Mac

Last year, I bought a 20″ wide-screen monitor which I run at a resolution of 1680×1050 pixels. Working with all that screen space is fantastic (especially with 4 virtual desktops), except that I’ve got so used to it that the standard 1024×768 pixels on the notebook PC that I use for work seems too small and an upgrade is out of the question as the PC is only 18 months old.

For a while now, I’ve been running the notebook on the desk next to my main display but I’m running out of desk space. As I virtualised my corporate Windows XP build a while back, I thought it would be great if, when I’m working at home, I could run the Linux VMware Server Console on my Mac (which is connected to the large display). The virtual machine would still be limited to 1024×768 but I could access corporate applications in the VMware Server Console and do the big screen stuff (web, e-mail, document edits, etc.) natively on the Mac, using the whole display. Yes, I know that if I used Microsoft Virtual Server I could run it in a browser, but I’d need ActiveX and I’m not using Internet Explorer. Similarly RDP is an option, but I find it to be a bit flaky on an Intel Mac. Anyway, I’m a (pseudo-)geek and so I need to feed on problems like this from time to time!

Actually, much of the hard work has already been done for me – googling for vmware console mac soon turns up Rui Carmo’s article at The Tao of Mac on how to run [the VMware Console] remotely with Apple’s X11; however Rui’s article was written a while ago now and my VMware Server (v1.0.1-build 29996) installation on Fedora Core 5 doesn’t use the command vmware-console – instead I have to use vmware. Nevertheless, it got me 90% of the way there:

  • On the (Linux) VMware Server:
    • Configure SSH and X11 forwarding (my original post used a Windows client and public/private keys but the principles are similar – this time I used password authentication, making sure that the PasswordAuthentication yes and X11Forwarding yes lines were present in /etc/ssh/sshd_config and restarting the SSH daemon with service sshd restart).
    • Locate an appropriate keyboard map in /usr/lib/vmware/xkeymap/, edit the map if necessary (there is a VMware article about keyboard mapping on a Linux host that may be useful – don’t worry that it’s a VMware Workstation document) and edit ~/.vmware/preferences to include xkeymap.language="<em>keyboardmap</em>" (I used gb101 for my Apple UK keyboard).
  • On the Mac:

At this point VMware Server Console ran successfully under X11 on my Mac; however whenever I powered on a virtual machine all I saw was a black screen and a message in the xterm window which read:

X11 connection rejected because of wrong authentication.

After trying a remote VMware Server Console connection to localhost and restarting the Linux host (I’m not sure which, if either, of these made a difference) I found that the virtual machine was actually starting but that for some reason the display wasn’t being repeated in the X11 VMware Server Console on the Mac; however this time there was a different message displayed:

Unable to connect to the MKS: You need execute access in order to connect with the VMware Server Console. Access denied for config file: /var/lib/vmware/Virtual Machines/virtualmachinenname/virtualmachinenname.vmx.

After setting execute permissions to the virtual machine configuration file chmod +x <em>virtualmachinenname</em>.vmx (changing the permission set from 640 to 751), I was able to successfully view the VM on the Mac (and simultaneously on the Linux host) – the only (very minor) issues are that the mouse pointer is solid white when accessing the virtual machine (so sometimes I lose it) and that the sound is not forwarded (no big deal). Now my notebook PC is docked on a shelf away from the desk, with the lid closed, and I’m running the VMware Server Console from the Mac, having reclaimed some space on my desk.

17 Comments

  • Wednesday 11 April 2007 - 0:22 | Permalink


    Hmmm. Thanks for the update. I’m linking to your post from my site, if you don’t mind :)

  • Wednesday 11 April 2007 - 7:15 | Permalink


    I don’t mind at all Rui – thanks for writing the original article!

  • Wednesday 11 April 2007 - 13:43 | Permalink


    OK. So last night this was working. Then I took the notebook PC to work with me and when I returned home this afternoon I had problems connecting. Here’s some extra information that I’ve found…

    Sometimes the VMware Server Console gets upset and throws weird errors. The are not consistent – the most recent was Failed to disconnect from the MKS: Pipe: Write failed but I’ve also had other MKS errors, one warning that the host didn’t have any sound device and a number of plain black screens. What seems to work is this:

    • Log on interactively to the Linux machine before launching the X11 VMware Server Console.
    • If the X11 connection rejected because of wrong authentication error returns, then try xauth generate :0 . trusted (as suggested in Rui Carmo’s original post).

  • Simon
    Sunday 14 October 2007 - 6:57 | Permalink


    Well, i’ve tried this, and i would like to mention that everthing is dead slow. The mouse lags horribly, just as if you connect to the PC via VNC.
    I’d be glad if you had any solutions for this.

  • Sunday 14 October 2007 - 8:50 | Permalink


    Simon,
    That wasn’t my experience at all. You don’t mention whether it was the console access or the VMs that was slow but if console access in general is slow it may be an issue with the specs. of your PCs and/or network and if the virtual machines are slow are you sure that you have installed the VMware Tools inside each VM?

    Mark

  • Jason Dixon
    Saturday 20 October 2007 - 17:08 | Permalink


    Just a quick comment for the archives. If you’re stupid like me, and decided to install the bare minimum of packages for your Linux host, you might have overlooked xauth. If, for some reason, you try to “ssh -Y user@host” and DISPLAY is not set properly (localhost:10.0), you’re probably missing the xauth package. On my CentOS 4.5 system, it was an easy fix of “yum install xauth” and we were off to the races. :)

  • Saturday 20 October 2007 - 18:57 | Permalink


    Thanks for the tip Jason – and I wouldn’t consider installing the minimum number of packages to be stupid – it’s good security practice to only install the components of the system that are absolutely necessary.

  • Jason Dixon
    Saturday 20 October 2007 - 19:23 | Permalink


    Hi Mark. Actually, I was stressing the “overlooked xauth” part as dumb, not the “bare minimum” part. But yes, you’re absolutely correct. I install the bare minimum of packages on any system plugged into network, for security reasons. Especially when it’s a Linux server. ;)

  • A. Davis
    Wednesday 2 January 2008 - 1:07 | Permalink


    I used a simpler solution than an ssh tunnel. My MacBook Pro is using BootCamp with XP installed. I have VMWare Fusion running and it opens my XP BootCamp partition w/o issue. In XP I have quite a few remote access tools installed (I’m an IT consultant so sometimes its RDP, sometimes, VNC, sometimes remote X, and sometimes RAdmin). I installed the VMWare Server Console in XP, then turned on Unity mode and just started using the Windows console natively within OS X. Worked just fine…

  • Wednesday 2 January 2008 - 8:26 | Permalink


    @A. Davis – thanks for your comment Andrew – it’s good to know that method works but unfortunately wasn’t an option when I wrote this post back in April 2007 as Boot Camp and VMware Fusion were both beta products back then. Hopefully I’ll be getting a MacBook Pro myself soon, after which I shall pick up a copy of VMware Fusion and give it a go!

  • Jeremy K.
    Saturday 9 February 2008 - 19:30 | Permalink


    Has anyone got the vmware-server-console compiled and running on their Mac natively? I am using Leopard 10.5.1 with MacPorts installed and can get vmware-server-console to run locally via the “ssh -Y” method. However the console keeps crashing when I try to configure the remote VM. I would love to try running the console locally instead to help (potentially) alleviate that issue.

    Thanks Mark for the writeup and to Rui for the original article. Keep the Mac + VMWare Server goodness coming!

    Cheers,

    Jeremy

  • Thursday 18 June 2009 - 5:17 | Permalink


    My server is a barebones Suse11.0 server console mode only running VMWare Server .
    My main desktop is a Mac Mini. I have Vista in Bootcamp, but this takes forever to power on, even under Fusion.
    My quick workaround is an XP VM workstation on my mac, installed from tinyXP. takes

  • Pingback: Running vmware console in Mac OS X « Trikks

  • Friday 11 September 2009 - 18:12 | Permalink


    I’m using a opensuse console mode and it works good !

  • Friday 6 November 2009 - 15:47 | Permalink


    Using a virtual machine, to control a virtual machine is ridiculous in my eyes. There should be no reason to do so… Sadly we have to. I have had no luck running vmware in X11. My browser comes up, but the login doesnt show, so I cant do anything. I run XP in Parrallels and connect just fine load up the virtual machine… but its kind of silly, Running XP in MAC, to Run and XP virtual machine off a server… silly indeed.

    Im going to try Sun’s Virtual Box and see if its any better.

  • Friday 13 November 2009 - 14:36 | Permalink


    So far virtual box is running as well as VMware Server, but I can actually virtualize inside osx with firefox.

  • Pingback: How to install VMware Server 2.0 on Slackware 13

  • Leave a Reply

    %d bloggers like this: