Virtual PC for Windows is a Microsoft software product available for free download. See this website for the system requirements. Once Virtual PC has been installed on MicrosoftWindows, the user can configure a virtual machine and then install the desired guest operating system.
The first step in installing FreeBSD on Virtual PC is to create a new virtual machine for installing FreeBSD. Select when prompted:
Selectas the when prompted:
Then, choose a reasonable amount of disk and memory depending on the plans for this virtual FreeBSD instance. 4GB of disk space and 512MB of RAM work well for most uses of FreeBSD under Virtual PC:
Save and finish the configuration:
Select the FreeBSD virtual machine and click, then set the type of networking and a network interface:
After the FreeBSD virtual machine has been created, FreeBSD can be installed on it. This is best done with an official FreeBSD CD/DVD or with an ISO image downloaded from an official FTP site. Copy the appropriate ISO image to the local Windows filesystem or insert a CD/DVD in the CD drive, then double click on the FreeBSD virtual machine to boot. Then, click and choose on the Virtual PC window. This will bring up a window where the CD-ROM drive in the virtual machine can be associated with an ISO file on disk or with the real CD-ROM drive.
Once this association with the CD-ROM source has been made, reboot the FreeBSD virtual machine by clicking Virtual PC will reboot with a special BIOS that first checks for a CD-ROM.and .
In this case it will find the FreeBSD installation media and begin a normal FreeBSD installation. Continue with the installation, but do not attempt to configure Xorg at this time.
When the installation is finished, remember to eject the CD/DVD or release the ISO image. Finally, reboot into the newly installed FreeBSD virtual machine.
After FreeBSD has been successfully installed on MicrosoftWindows with Virtual PC, there are a number of configuration steps that can be taken to optimize the system for virtualized operation.
Set Boot Loader Variables
The most important step is to reduce the
kern.hztunable to reduce the CPU utilization of FreeBSD under the Virtual PC environment. This is accomplished by adding the following line to
Without this setting, an idle FreeBSD Virtual PC guest OS will use roughly 40% of the CPU of a single processor computer. After this change, the usage will be closer to 3%.
Create a New Kernel Configuration File
All of the SCSI, FireWire, and USB device drivers can be removed from a custom kernel configuration file. Virtual PC provides a virtual network adapter used by the de(4) driver, so all network devices except for de(4) and miibus(4) can be removed from the kernel.
The most basic networking setup uses DHCP to connect the virtual machine to the same local area network as the MicrosoftWindows host. This can be accomplished by adding
/etc/rc.conf. More advanced networking setups are described in Chapter30, Advanced Networking.