Palegray.net - Code, Linux/BSD, Tech, and more
Home Projects Tutorials Forums About Contact

Debian 6 (Squeeze) KVM Virtualization Howto

Install a Debian 6 Desktop System in VirtualBox

Upon launching VirtualBox, you'll be greeted with a welcome message. Click the "New" icon to continue.

VirtualBox welcome screen.

New VM introduction screen in VirtualBox.

Enter a descriptive name for your Debian 6 workstation VM, select "Linux" for the operating system, select "Debian" for the version, and click "Continue" to proceed.

Naming a new VM in VirtualBox.

Assign a reasonable amount of memory to your VM. For a basic, light-duty workstation environment, 512 MB should be sufficient.

Assigning memory to a new VM in VirtualBox.

Create a new hard disk for your VM, specifying fixed-size storage and allocating approximately 5 GB of space to it.

Adding a hard disk to a new VM in VirtualBox.

Specifying a fixed-size hard disk for a new VM in VirtualBox.

Specifying the size of a hard disk for a new VM in VirtualBox.

Settings for a hard disk for a new VM in VirtualBox.

Once your new VM has been created, you'll be presented with an overview page describing its initial settings. Click the "Settings" icon to customize it further.

New VM settings overview in VirtualBox.

On the "Display" tab, adjust the virtual graphics card to use 32 MB of memory.

Graphics card memory settings in VirtualBox.

On the "Storage" tab, attach your previously downloaded Debian 6 ISO image to the CD/DVD drive device.

CD-ROM ISO image settings in VirtualBox.

On the "Audio" tab, you may disable the audio device, as it won't be required for VM management.

Audio device settings in VirtualBox.

On the "Network" tab, you may select either "NAT" or "Bridged networking" for network communications. NAT will create a virtual network local to your host workstation operating system, and the bridged option will make your VM appear as if it is a separate computer on your local network (by "piggybacking" on your workstation's wired or wireless network interface). If you're in doubt, the "NAT" option is perfectly fine for the purposes of this tutorial.

Network device settings in VirtualBox.

Once you've finalized all settings, boot your new VM up. You'll be greeted with the Debian 6 installer splash screen. With "Install" selected, press "Enter" to continue.

Debian 6 installer splash screen in VirtualBox.

Select a sensible hostname for this system ("kvm-management" is used in this example).

Hostname setting in Debian 6.

For disk partitioning, select the "Guided" option, choose your virtual disk, specify that all files should be stored in one partition, and confirm your choices.

Guided partitioning selection in Debian 6.

Disk to partition in Debian 6.

File allocation in partitioning in Debian 6.

Disk partitioning overview in Debian 6.

Disk partitioning confirmation in Debian 6.

The base system will take a few minutes to install; prepare yourself a nice cup of your favorite beverage.

Base system installation progress in Debian 6.

When asked about software to install, select the "Graphical desktop environment," "SSH server," and "Standard system utilities" package groups.

Software package groups to install in Debian 6.

The system will take another few minutes to retrieve and install your requested packages. This is a good time to grab a tasty snack to go with your beverage.

Software retrieval progress in Debian 6.

Instruct the installer to install grub to your virtual hard disk's master boot record.

Grub installation in the master boot record in Debian 6.

This concludes the base system installation for your KVM management workstation environment. At the end of the installation process, your VM will be rebooted.

Continue: Install and Configure virt-manager on the Workstation
Previous: Install VirtualBox on the Management Workstation