In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to judge the Linux system installed on VMware, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
How to determine whether the current Linux system is installed on VMware? The methods are as follows:
1: command vir-what to detect
[root@mylnx01 ~] # virt-whatvmware
If the Linux server is on top of VMware, this command outputs vmware information, and in the case of a physical machine, there is no output.
2:dmesg | Detection by grep VMware command
[root@mylnx01 ~] # dmesg | Direct-Access VMware Virtual disk 0 PQ: 0 ANSI: 0 ANSI: 2scsi 0 Direct-Access VMware Virtual disk 0 1: 0: Direct-Access VMware Virtual disk 1.0 PQ: 0 ANSI: 2scsi 0 Direct-Access VMware Virtual disk 0: 0 PQ: 0 ANSI: 0 ANSI: 2scsi 0 3 Direct-Access VMware Virtual disk 0: Direct-Access VMware Virtual disk 1.0 PQ: 0 ANSI: 2scsi 0 Access VMware Virtual disk 1.0 PQ: 0 ANSI: 2VMware vmxnet3 virtual NIC driver-version 1.4.3.0-NAPIVMware PVSCSI driver-version 1.0.1.0-kVMware vmxnet virtual NIC driver
This is based on the fact that some devices connected to the PCI bus of the VMware virtual machine have the word VMware; the disk name has the word VMware Virtual disk, and the driver has the word VMware, as shown above. If it is a physical machine, there will be no relevant output information. As follows:
3: detect VMwaretools processes, but this method may fail because some virtual machines may not have VMware Tools tools installed
[root@mylnx01 ~] # ps-ef | grep vmtoolsdroot 3149 1 0 Jun24? 00:25:37 / usr/sbin/vmtoolsdroot 23943 20376 0 14:23 pts/1 00:00:00 grep vmtoolsd
4: connect to the VMware Workstation through VMware vSphere Client and confirm one by one. On the one hand, this is also troublesome (can only be confirmed manually, not easy to batch processing), in addition, I do not have the relevant permissions for VMware Workstation. So the above command is more convenient and fast!
Thank you for reading this article carefully. I hope the article "how to judge that the Linux system is installed on VMware" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.