sam9s VMWare project! powered by ESXi Hypervisor

sam9s

Well-Known Member
Joined
Aug 25, 2009
Messages
5,245
Points
113
welcome to sam9s ESXi VMWare Project! to run all your servers/workstation from one machine

sam9s is back with another weekend project, which basically involves creating an ESXi server and running all your servers or workstations from it.

What is ESXi

ESXi is an enterprise-class, type-1 hypervisor developed by VMware for deploying and serving virtual computers. Virtual computers are nothing but virtual machines running an OS (windows, Linux, OSx, Android ...etc) just like you will on a physical machine/hardware. Difference is you are running it on a virtualized environment. Advantages are many, but mainly, to emphasize, if you have multiple computers/servers running at your home/office for different purpose, you can run all machines on one single hypervisor (ESXi in this case), and manage all machines from one location. One single dashboard. This saves you, your physical hardware plus makes it easy for you to test/experiment on any given OS for your needs.

What could be the need of Virtual Machines in a Home Entertainment scenario ..

Well, lets see, in the past couple of years since I have been a member of this forum, I have come across numerous occasions where we discuss the need to have a NAS, a media Server, simple file server etc etc. Particularly Media server, be it for Music or Movies or both. One of the advantages of running a virtual world is you can have multiple machines running all under one roof with only one physical machine running. So you can have one server for Movies and Music (like Plex or Emby) and one as a NAS (like OMV, Unraid or NAS4Free). Or dedicated one to one server for Movies and TV series (like Plex again) and another one for Music (Like Logitech Media Server or Daphile or Subsonic) and a third one acting as your NAS (Like Amahi 8). Possibilities are endless. You can have one Windows machine running for all your experiments or temporary tasks, like you want to test some application and you do not want to install it on your prime desktop/gaming machine. You can install it on your windows virtual machine and test it.

Today I will show you my Home Virtual Lab I created using ESXi and how am I running all the servers I need, in all its Glory.

Before we move ahead, a pic of my ESXi dashboard showing all the servers I am currently running.

6Zu37Wq.jpg


Ignore the 3 servers (domain, application and database) those are for my office purpose. Rest what I am currently using are .

Plex Server
Home Server
Radio-PC
Fedora Amahi Server.
VPN server


Plex Server/Radio-PC

For plex and Radio I was running a separate physical machine on Gigabyte E350N hardware, the problem with E350N is that the processor horsepower is not up to the mark for plex to do transcoding, and down conversion, hence the experience was not as smooth as I would have hoped for, especially while viewing media remotely via my tab/mobile. And one of the main reason of using plex is transcoding so I can view my media while I am on the go. Same reason I use Logitech media server for my audio need while I am on 3G. My LMS was running on a Rasp Pi, now its on ESXi

So what I did was to uninstall my plex from E350N machine and created a new virtual Ubuntu Server on ESXi (which has a much much better hardware). This Made Plex much more powerful and transcoding ran with its full glory.

Next what I did was to convert my physical E350N computer to virtual ESXi compatible machine and transferred it to my ESXi server (yes you can do that, you can turn any running physical machine to virtual to make it run via VMWare.) This not only freed my one physical machine, but brought it under one roof to be able to manage more effectively. This took care of my Radio PC part. If you remember I run my own Radio Station (sam9sradio). This is on a windows server.

Home Server

Home server is nothing but a generic Ubuntu server 64 bit that I am running. At present it is hosting the Logitech Media Server,(which earlier was running on RPi) but I am planning to run a Mail Server and a Linux based OpenVPN server on it in future. Plus I might also use this linux machine to learn few CLI commands to make my life more linux friendly ..:)

VPN Server

Running a VPN server is very important if you plan to access your home network and resources from internet. Not only it makes it more secure, it also brings everything accessible from within your home network, no need for any dependency on any DDNS service. I initially decided (and I might go with it in future) to have an OpenVPN server running on Ubuntu, but that is far too complex and difficult to configure. So for the sake of simplicity and since I was already running a Domain server I decided to make my already running windows server 2012 machine into a VPN server as well. Another advantage of this approach is, since I am running ADDS on server 2012. Control and authentication of who and how to access my VPN became more controlled and secure.

Fedora Amahi 8

Well this is just for testing, I just wanted to see what Amahi Home Server is, and the best way to do this is via VM. What I think of Amahi is for another discussion or thread, but people interested can visit Amahi Home Server - Making Home Networking Simple

Getting the ESXi running

Below is the hardware I am running my ESXi on.

Core i7 2600K@4Ghz
16GB 1600 Mhz DDR3 GSkill
1 TB HDD for VMs
32GB SSD OR
8GB Pendrive for the OS (ESXi)


Before you venture into the world of VMWare or ESXi, you need to understand that more beefy your system is, better and more VMs you can run effectively. A Quad Core 2.0+ Ghz cpu is bare minimum and the more RAM is at your disposal, better it is for your VMs. Again 8 GB is bare bare min, but 16 GB is a good start. 32GB will the sweet spot if you ask me.

Getting the software ESXi package .

Head over to .

https://my.vmware.com/group/vmware/evalcenter?p=vsphere6&src=vmw_so_vex_pbrar_70

and download two files ..

1. ESXi ISO image (Includes VMware Tools)
2. VMware vSphere Client


You need to be registered and activated in order to get ESXi downloads and free license. Please do it.

Checkout the below snap.

oWkZWrK.png


Apart from this you would need two more apps to start the ESXi implementation.

Rufus
Putty

If you are using windows 7 then you also need to install some kind of mounting application to mount the ISO file. I use virtual clone drive, you can use WinISO or DAEMON lite, or any ISO mounting app.
If you have windows 8 + then you can mount the ISO natively.


The Procedure, Deploying ESXi .

Assuming you have the two files that we downloaded in the steps above

Insert the pen drive on a separate desktop/laptol available. Mount the ISO
VMware-VMvisor-Installer-6.0.0.update01-3073146.x86_64.iso Fire up Rufus. Make sure you have Pen drive selected under Device Select the ISO from under format. Rest of the setting should be exactly like the image below

Click on start and create the Boot Disk

rTmkk0P.jpg


Now we are ready to insert the pen drive in to ESXi server and make the machine boot from it. Before we do that just couple of things you need to take care off. Go into the BIOS of your machine and make sure the below two things are enabled.

Intel Virtualization Technology
No execute memory protection
and of course Boot from USB should be enabled also.


Once this is all done power on the machine and let it boot from Pendrive. There are couple of entries you might want to do. Change the IP to static and also provide a hostname to the server along with a Fully Qualified name.

Go to configure management network.
ipv4 configuration
set static ipv4address
Choose as address that belongs to your home network ip pool,and is NOT taken by any other device. (192.168.x.y)
Then move to DNS configuration and change the hostname to esxi
Then choose a custom suffix DNS, like I have lab.local for my ESXi Host.


For some supporting images of the installation you can go to

ESXi Deployment - Album on Imgur

Thats it the hypervisor is ready. Next step is to install, the VMWare desktop client to manage the hypervisor.

Double click VMware-viclient-all-6.0.0-3016447.exe
Let the setup run by default next next selection
Complete the setup and open the vsphere client.


When you open vsphere client you need to put the credentials and ip you provided while configuring ESXi hypervisor. Once done you will be presented with the console.

js2A6k7.jpg


V3joLNK.jpg


You can start creating VM and start managing data stores, but this is not what I have done VMWare has introduced a web client (still in beta stage) to manage your VM and everything. That is what I have been using and that is what I will suggest you do as well. The reason being the vsphere desktop client will be phased out pretty soon and only web client will be supported.Plus web client is super fast and responsive, unlike desktop client

Before we move ahead to install web client, I would suggest to create atleast one data store using the existing vsphere desktop client .

Creating a datastore :: A datastore is a place on your HDD where all your VMs and ISO files are stored (ISO are the setup ISO created by your OS setup disks (windows,linux etc)

The procedure is nicely explained in this video ...

https://www.youtube.com/watch?v=8srGqgIcsqs

Now we have the data store installed let's install the web client.

To install web client we need a program called putty (that we downloaded earlier). Using putty we will log in to the CLI of ESXi. Fire up putty and put the ip of your ESXi server under ip and simply click connect. You will be asked to accept the SSL which once done you will be presented with the login prompt. Put the credentials you created while installing ESXi (same with which you logged in to vcenter client). You will be presented with the CLI command prompt.

IAouCpM.jpg


Past the below command and press enter to install the Web GUI for vcenter client

esxcli software vib install -v http://download3.vmware.com/software/vmw-tools/esxui/esxui_signed.vib

Once the install is complete simple open your browser and enter the below url

https://youresxihostip/ui (example https://192.168.x.y/ui)

You will be presented with the login screen, put the credentials (same while creating ESXi and same used to log in to vcenter desktop client)

0BmkkLV.jpg


Creating VMs ..

Before we start creating VM we have to do couple of basic activities

Upload ISO to a datastore :: A datastore is a place on your HDD where all your VMs and ISO files are stored (ISO are the setup ISO created by your OS setup disks (windows,linux etc)
Click on storage
Click on datastore you created.
Click on datastore browser.


Here you find all activities you can do like upload files and create folders etc. I would suggest to create an ISO folder and upload all OS ISO to it. Check out my folder structure.

wnwa7n7.jpg


Creating your first VM .

Well instead of sharing snaps, created a small video for the same.

https://vimeo.com/154181581

This way you can create as many VM as you want, depending on the resources you have at your disposal your ESXi can manage unlimited number of VMs .

For any queries and suggestions, start filling the thread :)

Regards
Sammy
 
You will get, the license information at the download location .... check out the below snaps. Please also note that the web client that you install from CLI, is in beta and does not support the free license for now. So you might want not to install the web version and work with desktop client, and install the license via desktop client.

Also note that if at all you install the web client, you would not be able to fully use the desktop client. Full functionality via desktop client becomes limited once you install the web client.

Having said that web client is super fast and super responsive, and once you do use web client you would never want to go back to desktop client ...:)

Whq8tt0.jpg


k4hr7ML.jpg
 
evening friends, appears not many were interested to run multiple servers on Home Network. Anyway since I was already running ESXi and have the option to test run any server I want without the headache of assembling the hardware. I wanted to give a shot to some on my earlier server projects that I installed used for a day or two and for some reason rejected them. Two the projects came in to my mind and I decided to try them out again .....

1. DAPHILE
2. SUBSONIC.


DAPHILE is a fork of LMS, but with added advantages like support for DSD. DOP, etc. But for me the major advantage was that DAPHILE installs like a stand alone OS via and ISO file and does not need an underlying OS running for the same, unlike LMS.

I installed DAPHILE, on on my own VMs and started using it, unfortunately, with time I realised, DAPHILE is very unstable, probably on VM I am not sure, but the OS either kept crashing or got stuck in loop. Had to remove it after a use of couple of days.

SUBSONIC. :: yesterday I tried subsonic, which is also kinda like LMS in its approach, but very different in its UI and working. Plus SUBSONIC also supports video, unlike LMS.

I just loved the UI, and the themes you can opt. The Main reason I love LMS is coz of its unprecedented transcoding and downsampling support. LMS has been my one choice for music listening while on 3G or even on low bandwidth options like TataPhoton.

SUBSONIC really performed well on the transcoding part. Its not superbly good as LMS, coz I did get few (mind you only few) hiccups on music streaming while transcoding over 3g, but over all it was a good experience. (LMS is king though only when it comes purely to transcoding). I tested only on the AUDIO part. Since I am also already using PLEX (which works wonders when it comes to Transcoding video) I did not try that on SUBSONIC. (If anyone is interested I can give it a shot. ). But where SUBSONIC scores over LMS is the UI and features, like Media Sharing on the fly, podcasting, bandwidth control for downloads, upload music directly from UI. Multi user support (I loved this), LDAP auth, Themes, ability to use built in DDNS (like mine is (sam9s Subsonic)... ...etc etc and lots more, makes subsonic a really good music server.

Where is lacks is limited, infact only couple linux based headless clients for the same. LMS has many, like my fav PiCorePlayer. Subsonic though has truck loads of clients for windows/mac, chrome plugins and Android/iOS. It seriously lacks the same for Linux and headless Linux ......

Anyway people interested can give it a shot and try. Few images before I close out this post.

Remember this is SUBSONIC running on my HomeServer headless linux machine, also running LMS ...

1. Subsonic running on browser chrome

r50eeBy.jpg


2. Subsonic running as chrome HTML5 plugin

BIlV6jJ.jpg


3. Subsonic running as windows desktop application

42McXUk.jpg


Regards
Sammy
 
Last edited:
Sam,

[emoji106] kudos for all your setup...

When running multiple VM's, is your cpu stable? (when your servers are loaded! ) could you able to work without any lag in your native Windows applications ?....



Cheers.
 
well on behalf of all dumbos...didnt understand a word of what you typed..except (a) the album art and other stuff on subsonic image looks cool and I did to go to your radio station and heard mohit chauhan croon pee loon :licklips: you pay royalties?
 
Sam,

[emoji106] kudos for all your setup...

When running multiple VM's, is your cpu stable? (when your servers are loaded! ) could you able to work without any lag in your native Windows applications ?....
Cheers.

there is no native windows ...:) this is headless remember. No underlying OS. All its running is ESXi server. We then create VMs by installing what ever OS we want to and can use them as desktop clients or server....:)
 
well on behalf of all dumbos...didnt understand a word of what you typed..except (a) the album art and other stuff on subsonic image looks cool and I did to go to your radio station and heard mohit chauhan croon pee loon :licklips: you pay royalties?

lol...:D Its not that bad ..:) I mean technically I have kept it to as much as layman language as possible. Installing it ...yes might take some read and knowledge, but its not rocket science :)....and the reward of running multiple machines is priceless.......

I will soon be testing all Chrome OS version available/floating online and will share the experience and review it as well .....
 
there is no native windows ...:) this is headless remember. No underlying OS. All its running is ESXi server. We then create VMs by installing what ever OS we want to and can use them as desktop clients or server....:)


Ooh... That's a stand alone server, cool...
Let me have a look in to it.
 
I installed DAPHILE, on on my own VMs and started using it, unfortunately, with time I realised, DAPHILE is very unstable, probably on VM I am not sure, but the OS either kept crashing or got stuck in loop. Had to remove it after a use of couple of days.

Daphile is pretty stable for common usage. It doesn't even need installation. It can be run live off an USB without installation. The issues you had were likely virtualization related. Check out this post where I have explained how to install/run Daphile. A number of people on the forum are running Daphile and happy with it.

Disclaimer: I have no stakes in Daphile. Just want a good piece of software to be seen in light it deserves.
 
Awesome.. Kudos to all your hard work and putting up here.. Hats off... Thanks a lot...
 
@sam9s - simple newbie question. i currently am (or, was) using LMS installed on my PC, to stream music (wired connection) to my squeezebox classic. could i replace LMS with subsonic? the former takes a lot of time to update database if i add some files to the music-folder.
 
Last edited:
Daphile is pretty stable for common usage. It doesn't even need installation. It can be run live off an USB without installation. The issues you had were likely virtualization related. Check out this post where I have explained how to install/run Daphile. A number of people on the forum are running Daphile and happy with it.

Disclaimer: I have no stakes in Daphile. Just want a good piece of software to be seen in light it deserves.

I would still prefer/recommend LMS over daphile.(if DSD or DOP is not what you are after), even though I could not pinpoint the cause of its weird behavior. Running on a VM is very important factor these days, atleast for people like me, who would love to have multiple servers/workstations, for various reasons running all simultaneously 24x7.
I am sure you understand if you have been even remotely noticing me on this forums... that I am way past the "how to install phase" of an application:) be it windows or linux ...:) but thanks for the link anyway.

I will give another shot to daphile to try to pinpoint the cause. But for now since LMS is also running along with awesome subsonic, I dont feel the need/room for Daphile.

For others if DSD is not what you are after and can do with FLACS, LMS still is the king. LMS plays files as high as 24-384Khz, without skipping a beat, and transcodes it as well exceptionally well.
 
Last edited:
@sam9s - simple newbie question. i currently am (or, was) using LMS installed on my PC, to stream music (wired connection) to my squeezebox classic. could i replace LMS with subsonic? the former takes a lot of time to update database if i add some files to the music-folder.

Yes you can but there are some adv and some limitations for both the applications. With subsonic you would not be however able to use squeezebox classic, you will have to find a different client for the same. Either install subsonic on Rasp Pi and play from it or install it on a separate server (linux or windows) and use rpi as a client or you can have it as a UPnP/Airplay renderer by passing music to it from your laptop or mobile

Actually depends what you are looking for. BTW the media scanning of subsonic is much much faster than LMS, that I can say easily. Personal experience with around 15000+ songs in the library ...
 
Last edited:
The Marantz PM7000N offers big, spacious and insightful sound, class-leading clarity and a solid streaming platform in a award winning package.
Back
Top