Introduction to common files and folders of VMware virtual machines

VMware-Redhat-7.4

1. .vmx file 

This file is the configuration file of the virtual machine, which stores all the configurations performed on the virtual machine according to the virtual machine wizard or the virtual machine editor. When you need to manually change the configuration file to achieve changes to the virtual machine hardware, you can use a text editor to edit it. If the host machine is Linux and the VM virtual machine is used, the extension of this configuration file will be .cfg.

2. .vmem file

This file is a virtual machine memory page file, which backs up the memory information running in the guest. This file only exists when the virtual machine is running or after it crashes.

3. .vmdk file

This is the virtual machine's disk file, which stores the information in the virtual machine's hard drive. 

A virtual machine can consist of one or more virtual disk files. If the virtual machine disk file is specified as a single file when creating a new virtual machine, the system will only create a .vmdk file, which includes the virtual machine disk partition information and all the data of the virtual machine disk. As data is written to the virtual disk, the virtual disk file will become larger, but there is always only this one disk file. If you specify to create a disk file for every 2GB when creating a new virtual machine, the total size of the virtual disk determines the number of virtual disk files. The system will create a <vmname>.vmdk file and multiple <vmname>-s###.vmdk files (s### is the disk file number), where the <vmname>.vmdk file only includes disk partition information. The <vmname>-s###.vmdk file stores disk data information. As data is written to a virtual disk file, the virtual disk file will become larger until the file size is 2GB, and then new data will be written to other s### disk files. If all the space has been allocated when the virtual disk is created, then these files will have the largest size at the beginning and will no longer be larger. If the virtual machine directly uses the physical hard disk instead of the virtual disk, the virtual disk file saves the partition information that the virtual machine can access. Early versions of VMware products used the .dsk extension to represent virtual disk files. 

4. <######>.vmdk file

When a virtual machine has one or more snapshots, the file is automatically created. This file records all the disk data content of the virtual machine when a certain snapshot is created. ###### is a digital number, which is automatically increased according to the number of snapshots. 

5. .lck folder

When running a virtual machine, in order to prevent the system from being opened by another VMware program, causing data to be modified or damaged. Three lock files will be automatically generated under the virtual machine system file. (Virtual system lock, virtual disk lock, virtual memory lock), respectively: "systemType.vmx.lck", "systemType.vmdk.lck", "systemTyep.vmem.lck". When the virtual system shuts down normally, VMware is unlocked, and the "systemTyep.vmdk.lck" and "systemType.vmem.lck" folders disappear. When the virtual machine program is closed, the "systemType.vmx.lkc" folder disappears.

6. .log file

 This file records the debugging and running of the virtual machine by Mware Workstation. When there is a problem, these files are very useful for us to make fault diagnosis.

7. .nvram file

This file stores the BIOS state information of the virtual machine.

8. .vmsn file

This file is automatically created when the virtual machine takes a snapshot. There will be several such files in a few snapshots. This is the state information file of the virtual machine snapshot. It records the state information of the virtual machine when the snapshot is created. ## is a digital number, and the number of snapshots is automatically increased.

9. .vmss file

 This file is used to store the information of the virtual machine in the suspended state, and represents the file generated after the suspended operation is executed. (It's quite a snapshot picture)

10. .vmsd file 

This file stores the relevant information and metadata of the virtual machine snapshot.

11. .vmtm file

This file is the configuration file of the virtual machine group Team. Usually exists in the folder of the virtual group Team.

12. .vmxf file

This file is the auxiliary configuration file of the virtual machine in the virtual machine group team. When a virtual machine is removed from the virtual group team, this file will still exist. 

2. Common problems:

Although VMware's locking mechanism can well prevent the same virtual system file from being run by multiple VMware running programs, avoiding data damage. But it also brings some problems. That is, when there is a power failure or other unexpected conditions, a certain virtual system file may not be opened normally. The reason is often: the virtual system file is not unlocked. Solution: Just delete the three lck folders.

3. Knowledge expansion:

1. What is virtual memory? What does the pfofile.sys file mean?

Virtual memory is a technology of computer system memory management. It makes the application think that it has continuous available memory (a continuous and complete address space), but in fact, it is usually divided into multiple physical memory fragments, and some are temporarily stored on external disk storage. Data exchange at the time.

Pagefile.sys is a paging file, that is, a virtual memory file. It exists in the root directory of the system disk by default. The larger the space of the system disk, the more space your system can free up for virtual memory. It will be more stable, so it is recommended not to install software programs on the system disk as much as possible.

2. Why set up virtual memory?

All programs running in the computer need to be executed through the memory. If the executed programs are large or many, the memory will be exhausted. Insufficient memory often leads to jams and system instability. To solve this problem, virtual memory technology is used in Windows, that is, a portion of the hard disk space is allocated for memory usage.

Although virtual memory technology can relieve the tension of physical memory to a certain extent. However, because the computer reads data from RAM faster than the rate at which it reads data from hard disks, if you want to improve performance, increasing RAM capacity (additional memory sticks) is the best choice.

3. How does it work?

Working principle: If the running program or operation lacks the required physical memory (random access memory, RAM), Windows will use it to compensate. It combines the computer's RAM with temporary space (virtual memory) on the hard disk. When RAM runs slowly, it moves data from RAM to a space called a "page file".

Reference: https://blog.csdn.net/mengdg/article/details/50574103

Guess you like

Origin blog.csdn.net/l_liangkk/article/details/111397818