Solved

Vmware Linux question

Posted on 2010-11-30
5
299 Views
Last Modified: 2012-08-13
We are running linux redhat boxes on ESX server and it has many hosts. Is there a way that we can find which host we are running the linux box? I need to check it for few hundred boxes, I don't want to go through virtual center all the time.

Thank in advance
0
Comment
Question by:mokkan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 23

Accepted Solution

by:
jakethecatuk earned 250 total points
ID: 34240064
Under VCentre, click on the virtual machines tab under your data centre - this will list all of your VM's.  

Right click on the columns and select 'Guest OS' and it will list all the guest OS's that have been reported back by VM tools.
0
 

Author Comment

by:mokkan
ID: 34240187
I understand that,  how do I check from the linux guest from the command prompt, is there  a  command available?
0
 
LVL 16

Assisted Solution

by:danm66
danm66 earned 250 total points
ID: 34241141
There's no variable set inside of the guests that reveal details about the ESX host that it resides on.  I'm not exactly sure how, but I think you could set up a vMA server or use the Remote CLI to do an inventory check and then grep out the hostname of the linux guest.  http://communities.vmware.com/community/vmtn/vsphere/automationtools/vima is where you can download the vMA and you can ask around on the communities site to see if someone already has a script to do what you need.
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 34295986
I would say run
Login to particular ESX host an run following commands

#find <datastore> -type f -name "*.vmx" -exec grep -i "Linux" {}\;

This will give you all the list of linux OS vmx files that are having keyword Linux as a Guest OS type inside the vmx file, I am sure other than Linux server no other vmx files will have the word Linux at-least as Guest OS type inside the vmx file.

I bet this can be more simple via vMA but I don't have the environment to try this.
0
 

Author Closing Comment

by:mokkan
ID: 34422388
thank you for all the info.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
Fine Tune your automatic Updates for Ubuntu / Debian
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question