Fundamentals of Virtualization · Lesson 5
Installing Windows on a Virtual Machine
Install Windows from trusted media, add guest integration, inspect virtual hardware, and optimize a Windows VM for supportable performance.
Lesson purpose
Installing an operating system in a virtual machine follows the same basic logic as installing it on a physical server, but the installer works with virtual hardware presented by the hypervisor. This lesson uses a Windows installation to connect the familiar operating-system process to virtual-machine configuration, guest integration, resource inspection, and optimization. The central classroom rule is: the installer can use only the CPU, memory, disk, firmware, and devices allocated to the VM.
Learning objectives
By the end of the lesson, students should be able to:
- Prepare trusted Windows installation media and select a virtual boot device.
- Install Windows into a VM while distinguishing virtual disks from the host’s physical disks.
- Explain what VMware Tools and comparable guest-integration packages do.
- Identify evidence that a system is virtual and compare guest-visible resources with host resources.
- Reconfigure VM memory safely and explain when a reboot or hot-add is required.
- Apply a lean, measured optimization process to a Windows VM.
1. Prepare the operating-system installation
A VM needs an operating system before it can run applications. The installation source may be physical media, such as a DVD, or an ISO image that the hypervisor presents through a virtual CD/DVD drive. An ISO image is a file containing the contents and structure of an optical disc. It is convenient for labs, but it should come from a trusted source, match the required edition and architecture, and be checked against licensing and integrity requirements.
The book’s walk-through uses a 64-bit Windows 10 ISO and VMware Workstation Player. Treat that as an example path, not a current product requirement. In a real deployment, verify that the selected Windows release, hypervisor version, guest tools, firmware mode, drivers, and licensing are supported together.
Before starting, confirm:
- The VM is powered off and has an appropriate firmware mode.
- The installation ISO is available and trusted.
- The VM has enough memory, CPU, and disk space for the guest and its intended workload.
- The virtual CD/DVD device is connected to the selected ISO.
- The host still has enough resources to remain usable while the VM runs.
Ask students: if the installer reports a 30 GB disk, is it seeing the host’s entire physical disk? No. It is seeing the virtual disk the hypervisor presents.
2. Install Windows in the VM
The installation sequence resembles a physical-server installation:
- Open the virtualization application and select the intended VM.
- Open the VM settings and connect the virtual CD/DVD device to the Windows ISO.
- Power on the VM and allow it to boot from the ISO.
- Start Windows Setup, accept the license terms, and choose a custom installation for a new VM.
- Select the intended virtual disk and let Setup partition, format, and copy files to it.
- Allow the VM to reboot as required. If it boots back into Setup, disconnect the ISO or change the boot order.
- Complete first-run configuration, create an appropriate local or domain identity, and apply network and security choices deliberately.
The example creates one 30 GB virtual disk and assigns 2 GB of memory. Those values are teaching examples, not universal sizing recommendations. A lab VM may work with small allocations, while a production application requires sizing from documented requirements and observed workload data.
The installation may offer express settings, network sharing, or similar convenience choices. In a classroom, explain what each choice changes rather than clicking through automatically. In production, apply the organization’s baseline for updates, identity, firewall behavior, privacy, and endpoint protection.
3. Install guest integration tools
VMware Tools combines guest device drivers and services that improve the interaction between the guest and VMware’s virtual hardware. Comparable packages exist for other hypervisors, including VirtualBox Guest Additions. Common benefits include:
- Better display and mouse behavior.
- More capable virtual storage and network drivers.
- Time synchronization and clean shutdown or restart support.
- Better status reporting and management visibility.
- Optional host-guest features such as shared folders or clipboard integration.
The example installs VMware Tools from the hypervisor’s management menu, accepts the typical setup, and restarts the guest. The exact menu labels vary by product and release. Students should learn the concept and the validation step, not memorize one obsolete click path.
Guest tools are recommended, not a substitute for security or patching. They are software with their own update and support lifecycle. Features that share folders, clipboard contents, or devices across the boundary can weaken isolation, so enable them only when the lab or business requirement justifies them.
4. Inspect the virtual machine from inside and outside
A VM can look like a normal Windows desktop while exposing clues that it is virtual. VMware-specific drivers and device names are legitimate to Windows but reveal the virtualization platform. Examples include virtual USB devices, virtual SCSI controllers, virtual sensors, and guest-tool services.
Use two views when teaching inspection:
- Inside the guest: Windows reports the vCPUs, RAM, virtual disks, adapters, firmware, and drivers presented to it.
- At the host or hypervisor: the administrator sees the VM configuration, backing files, datastore or folder, power state, host contention, and physical capacity shared by neighboring VMs.
Compare values rather than assuming they should match. The example guest sees 2 GB of RAM and a 30 GB C: drive, while the physical host has more memory and a larger physical drive. The difference is the point of virtualization: the guest receives a controlled view of a larger resource pool.
Do not use one clue as absolute proof. The presence of VMware Tools is evidence of virtualization, but its absence does not prove that a system is physical. Use several signals such as device names, system information, management data, firmware, and backing storage.
5. Reconfigure memory safely
Virtualization makes many hardware changes much faster than physical-server changes. In the example, the VM’s memory is changed from 2 GB to 1.5 GB by entering 1536 MB in the VM settings. The hypervisor can change the configuration quickly, but the guest operating system may not recognize the change until it restarts.
Keep these distinctions clear:
- Configured memory: the amount the VM is told it has.
- Consumed or resident memory: the amount currently backed by host resources.
- Host capacity: the total memory available to the physical system after the hypervisor and other workloads are considered.
- Hot-add: adding resources while the VM remains powered on, when both the platform and guest OS support it.
Adding memory to a physical server may require hardware installation and downtime. A VM often needs only a settings change, but fast reconfiguration does not eliminate the need to check capacity, application requirements, licensing, and performance. Removing memory or changing a guest that lacks hot-add support generally requires a planned shutdown and reboot.
6. Optimize a Windows VM
A generic installation contains services and visual features intended for many physical-computer scenarios. A server-oriented VM may not need wireless networking services, desktop power-management behavior, wallpapers, screen savers, elaborate visual effects, customized sounds, or other personalization. Removing what the workload does not need can reduce CPU, memory, disk, and I/O use.
Use a controlled optimization process:
- Identify the VM’s role and its required services.
- Capture a baseline of CPU, memory, storage, network, startup time, and application response.
- Disable or remove only components that are unnecessary and documented.
- Patch the guest and guest tools.
- Test the application, management, backup, security, and recovery functions.
- Record the resulting template or build standard so the same changes can be reproduced.
Do not apply a generic “optimization guide” blindly. A service that is unnecessary for one application may be required by another. Validate changes, keep a rollback path, and prefer current vendor guidance over the older Windows 7 and Windows 10 examples in the text.
Classroom application
Have students create or inspect a lab VM and document the following:
- The installation source, checksum or trust decision, firmware mode, and virtual boot device.
- The virtual CPU, memory, disk, and network values before installation.
- Evidence from Windows that the system uses virtual hardware.
- The difference between the guest’s visible resources and the host’s resources.
- One safe configuration change and the event, such as a reboot, needed to make it visible.
- One proposed optimization, the reason it is safe for the workload, and the metric that will prove its effect.
Checks for understanding:
- Why does disconnecting the ISO matter after the first reboot?
- Why can a guest have a 30 GB virtual disk while the host stores it in a much larger physical volume?
- What could break if two cloned Windows VMs are connected with the same hostname or identity?
- Why should a VM be measured before and after optimization?
Common misconceptions
- “Installing a VM is different from installing a physical server.” The operating-system workflow is similar; the key difference is that the hypervisor supplies the hardware view.
- “The guest’s disk size equals the host’s disk size.” A virtual disk is a logical device backed by files, volumes, or services.
- “VMware Tools is the operating system.” Tools is a guest-integration package, not Windows and not the hypervisor itself.
- “More allocated memory always improves performance.” Excess allocation can waste host capacity and create contention elsewhere.
- “Optimization means disabling as much as possible.” Optimization is workload-specific, measured, documented, and reversible.
Lesson summary
Windows installation in a VM follows the familiar physical-server sequence, but every device is virtual and limited to the allocation made in the hypervisor. Trusted ISO media, correct boot settings, a supported guest OS, and post-installation validation produce a usable starting point. Guest integration tools improve drivers, management, and performance, while inspection from both the guest and host reveals how abstraction works. Virtual hardware can be reconfigured quickly, but hot-add support and guest behavior still matter. A lean Windows VM comes from measured, workload-specific changes that protect security, manageability, and recovery while reducing unnecessary resource use.
Course Notes