FreeBSD in VMware
Considerations for installing FreeBSD in VMware Fusion 2.0
Installing 7.0-RELEASE or 7.1-BETA2 from the disk1 image works without a hitch.
Upgrading via source to -current (2008-11-21) also worked flawlessly. I created a custom kernel config, removing INVARIANTS and WITNESS and most devices.
Trying to install emulation/vmware-guestd6 fails; it appears some patches are needed. Specifically, the location of the compiled vmmemctl.ko is now one level above from what the Makefile expects. In do-install around line 214, it now must read:
${INSTALL_KLD} ${WRKDIR}/vmmemctl.ko ${VMWARE_KMODDIR}
Kernel Config
loader.conf
Packages
I put in these packages:
- emulation/vmware-guestd6
- emulation/vmware-tools6
- x11-servers/xorg-server
- x11/xorg
- x11-drivers/xf86-input-mouse
- x11-drivers/xf86-video-vmware
xorg.conf
The auto-generated xorg.conf (X -configure) is almost complete, but I did make a few changes:
Use the VMware mouse driver:
Section "InputDevice" Identifier "Mouse0" Driver "vmmouse" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection
Fix monitor timings to allow all resolutions (no idea why the autodetection is not working properly):
Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 30-100 VertRefresh 56-120 EndSection
Pin down resolutions to 1280x1024:
Section "Screen" Identifier "Screen0" Device "card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 Modes "1280x1024" EndSubSection ... EndSection