当前位置:首页 > 虚拟机 > 正文

虚拟机和物理机怎么区别(linux区分物理机和虚拟机)

Judge whether the current host is a physical machine or a virtual machine

Provide 3 methods:

Linux

1: fdisk-l to view the disk Is it sda, vda, or xda? Generally, the physical machine is sda

2: dmidecode|more View all hardware information

Note that if -bash:dmidecode:commandnotfound is prompted, you can yuminstalldmidecode< br/>To determine whether it is a physical machine, when --More-- appears, keep pressing the Enter key (Enter) to see all the hardware information. If it is a virtual machine (cloud host\VPS), you can see it in one click come out!

3: Restart speed, cloud host/VPS restart very quickly, generally within 1 minute, physical machines have many self-check steps, it takes about 5 minutes to restart

Windows< /p>

Run Systeminfo in CMD, and you can see some system information, mainly looking at: system manufacturer (this is the motherboard manufacturer), system model (motherboard model) (the system model result has the word Virtual, 100% virtual machine), network card model

In addition, I am using a host from the host park, the speed is very good, and the service is good

What is the difference between a physical machine and a virtual machine?
A physical machine is physical, while a virtual machine is virtual. . .
Take an optical drive as an example. A physical optical drive requires a matching optical disc to read the content inside. We can store the same thing in a USB flash drive. To interpret this format, we can use a virtual optical drive to read the file content. . . .
What is the difference between physical servers, cloud hosts and virtual machines in Hong Kong?

A physical machine means a physical server, just like a house. It has three bedrooms, one living room, one kitchen and one bathroom. These are real and only used by you. Physically, you have exclusive ownership of them. Got this house. You can use the kitchen at any time, and you can keep the water heater running 24 hours a day, as long as you pay the rent.

Cloud hosting is similar to VPS. Although it has three bedrooms and one living room, the kitchen and bathroom are shared, and the three bedrooms and one living room may be separated in a large frame house. You can imagine that in a makeshift hospital, you are divided into several wooden rooms. If you want to add one more room or reduce one room, just remove two boards and build two more boards. There is a kitchen and a bathroom in name, but that doesn’t mean you can occupy it for a long time, because the kitchen and bathroom are shared, which corresponds to CPU and bandwidth. It’s not that you can use it 100% all day long by giving you a few cores. No, we can only give you a certain amount of time and computing power based on the price you give. The same is true for bandwidth. The road is only so wide. At noon, when everyone is queuing up to get food, it will be crowded. In the middle of the night, when everyone is asleep, the road will be empty.

As for the virtual host, it is just like the "cage dwellers" shown in Hong Kong movies. At this time, we don't talk about how many rooms and halls there are. It is just a grid. If you are small, you can rent a small grid. Okay, if you are taller, I might give you a little more money and give you a big cubicle or even a bunk bed. A house can fit many of these latticeworks, and everyone shares a kitchen and bathroom, which is definitely quite crowded. So I won’t tell you how many cores and gigabytes there are. It’s meaningless.