Create a Test Lab: Geek School Without Breaking Your PC

Leveraging VirtualBox for Safe and Isolated Testing
The articles within our Geek School series often delve into complex topics. Implementing these concepts directly on your primary desktop PC isn't always advisable.
Instead, consider utilizing VirtualBox to establish virtual machines. This approach provides a secure environment for all your testing endeavors.
Benefits of Using Virtual Machines
VirtualBox allows you to network several virtual machines, simulating real-world scenarios. Provided your PC has sufficient RAM, you can thoroughly test configurations without altering your host system’s settings.
This method represents a significantly safer learning experience, protecting your main operating system from potential issues.
Prerequisites
Before proceeding, ensure you have the following components readily available:
- A copy of VirtualBox, downloadable from here.
- A Windows 7 ISO image, obtainable legally from Microsoft through one of these methods.
- A Windows Server 2008 R2 ISO image, which can be downloaded here.
Establishing Your Virtual Laboratory
Initially, the installation of VirtualBox is required. Given its straightforward, next-step installation process, we anticipate a swift and uncomplicated setup.

Upon completion of the installation, we can proceed to construct our first virtual machine instance.

As both client and server systems will be utilized, this initial machine will be designated as “Windows 7 (Client).” Select the Windows 7 operating system from the provided dropdown menu, and then proceed by clicking “next.”

Next, allocate an appropriate amount of memory to the VM. While a minimum of 512MB is sufficient, a larger allocation, such as the 2GB assigned in this instance, is recommended if your system resources allow. 1GB represents a sensible compromise.

A virtual hard drive must now be added to the VM. Select the “Create a virtual hard drive now” radio button and then click “create” to continue.

Several virtual hard disk types are available, but the VDI option is perfectly suitable for our needs.

From a hard drive performance perspective, fixed size disks offer a slight advantage. Given the need for optimal performance, selecting the Fixed size option and then clicking “next” is advisable.

The minimum recommended disk space for Windows 7 is 25GB. Increasing this to 30GB, if sufficient space is available, is a prudent measure.

With the drive creation process completed by VirtualBox, we are now ready to proceed.

Further configuration is still necessary. Before proceeding, select the “Settings…” option from the Machine menu.

Within the settings dialog, navigate to the storage section. Then, click on the empty IDE controller located on the right-hand side.

Look to the right and click the CD icon to insert a virtual CD\DVD drive.


Finally, proceed to the network section and modify the network settings from NAT to Internal Network. This step is crucial. Failure to do so will prevent the creation of a dedicated network for communication between your virtual machines.

Once these configurations are complete, you can initiate the machine startup process.


Upon booting, the virtual machine will function identically to a standard Windows 7 installation. To continue building your test environment, consider establishing one or two additional client machines (also running Windows 7) and a single virtual machine running Windows Server 2008 R2, in preparation for upcoming Geek School articles focused on Windows Server.
Network Configuration
To begin, initiate the Run dialog box on your virtual machine by simultaneously pressing the Windows key and the R key. Subsequently, type 'ncpa.cpl' and press Enter.

Locate your network adapter and right-click on it to access its properties.

From the list of protocols, select "Internet Protocol Version 4 (TCP/IPv4)" and then click the "Properties" button.

Switch the radio button selection to enable static IP address assignment. Then, configure your IP address to 192.168.1.1 and set the subnet mask to 255.255.255.0. Finally, click "OK" to save these settings.
Important: As you integrate each virtual machine into the network, increment the final digit of the IP address by one. For instance, the first virtual machine will utilize 192.168.1.1, while the second will be assigned 192.168.1.2. Maintain the same subnet mask (255.255.255.0) across all virtual machines.

Following these steps, you should successfully be able to ping each virtual machine from any other machine within the network.

This completes the network configuration process.