Wednesday, January 21, 2009

Accessing the VMware ESXi Hidden Console

I have lately installed the free version of the VMware ESX server, namely VMware ESXi Server. I was taken a back seat when I was told that the ESXi edition does not have a service console, which is good, but there are times when you need to perform some troubleshooting. There are many benefits not having the service console – less overhead, fewer patches, and greater security. With ESXi, the “console” is a simple yellow and black menu driven text interface with only the most basic options. However, lately I found out that ESXi actually has an extremely thin linux-based console that can be accessed.

With the full version of VMware ESX Server, that has been available for years, there is a special “virtual machine” that runs a modified version of Red Hat Linux Enterprise. That special VM is called the service console and is used to administer the ESX host system.

Officially, VMware says that you should administer your ESXi server using either the VI Client or the CLI VMware RCLI. Thus, if you want to perform commands and scripting on your ESXi server, you need to install the remote command line interface on your Windows PC.

However, there is another CLI interface for ESXi that can be used to run commands directly on the server. This is in contrast to RCLI where the command is run on your local management PC and connects to the ESXi host over the network. The difference is that with RCLI, you cannot, say, edit a remote file as you could do if you were using the traditional ESX Server service console.

Thus, the only way to edit a file like /etc/hosts or /etc/inetd.conf is to access this hidden & unsupported thin linux interface and edit these files with vi. Also, with the ESXi hidden console, you can run commands like esxtop, esxcfg-route, and vmkfstools. Isn't this great!

How do I access the VMware ESXi hidden Console?

Accessing the hidden & unsupported ESXi console is not difficult if you know how to do it. However, if you do not know how to do it, there is no menu option or easily accessed help file that tells you how to access it.

To access the hidden & unsupported ESXi console, you must go to the console of the server. You cannot access this console via RCLI, RDP, the VI client, or other method. The only way to access the ESXi console is to go to the console of the server.

Once you are on the server’s console, press Alt-F1.

At that point you will see a console log of what has happened on the server but there is no prompt and no help file available. If you type something, it will not appear on the screen.

What you need to do is to type the command unsupported and press enter. his will not appear on the screen. When you do this, here is what you will see:

This activates what VMware called “Tech Support Mode”. As the warning says, this is unsupported unless you are using it with help from VMware Tech Support. Because of this, neither VMware nor I can make any warranties if, by using this interface, something unexpected happens to your ESXi Server. Because of that, you should only do this on a TEST system.

Now, type your ESXi Server root password.

At this point, you are successfully logged into the hidden ESXi console. So what can do you once you are in here? Let’s find out…

What can I do inside the VMware ESXi hidden console?

The ESXi hidden / unsupported console is a “Linux-like” interface but extremely light when compared to a real Linux installation, which I believe is the proprietary VMware OS. For example, some of the most basic Linux commands work like ls (to list files), cd (to change directories), rm (to remove files), cp (to copy files), vi (to edit files), and reboot.

However, other common Linux commands do not work, such as more, pg, nano, or man.

The most interesting configuration files are located in /etc, just like in Linux. The most useful commands that you can execute are located in /sbin.

In this article, I am offering a quick overview of the ESXi command line but for a more complete reference you should read chapter 2 of the VMware Remote Command-Line Interface Installation and Reference Guide because that covers the vicfg-xxxx commands in detail. However, inside the ESXi console, you run most of those same vicfg-xxxx commands but they start with esxcfg-xxxx instead (the deprecated version). In fact, the RCLI Reference Guide (link above) has a chart that shows the esxcfg-xxxx to vicfg-xxxx equivalent command syntax.

In my opinion, the most important thing that I have used the hidden/unsupported ESXi console for is to edit text configuration files on the ESXi Server. This is important because, as I said, this cannot be done using the RCLI. For example, here are a few of the text files I have edited:

  1. /etc/hosts – due to issues related to ESXi servers coming and going randomly from my VMHA resource pool, a VMware Tech had me edit the /etc/hosts file to statically make host entries for the other ESXi hosts in the RP. This was done to rule out any DNS issues.
  2. /etc/inetd.conf – this file can be used to enable services that, otherwise could not be enabled. For example, by removing the hash (#) mark before the ssh or the ftp, I can enable these services on my ESXi server.

Here is an example of editing the inetd.conf file to enable SSH:

Of course, there are other files that can be edited or viewed, like the passwd file or inittab.

Again, I offer the warning that all of this is unsupported by VMware unless you are performing these steps under their direction.

Conclusion

In this article, I covered the "hidden" & unsupported VMware ESXi Server console. Almost everyone knows that ESXi doesn't have a service console but it does have a hidden console. In this article, I also demonstrated the benefit of using this hidden console. Primarily, that benefit is that you can edit text files directly on the server to allow you to enable services like SSH. However, as you have access to the server’s console, and can do much more than you could in the simple console menu interface, the possibilities of tweaking and configuration are only limited by the limited command set on the server.

22 comments:

Anonymous said...

Can anyone recommend the top performing Software Deployment tool for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central network tools
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

Thank for you for your hard work on this siteI really appreciate it.

Anonymous said...

[u][b]Xrumer[/b][/u]

[b]Xrumer SEO Professionals

As Xrumer experts, we possess been using [url=http://www.xrumer-seo.com]Xrumer[/url] quest of a long fix now and grasp how to harness the massive power of Xrumer and adapt it into a Banknotes machine.

We also provender the cheapest prices on the market. Many competitors will expect 2x or square 3x and a destiny of the opportunity 5x what we pervade you. But we maintain in providing enormous mending at a small affordable rate. The unbroken something of purchasing Xrumer blasts is because it is a cheaper variant to buying Xrumer. So we train to keep that thought in mind and afford you with the cheapest censure possible.

Not just do we have the best prices but our turnaround heyday after your Xrumer posting is wonderful fast. We will pull someone's leg your posting done to come you discern it.

We also cater you with a sated log of well-heeled posts on contrary forums. So that you can notice also in behalf of yourself the power of Xrumer and how we have harnessed it to gain your site.[/b]


[b]Search Engine Optimization

Using Xrumer you can trust to apprehend thousands upon thousands of backlinks over the extent of your site. Scads of the forums that your Install you settle upon be posted on get high PageRank. Having your link on these sites can truly help establish up some top rank back links and uncommonly as well your Alexa Rating and Google PageRank rating via the roof.

This is making your site more and more popular. And with this developing in popularity as grammatically as PageRank you can envisage to see your place in effect downright expensive in those Search Mechanism Results.
Conveyance

The amount of traffic that can be obtained nearby harnessing the power of Xrumer is enormous. You are publishing your site to tens of thousands of forums. With our higher packages you may even be publishing your locale to HUNDREDS of THOUSANDS of forums. Ponder 1 brief on a all the rage forum disposition usually cotton on to a leave 1000 or so views, with communicate 100 of those people visiting your site. These days create tens of thousands of posts on celebrated forums all getting 1000 views each. Your shipping will function through the roof.

These are all targeted visitors that are interested or exotic in the matter of your site. Imagine how many sales or leads you can fulfil with this titanic gang of targeted visitors. You are literally stumbling upon a goldmine ready to be picked and profited from.

Reminisce over, Transport is Money.
[/b]

TRAVERSE B RECOVER YOUR CHEAPLY BLAST TODAY:


http://www.xrumer-seo.com

Anonymous said...

[B]NZBsRus.com[/B]
Lose Sluggish Downloads With NZB Files You Can Rapidly Find Movies, Console Games, MP3s, Software & Download Them @ Blazing Speeds

[URL=http://www.nzbsrus.com][B]Usenet[/B][/URL]

Anonymous said...

Fashion the actual with two backs casinos? investigate this open [url=http://www.realcazinoz.com]casino[/url] numero uno and steppe online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also keep our fiction [url=http://freecasinogames2010.webs.com]casino[/url] disregard at http://freecasinogames2010.webs.com and oust in verified folding readies !
another additional [url=http://www.ttittancasino.com]casino spiele[/url] locality is www.ttittancasino.com , as an deviant of german gamblers, torment up unrestrained online casino bonus.

Anonymous said...

Someone deleted a variety of links from x7.to and megaupload ...

From now, we will use www.tinyurlalternative.com as our default [url=http://www.tinyurlalternative.com]url shortener[/url], so every url will be there and visible for everyone.

You can choose from many great [url=http://kfc.ms]short url[/url] address like:

kfc.ms easysharelink.info jumpme.info megauploadlink.info megavideolink.info mygamelink.info myrapidsharelink.info mytorrentlink.info myurlshortener.com mywarezlink.info urlredirect.info urlshrinker.info weblinkshortener.com youtubelink.info and many others.

They have over 60 different available domains and the [url=http://myurlshortener.com]url shortener[/url] service work properly for free without any registration needed.

So we think it is good idea and propose you to use [url=http://urlredirect.info]url redirect[/url] service too!

Thank you.

Anonymous said...

www.betextremesoft.com

Anonymous said...

Correctly your article helped me terribly much in my college assignment. Hats incorrect to you send, will look audacious for more related articles soon as its one of my favourite issue to read.

Anonymous said...

resource for [b]download software for windows[/b] are available here:

download software for windows
[url=http://www.downloadsoftwareforwindows]download software for windows[/url]

[url=http://www.downloadsoftwareforwindows/products/download-youtube-converter/productpage.php]download youtube converter[/url]

download video to mp3 converter

Anonymous said...

url for [b]buy software for windows[/b] are available at:

buy software for windows
[url=http://www.buysoftwareforwindows.com]buy software for windows[/url]

[url=http://www.buysoftwareforwindows.com/products/buy-internet-explorer-history-software/productpage.php]buy internet explorer history software[/url]

buy youtube converter

Anonymous said...

link for [b]download software for windows[/b] is available at:

download software for windows
[url=http://www.downloadsoftwareforwindows.com]download software for windows[/url]

[url=http://www.downloadsoftwareforwindows.com/products/download-magnifier/productpage.php]download magnifier[/url]

download watermark software

Anonymous said...

Maybe the top thing I read this year??

Anonymous said...

Thanks for good stuff

Anonymous said...

Hey, I can't view your site properly within Opera, I actually hope you look into fixing this.

Anonymous said...

hello!This was a really marvelous Topics!
I come from milan, I was luck to search your blog in digg
Also I get a lot in your blog really thanks very much i will come daily

Anonymous said...

nice post. thanks.

Anonymous said...

how are you!This was a really fine website!
I come from itlay, I was luck to approach your website in digg
Also I learn a lot in your subject really thanks very much i will come later

Anonymous said...

how are you!This was a really outstanding website!
I come from milan, I was luck to seek your subject in bing
Also I get much in your subject really thanks very much i will come later

Anonymous said...

Couldnt agree more with that, very attractive article

Anonymous said...

Just popping in to say nice site.

Anonymous said...

I really like your blog and i really appreciate the excellent quality content you are posting here for free for your online readers. thanks peace claudia.

Anonymous said...

Valuable info. Lucky me I found your site by accident, I bookmarked it.

VCAP-DCA (VDCA550) - FINALLY NAILED IT

I feel proud to inform you that I have passed my VMware Certified Advanced Professional - Data Centre Design (VCAP-DCD) certification exam s...