Solution
I've had the same problem with my Gentoo VM using Parallels Desktop 4 - when I switched to Kernel 2.6.31, I couldn't compile the network driver any more. I've downloaded a trial version of Parallels Desktop 5 and compiled the included network driver. So far, I've had no problems using that driver, despite still running Parallels Desktop 4.
Here's a super quick roundup on how to do it. All these actions happen on the Host = Mac side unless noted otherwise.
- Download PD 5 Trial
- Mount the disk image, but don't run the installer
- In a shell window, copy
'/Volumes/Parallels Desktop 5/Install.mpkg/Contents/Packages/Parallels Desktop 5.pkg/Contents/Archive.pax.gz' to a place like ~/Desktop/tmp or something
- gunzip Archive.pax.gz
- I was a bit too lazy to find out the proper options for pax on the command line, so I just double clicked the pax file, and fortunately The Unarchiver was able to open it for me.
- The resulting directory containing the contents of Archive.pax is called 'Archive'
- Mount Archive/Library/Parallels/Tools/prl-tools-lin.iso by double clicking on it
- The sources for Parallels Tools are now in '/Volumes/Parallels Tools/kmods/prl_mod.tar.gz', so copy that file to your hard drive (e.g. again ~/Desktop/tmp)
- gunzip & untar that file
- the network driver sources are in prl_mod/prl_eth
- copy that directory over to the guest, maybe to /usr/src
- Now open a shell on the guest system and compile the driver. It should compile cleanly with Kernel 2.6.31. You can tell 'make' where your kernel sources are by using
Code:
make KERNEL_DIR=/usr/src/linux-2.6.31-gentoo-r6
Last edited: Dec 19, 2009