In this 7th post of the Home Server series, after having configured a SSD drive, a working ESX environment and the RAID disks, let’s create our first virtual machine based on Debian Linux.
For the goal we want to achieve (hosting a web server, our personal files, personal streaming server, …) we do not even need the graphic environment. Therefore, I like to do it on a Linux (in this case, Debian is my personal choice) with the minimum installed so that we save resources and space and, in turn, be more secure (basic security best practice: just install the install the minimum required services). Lets go!
Download Debian ISO image
The images are from a little while ago but the installation will be exactly the same. We started by downloading the ISO image from the Debian website:
https://www.debian.org/CD/netinst/
Specifically, I used the amd64 architecture iso, which at the moment of publishing this post is:
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.8.0-amd64-netinst.iso
Upload ISO to datastore
Once downloaded, lets upload the file to the datastore. Select the datastore in which you want to upload it, and click no “Datastore Browser” option.
I recommend using the SSD drive based datastore
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-0.png)
(The pictures are only showing a single create datastore because I create the RAID array and the datastore based on it after creating the virtual machine)
Create f.e. a ISO directory and upload the ISO.
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-0-0.png)
Create Virtual Machine
Lets start with virtual machine creation process. In “Virtual Machines” section, click “Create / Register VM”.
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-1.png)
Select the “Create a new virtual machine” option
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-2.png)
Name the virtual machine, and select de OS family (Linux) and version (debian GNU/Linux 9 (64-bit)).
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-3.png)
Select the SSD based datastore
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-4.png)
In the hardware configuration:
– CPU and memory can be changed after created and installed the Linux, so no problem.
– The DISK can also be extended (it depends on enabling Linux LVM that we’ll see a bit later in this post).
– Disk provisioning: I recommend the thick provisioned (so that the virtual machine file size does not provision the configured space from the beginning, but the used one).
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-5.png)
Dont forget to connect the network adapter to your single VM Network and the CD/DVD Drive to the Datastore ISO file that was downloaded in the previous step.
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-6.png)
After checking the summary of configurations, click the “Finish” button:
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-7.png)
Now you can “Power on” the virtual machine to start with the Debian Linux OS installation:
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-8.png)
Debian Linux Installation
Before starting, dont forget to adapt the ESX console window to your keyboard layout in case you don’t use English layout
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-9.png)
I usually choose the standard installation (instead of the graphical one)
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-10.png)
Basic settings (location and passwords)
Language
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-11.png)
Location
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-13.png)
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-12.png)
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-14.png)
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-15.png)
Keyboard layout
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-16.png)
Network hostname
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-17.png)
Network domain
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-18.png)
Set root password
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-19.png)
Set user account full Name
![](https://somoit.net/content/images/2019/03/VM-Debian-20.png)
Set user account name
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-21.png)
Set user account password
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-22.png)
Time zone
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-23.png)
Disk partitioning
Choose between:
– standard (Guided – use entire disk)
– LVM (Guided – use entire disk and set up LVM).
For a testing or lab machine use the standard partitioning. But for a “production” machine i encourage you to use LVM because that allows to extend the partitions size in case you need more free space.
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-24.png)
Select the disk (the one VMWare presents)
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-25.png)
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-26.png)
Write the changes and configure LVM -> Yes
![](https://somoit.net/content/images/2019/03/VM-Debian-26_2.png)
Here you can see how the guided partitioning has mapped the the partitions.
Click Finish partitioning and write changes to disk
![](https://somoit.net/content/images/2019/03/VM-Debian-26_3.png)
Reconfirm
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-26_4.png)
Software installation
Do not scan another CD
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-28.png)
Select a nearby country
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-29.png)
Probably you can continue without proxy if not in a corporative environment
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-30.png)
Depending on your needs you can choose software collections. I usually choose “standard system utilities” + “SSH Server”. In case i need more extra software (like a web server) I install it manually after OS installation.
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-31.png)
Yes, install GRUB in the MBR
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-32.png)
Yes, install it in that disk
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-33.png)
Continue
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-34.png)
And thats all!
Now, after rebooting, the GRUB menu will show up and your recently installed Debian Linux will boot up.
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-35.png)
VMWare Tools
In the virtual machine general information you can see the VMWare Tools are “Not installed”
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-37-VMWare-tools_1.png)
To install them, simply install the open-vm-tools package.
apt-get install open-vm-tools
Before installing the package, if you still havent done before, update the package list by executing…
apt-get update
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-37-VMWare-tools.png)
After installing, the VMWare tools shoould show the “Installed and running” message
![Install Linux Debian in VSX](https://somoit.net/content/images/2019/03/VM-Debian-37-VMWare-tools_2.png)