Unable to get details of physical machine on VM

Latest response

Hi,

Issue:- Customer want to get details of physical machine via Virtual machine

Description:- Currently I am working on VM remotely and its working fine, now how can i get the detail that:-
1. on which physical machine this virtual machine is deployed
2. ip of physical machine
3 within the VM how do i know that i am a vitual machine or physical machine ???

Responses

1.) Depending on the situation, the customer may or may not be authorized to know this. Also, the information might not be very useful: with on-line migration, a VM can move from one physical machine to another at any moment.

2.) A virtualization environment can be laid out in such a way that the physical hypervisors only have IPs in a management network that is completely distinct from any customer-visible networks. Or a hypervisor might be connected to several networks (management, dedicated network for backups, dedicated network for iSCSI, FCoE or similar storage technology) and thus have several IP addresses, which may not be directly applicable for anything the customer VMs are seeing.

So, for your questions 1) and 2), I think the customer might be unaware that s/he is asking questions whose answers may be less useful than expected; I'd suggest asking the customer what s/he wants to do with that information, and then providing him/her with a suitable report produced by your virtualization management infrastructure, if possible. (This way, you can also maintain control of what the customer can discover of the internal details of your virtualization environment, if necessary.)

3.) The "virt-what" command is designed to answer exactly this question. If the command is not installed within the VM, most virtualization platforms are identifiable by examining the outputs of "dmidecode" and/or "lspci" commands.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.