Install Debian Virtual Machine in VM Workstation Player

Debian-OpenLogo.svgInstall Debian Virtual Machine in VM Workstation Player to have a development environment for testing new software and guides. I make a lot of tutorials here for Debian and Ubuntu, the key to my workflow is having virtual machines I can easily restore to a fresh install state. To make things even easier with multiple virtual machines I have Debian send me a Pushbullet notification with its IP address. The final cherry is using VM Ware tools so I can share my physical host machine's folders with the virtual machine.

Install Debian Virtual Machine in VM Workstation Player

Download the latest Debian net installer, 64-bit is usually best as some custom repositories have dropped 32-bit support like Varnish.

Under the Small CDs or USB heading click amd64 to download the 64 bit version of Debian

You will use this ISO to install a basic Debian install in VMWare.

Create the Debian Virtual Machine in VMware

Open VMware Workstation Player and click Create a New Virtual Machine

vmworkstation-player-create new virtual machine-1

You will see a friendly wizard, browse to the Debian 8 ISO you just downloaded.

wizard 1

Choose a name for the Virtual Machine and click Next

vmworkstation-player-create new virtual machine-2

Choose the amount of disk space, note that the 20 GB here will not be immediately taken up. It is just the total amount of provisioned space.

Leave the virtual disk as split into multiple files.

vmworkstation-player-create new virtual machine-3

Make sure Power on this virtual machine after creation is checked and click Finish

vmworkstation-player-create new virtual machine-4

Installing Debian

After you power on the virtual machine you will get this initial screen, choose Graphical Install and click Enter

Note: if you are stuck in the VMware Debian console, you can press the Ctrl+Alt keys to unlock your mouse from the console

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-1

Select your language and click Continue

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-2-select-language

Select your geographic location to ease choosing the system locale and time zone

Click Continue

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-3-select-location

Select your keyboard layout and choose Continue

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-4-select-location

Enter your hostname so you can easily identify the Debian virtual machine

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-5-hostname

Leave your domain name blank unless you use Active Directory or some other LDAP server

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-6-domain-name

Choose your root password which you will use for SSH terminal access later.

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-7-root-password

Debian recommends using a regular user for non-root activities so choose a regular user name for the account

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-8-regular-user

Choose a password for your regular user

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-10-user-password

Select your time zone

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-11-timezone

For partitioning disks just select Guided – use entire disk

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-12-partition-disks

Select your virtual disk and press Continue or Enter

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-13-partition-disks

For the partitioning scheme just use All files in one partitions

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-14-partition-disks

To finish writing the partition changes to the virtual disk choose Finish partitioning and write changes to disk

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-15-parition-finish

Because changing partition information is a pretty big deal you get one final warning, choose Yes

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-16-parition-write

Debian will install the base system

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-17-installing-base-system

Debian has software repositories all around the world donated by universities and other institutions, ideally you should choose the country closest to you

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-18-package-manager-location

You can choose ftp or http, I tend to use ftp

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-19-ftp-or-what

Unless you know you use a proxy, leave it blank

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-20-proxy-server

Debian can gather anonymous information about the software packages you use from the Debian repository

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-21-popularity-contest

Now that the Debian base system is installed on your virtual machine you can choose some optional packages. I always choose SSH server and standard system utilities.

If you want a desktop environment you can choose between GNOME, Xfce, XDE, Connamon, MATE and LXDE.

Since I use SSH to run all commands I will not waste any space on a Desktop environment

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-22-choose-packages

You need a boot loader so you can load Debian so choose Yes

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-23-grub

The GRUB boot loader allows you to choose the boot device manually or automatically, since there is only one select /dev/sda which is your primary hard disk.

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-24-grub-select-device

To completely finish the installation choose Continue

Install-Debian-Virtual-Machine-VM-Workstation-Player-step-25-done

Now Debian is installed and fresh. I recommend taking a backup of it so you can easily restore when you make a mistake.

After taking a backup you can install the Debian VM Tools so you can share folders between your virtual machine and your physical host computer. If you installed a desktop environment it will also enable you to drag and drop files between the virtual machine and host computer as well as sharing your clipboard for easy copy and pasting.

In the paid version of VM Workstation you can clone virtual machines easily, there is a simple workaround for the free VM Workstation Player.

If you use Pushbullet you can even set up notifications to get the IP address of the Debian virtual machine when you turn it on with this tutorial.