Installing Virtual PC 2007
Installing Virtual PC 2007
The new features that Microsoft Virtual PC 2007 offers include support for Intel and AMD
hardware virtualization, the ability to run Windows Vista as both a host operating system
and a guest operating system (however only Windows Aero Basic runs in the guest
operating system), support for 64-bit host operating systems and improved performance
overall. It eliminates the need for two machines as is required for the above solution and
minimises the cost and time involved in setting up a new development environment.
Note: At the time of writing this paper Microsoft Virtual PC Beta 1 was available.
6. Ensure
that
“Using
the
R
ecommended RAM” is selected and click “Next”. To modify the RAM allocated to
the virtual machine, select the “Adjusting the RAM” option and adjust the slider
to the appropriate amount. 3
7. Select the “New virtual hard disk” option and click “Next”.
8. Type in the name with which you would like to identify the virtual machine’s hard
disk and click “Next”. To save the virtual machine’s hard disk in a different
location than the specified default, click the “Browse” button and navigate to the
appropriate folder.
9. Verify that the options selected are correct and click “Finish”.
The Virtual machine that was just created should appear in the Virtual PC Console
(Figure 4). Many of the settings for the virtual machine can be configured and modified
using the Settings Panel.
2. In the Settings Panel select and modify the appropriate settings (Figure 5).
Eac
h of the virtual devices and settings can be configured by selecting them and changing
the settings in the adjacent pane. For example, the amount of RAM allocated to4 the
virtual machine can be increased by selecting Memory and moving the slider to the
appropriate amount.
Note: The majority of the settings can only be modified after the Virtual PC has been
shut down. These settings take effect, the next time the Virtual PC starts up.
You may need to change the Boot Order in the BIOS settings in order to boot
from the CD-ROM. You can do this by pressing the Del key when the Virtual PC is
starting up (Figure 7).
Figure 7 – The Virtual PC’s boot screen
An ISO image can also be used to perform the installation, as Virtual PC allows you to
use ISO images as if it was a physical CD-ROM.
then the CD-ROM would be loaded into the physical machine and accessed through the
virtual machine’s virtual drive, similarly to when installing the guest operating machine.
In some cases you may need to access some network resources in order to install your
application. The process of connecting to the network is the same for both the virtual
machine and the physical machine. You can join the network by opening up the System
Properties in the virtual machine, selecting the Computer Name tab and clicking
“Change…”.
Licensing Information
While using virtual machines, you should ensure that each operating system and
application installed in the virtual machine environment is correctly licensed. In most
cases, you are required to purchase a licence key for each operating system and
application installed. Microsoft Windows Vista Enterprise Edition however gives users the
right to use a single license key within four additional virtual machines. For other
operating systems and applications please contact your software vendor.
Optimise memory usage – Virtual PC’s are heavily dependant on the memory
resources available on the host machine running them. Therefore, to optimise
7
memory usage, the memory footprint should be set to two-thirds of that available on
the machine on which it is run, if it is the only Virtual PC being run on the host
machine. Furthermore, all non-essential services and applications running on the
host machine should be shut down.
Use Virtual PC to test betas – Betas are perfect candidates for running on Virtual
PCs, as their fundamental function is to provide a baseline application that can be
tested for bugs and possible improvements. Betas can also be unpredictable and can
cause instability if they encounter a problem. Virtual PCs can be utilised for this
scenario, as they offer a secure and protected environment for carrying out testing
on betas without affecting the host machine.
Store the virtual hard disk on a separate physical disk to the operating
system – by storing the virtual hard disk on a separate physical disk or hardware
that offers better performance and fast access, you can significantly improve the
performance of the Virtual PC, as it will utilise the resources of the physical disk while
freeing up resources for the host operating system. For optimum performance, SCSI
hard disks, redundant array of independent disks (RAID) or a SAN should be used to
store the virtual hard disks.
Protect your virtual environment – the virtual environment mirrors any physical
operating system and is therefore vulnerable to the same viruses and malware that
affects any other operating system. Hence it is necessary to protect the Virtual PC
environment in the same fashion as the host operating system. This means installing
anti-virus protection on each virtual machine, enabling a firewall to block unwanted
incoming and outgoing traffic and installing the latest security patches and updates
to ensure that the virtual machine is protected against the latest security threats.
Backup the virtual machine – the virtual machine acts like any data storage
device and the associated virtual machine files should be backed up to save all of the
data and configuration settings of that particular virtual machine. The easiest method
for backing up the virtual machine is to simply backup the virtual hard disk onto a
secondary storage device. The process of restoring the image is just as simple.
Correct shut down procedure – before shutting down the host operating system,
it is vital that the virtual machine be shut down first. This is to ensure that no data
has been lost. Similarly when suspending the host operating system, the virtual
machine must be suspended first to avoid data loss.
Installing Virtual Machine Additions - Virtual Machine Additions are a set of
features that improve the integration of the host and guest operating systems. It also
improves the performance and manageability of the guest operating system. Some of
the special features included are mouse pointer integration, time synchronization and
overall improvement in the performance of the guest operating system.
Install the virtual machine additions by following these steps (Figure 16):
1. Start the Virtual machine by selecting the appropriate virtual machine in the
virtual machine console and clicking “Start”.
2. When the virtual machine window opens, click “File” and select “Install
virtual machine additions”.
3. You will be prompted for confirmation, click “yes”.
Configu
re performance settings for the virtual machine – Performance improvements
can also be experienced if the following settings are applied (Figure 17):
1. In the Virtual PC Console, click “File” and then “Options”.
2. In the Options window, click “Performance”.
3. Select both “All running virtual machines get equal CPU time” in the
right pane and “Run Virtual PC at maximum speed” and click “OK”.
To
e
nable hardware acceleration the following steps should be followed (Figure918):
1. Click “Start”, then “Run”, type desk.cpl and click “OK”.
2. Click “Advanced Settings”.
3. Open the “Troubleshoot” tab.
4. Click “Change Settings” and move the hardware acceleration slider to full.
10