Running X.org under VMWare 4.5

What makes VMWare so great is that they officially support many Linux distributions, at least the most known ones, like RedHat, Fedora, SuSE, Mandrake and some others. But it’s impossible to support all distirbutions, especially custom or source-based ones, say LFS or Gentoo.

Don’t get this wrong, you can by all means install and run Gentoo on VMWare, since most of the hardware VMWare emulates is known to Linux, like LSI Logic SCSI interface, or AMD’s PCNet32 network interface. Only when it comes to graphics, VMWare uses its own device and doesn’t emulate any known one, that’s why you need to install VMWare tools before running X, otherwise, you’ll just end up with crappy colors and resolutions.

On Gentoo, the installation was fairly easy, I only had to look around the VMWare Tools package a little and figured it out. Here’s what you have to do:

  • In VMWare, click on VM -> Install VMWare Tools…
  • mount /mnt/cdrom
  • Extract /mnt/cdrom/vmware-linux-tools.tar.gz somewhere.
  • cp /path/to/vmware-tools-distrib/lib/configurator/XFree86-4/4.3.x/vmware_drv.o\
       /usr/X11R6/lib/modules/drivers/
  • Now use /path/to/vmware-tools-distrib/lib/configurator/XF86Config-4 as a reference to setup your /etc/X11/xorg.conf. The only two things that really matter are the “Monitor” section XF86Config-4, and that you make sure you’re using vmware as a drive in the “Device” section. Tip: Xorg -configure might do a decent job in figuring out most of the details, it only leaves the monitor undetected, so just copy it from the sample configuration.
  • startx, and everything should work fine.

I’m still not sure about the rest of VMWare tools, haven’t compiled them yet, but I’ll try working on them later on, maybe even end up with an ebuild. Personally, I only needed to get X.org to run at a 1600×1200 resolution, I don’t need the rest of the tools much, but then again, why not get the rest?

Comments (4)

  1. Shane wrote:

    So I have been trying to get gentoo installed on VMWare (pentium 4 platform) and the network simply won’t work. You are one of the few I have heard of getting this to work and actually voicing it. Any thoughts for a gentoo newbie. I am a converted debian fan.

    Sunday, April 3, 2005 at 4:04am #
  2. As far as I recall, VMWare uses a standard AMD PCNet32 ethernet adapter, so you should try running “modprobe pcnet32″ and then “net-setup eth0″, that should make it work.

    Give it a try and tell me if it works out.

    Sunday, April 3, 2005 at 10:28am #
  3. Farrel wrote:

    Thanks for the guide. Really helped!

    Wednesday, June 1, 2005 at 1:43am #
  4. Paul wrote:

    Thank you very much! This was exactly what i was looking for and now my xserver works just perfect!

    Friday, November 10, 2006 at 2:25am #