「VMware Workstation」- 常见问题处理

  CREATED BY JENKINSBOT

NTFS-3G, Vmware Workstation, CPU 100%

NTFS-3G, Vmware and 100% CPU – Primal Cortex’s Weblog
新版VMware禁用虚拟内存文件的方法_MSUS的博客-CSDN博客_vmware禁用虚拟内存
Solved: Is mainMem.useNamedFile available in Linux Worksta…
Primal Cortex’s Weblog/NTFS-3G, Vmware and 100% CPU
workstation 7 (linux) and mainMem.useNamedFile = “…

问题描述

Host OS: Debian 11,Host File System: NTFS-3G,VMware Workstation 16.2

当启动虚拟机时,虚拟机近乎挂起,响应极满,mount.ntfs 进程的 CPU 100%

原因分析

经过搜索查找,我们得知:

使用 VMWare 虚拟机,虚拟机启动后,会在虚拟机目录下建立一个与虚拟内存大小相同的 .vmem文件。这个文件主要是将虚拟机内存的内容映射到磁盘,以支持在虚拟机的暂停等功能。VMware Workstation每次开机都会在磁盘上创建一个和内存大小一样的文件,实际上根本没必要,特别是我开的虚拟机内存很大,这个内存文件旧严重占用了磁盘空间

解决方案

mainmem.backing = “swap” => 针对我们的环境,我们使用该配置,并且禁用 Host Swap 分区;

this only works on 64 bit Linux hosts and it produces a similar behaviour as on Windows hosts with mainmem.useNamedFile = “false”

setting this parameter may result in improved performance for single VMs – but it may have the drawback that you can longer run as many VMs at the same time as without it !

mainmem.backing = “named”

this uses a mainmem-file in the same directory as the vmx-file

this is the equivalent to mainmem.useNamedFile = “true” used with earlier versions on Linux hosts

mainmem.backing = “unnamed”

this uses a mainmem-file in /tmp

this is the equivalent to mainmem.useNamedFile = “false” used with earlier versions on Linux hosts

The BusLogic SCSI adapter is not supported for 64-bit guests

问题描述

当导入来自 VirtualBox 的 OVF 虚拟机后,产生如下错误:

Unable to change virtual machine power state: The BusLogic SCSI adapter is not supported for 64-bit guests. See the documentation for the appropriate type of SCSI adapter to use with 64-bit guests.
Failed to configure virtual device 'scsi0'.
Failed to start the virtual machine.

原因分析

VMware: Change SCSI Controller Type from BusLogic to LSI Logic

The SCSI controller type of a virtual hard drive can be one of the following ones:
buslogic – BusLogic SCSI
lsilogic – LSI Logic SCSI
lsisas1068 – LSI Logic SAS
pvscsi – VMware Paravirtual SCSI

but only the BusLogic SCSI adapter does not work under 64-bit operating system.

解决方案

修改当前虚拟机的 .vmx 文件:
1)删除 scsi0.virtualDev = “buslogic” 配置(若不存在,则忽略);
2)增加 scsi0.virtualDev = “lsilogic” 配置;