Gentoo VMWare Fail
According to this bug, VMWare on Gentoo is in a sorry state, with one lone person trying to keep it going. I can't get vmware-modules to compile on my system no matter what I try, which is depressing. Kudos to all of our one-man army Gentoo devs who are keeping various parts of the distro going, but I wonder how many other areas of Gentoo are largely unmaintained nowadays.
KVM was braindead simple to get set up in comparison with VMWare, but I can't get networking to work. This is because I'm an idiot when it comes to TUN/TAP and iptables. I've read wiki articles that suggest setting up my system to NAT-forward traffic into the VM but I couldn't get that working and don't have a lot of time to screw with it.
On one of the Gentoo mailing lists I noticed that a dev has posted some KVM images of Gentoo suitable for testing. But I'm looking to start up an image from scratch and that doesn't help, and it's not going to help me get networking going any easier.
Why do I feel like this'd take 10 minutes to set up on Ubuntu? Look at this, or search for "ubuntu vmware" and see the hundreds of results. Given that it's a VM and it doesn't really matter what the host OS is anyways, I'll probably do that on my laptop, but it's still depressing.

13 Comments
I do occasionally run into various areas of Gentoo that seem to either be poorly or unmaintained, especially with certain long-standing bugs that are still unfixed or even looked at months or years later. (This phenomenon, of course, is not unique to Gentoo.)
I haven't actually used VMware in a while, having replaced all my virtual machine needs with VirtualBox, which does seem to be maintained by an active developer (for the moment), though it definitely has a more desktop bent over things like vmware-server.
That is just the nature of vmware & vbox. They will never work with the bleeding edge kernels until upstream releases something that works with those kernels. So, I'm afraid that it is a choice you have to make there. Of course, kvm will always work with the latest kernel.
A quick howto, I hope it helps. 1) Setup a networking bridge (docs exist elsewhere)
2) Start kvm with the correct options. Here is what I use.
kvm gentoo-amd64-stable.img -net nic -net tap,ifname=qtap0 -net nic,model=rtl8139,macaddr=52:54:00:12:34:56 -m 512 -smp 2 -usb -usbdevice tablet3) See the README here for more help: kvm-tools, github
KVM (and Virtualbox last time I checked) does have that stifling flaw of not setting up networking automagically. I've been using VMWare for close to a decade and it's always "just worked" with respect to networking (even though setting up the vlans in the installer sometimes wasn't so obvious).
Hey I've been reading your blog for a while and I can't help but think you might really like Archlinux.
@Noah: What advantages does Arch Linux have over Gentoo?
Arch Linux has source compiled packages for i686 systems (no i386 stuff here).
VMWare is really nice as it allows you to set up virtual switches/lans etc. However, for smaller setups, VirtualBox is another alternative. I am not sure how well supported it is in Gentoo but under Ubuntu, it is as simple as installing the package and running "VirtualBox" (please pay attention to the name of the binary).
It probably would take 10 minutes to set up in Ubuntu. I was skeptical at first, since Gentoo was the first distribution ever that had a decent package management system, but so far I'm finding Ubuntu to be pretty much exactly the same except that "apt-get install" requires more keystrokes than "emerge." That, and it's physically possible to install Ubuntu on my computers, whereas I have tried and failed multiple times via multiple methods to install any non-2006.0 release of Gentoo on 3 different computers.
Ubuntu is now the "hip" distro that has the largest user- and maintainer-base, so it's going to get shit fixed & updated before the other distros do.
I assume you've applied the patch in http://platan.vc.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz ??
I've never had a problem getting vmware modules working after patching with his patch... for any 2.6 kernel. hope that helps ..
Brian,
Here's an (incomplete) list:
This may also be of interest: Arch v. Gentoo
Good luck :)
Noah
@Noah thanks for the info and the suggestion. I've installed Arch so we'll see what happens.
You might want to take a look at this forum post: networking kvm (kernel virtual machine)
I'm using this setup for almost 3 moths already and it works very well.
/stask
Sorry to dredge an old topic, but I know why wmware-modules fails to build. I attempted to update my kernel, but failed to make the new kernel stable on my hardware, so i went back to 2.6.23-r9. I broke my vmware installation during the process, so I was attempting to return things to working order and ran into the same failure when emerging vmware-modules.
The issue is: sometime after the 2.6.23-r9 kernel, the /usr/src/linux/arch layout was changed. Back then the x86 stuff was in i386 and there was not an x86 folder as expected by the ebuild. I created a symlink pointing x86 to i386 and the modules built.
however I'm still having problems getting vmware-player functioning. so the verdict is still out on how effective my symlink really was.
Les
Finally got my player functioning. I reemerged vmware-modules, ran vmware-netcfg, and renamed /etc/vmware/not_configured, among other things trying to get the familiar prompts that vmware-config.pl used to provide. but now it is now working. Which one did the trick who knows.
Hopefully I will find out when I re-attempt upgrading my kernel.
Les
Speak your Mind
Preview