Choosing and Installing Guest Operating Systems : FreeBSD 4.0, 4.1, 4.2, 4.3

FreeBSD 4.0, 4.1, 4.2, 4.3
Support
This guest operating system is supported on the following VMware products:
n
VMware Workstation 4.0, 4.0.1, 4.0.2, 4.0.5, 4.5, 4.5.1, 4.5.2, 4.5.3, 5.0, 5.5, 5.5.1, 5.5.2, 5.5.3
Experimental support for 2-way Virtual SMP on Workstation 5.5, 5.5.1, 5.5.2, 5.5.3
n
n
n
VMware Server 1.0, 1.0.1
Experimental support for 2-way Virtual SMP on VMware Server 1.0, 1.0.1
Note
If you are installing a guest operating system through VMware VirtualCenter, be sure it is supported under the VMware product—ESX Server or GSX Server—on which you are running the virtual machine.
Note
With many Linux guest operating systems, various problems have been observed when the BusLogic virtual SCSI adapter is used with VMware virtual machines. VMware recommends that you use the LSI Logic virtual SCSI adapter with this guest operating system.
General Installation Notes
Be sure to read General Guidelines for All VMware Products as well as this guide to installing your specific guest operating system.
The easiest method of installing FreeBSD 4.0, 4.1, 4.2 or 4.3 in a virtual machine is to use the standard FreeBSD distribution CD.
Before installing the operating system, be sure that you have already created and configured a new virtual machine.
Note
If you create your virtual machine with a virtual IDE disk, installation proceeds as it would on a physical machine. If you create your virtual machine with a SCSI virtual disk that is 2GB or larger, see “Setting the Disk Geometry for a FreeBSD SCSI Virtual Disk” below.
Installation Steps
1
2
3
VMware Tools
Be sure to install VMware Tools in your guest operating system. For details, see the manual for your VMware product or follow the appropriate link in the knowledge base article at www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=340.
In many Linux distributions, if IPv6 is enabled, VMware Tools cannot be configured with vmware-config-tools.pl after installation. In this case, VMware Tools is unable to set the network device correctly for the virtual machine, and displays a message similar to
Unloading pcnet32 module
unregister_netdevice: waiting for eth0 to become free
This message repeats continuously until you reboot the virtual machine. To prevent this problem in virtual machines running Linux, disable IPv6 before installing VMware Tools.
To disable IPv6 in a virtual machine running Linux:
1
If the file /etc/sysconfig/network contains the line NETWORKING_IPV6=yes, change the line to NETWORKING_IPV6=no.
2
In the file /etc/modules.conf, add the following lines:
alias ipv6 off
alias net-pf-10 off
After you disable IPv6, you should be able to install and configure VMware Tools successfully.
Known Issues
Setting the Disk Geometry for a FreeBSD SCSI Virtual Disk
If you install FreeBSD 4.0, 4.1, 4.2 or 4.3 as the guest operating system on a 2GB or larger SCSI virtual disk, the guest operating system does not boot unless you take the special steps described in this section.
It fails to boot because the virtual disk geometry is not probed correctly by FreeBSD when you install the guest operating system. FreeBSD installs the boot loader in the wrong location on the virtual disk. When FreeBSD tries to boot, the FreeBSD boot loader asks the BIOS for important data that is now on a different section of the virtual disk, so FreeBSD cannot boot.
This problem has been fixed in FreeBSD 4.4. This and later versions correctly boot SCSI virtual disks of any size.
To use FreeBSD 4.0, 4.1, 4.2 or 4.3 in your virtual machine, you can do one of two things:
n
n
To set the disk geometry manually, take these steps.
1
2
To set the disk geometry, press G to select the option Set Drive Geometry. A dialog box appears, containing numbers like 2055/64/32, representing the incorrect geometry in cylinders, heads and sectors per head.
3
To calculate the correct geometry, find the total number of sectors by multiplying the number of cylinders, heads and sectors per head together, and then dividing the number of sectors by the correct number of heads and sectors per head.
In the above illustration, the virtual disk is a 2055MB disk with 2055 cylinders, 64 heads and 32 sectors per head (these numbers represent the incorrect geometry). The product of these three numbers (2055 x 64 x 32) equals 4,208,640 sectors.
To determine the correct geometry for the BusLogic compatible virtual SCSI adapter used by the virtual machine, calculate the number of cylinders, which is 4,208,640 sectors divided by the product of the actual number of heads and sectors per head (255 heads times 63 sectors per head). This results in a total of 261 actual cylinders (4208640/(255 * 63) = 261, rounded down).
4
You can now enter the correct geometry of 261 cylinders, 255 heads and 63 sectors per head by typing 261/255/63 in the dialog box. Then click OK and continue installing FreeBSD.
Sound
VMware has not tested sound support in FreeBSD.
Guest Screen Saver
On a Linux host with an XFree86 3.x X server, it is best not to run a screen saver in the guest operating system. Guest screen savers that demand a lot of processing power can cause the X server on the host to freeze.
Migration to a Different Processor
VMware recommends you do not migrate a Linux virtual machine between hosts when one host is running on an AMD processor and the other is running on an Intel processor.
During installation, many distributions of Linux choose a kernel that is optimized for the specific processor on which it is being installed, and some distributions install a generic kernel by default, but provide architecture-specific kernels that the user can choose to install. The kernel might contain instructions that are available only on that processor. These instructions can have adverse effects when run on a host with the wrong type of processor.
Thus, a Linux virtual machine created on a host with an AMD processor might not work if migrated to a host with an Intel processor. The reverse is also true: a Linux virtual machine created on a host with an Intel processor might not work if migrated to a host with an AMD processor.
This problem is not specific to virtual machines and also occurs on physical computers. For example, if you move a hard drive with a Linux installation from an AMD machine to an Intel machine, you are also likely to experience problems trying to boot from that drive.