PMP Style .global

PMP Style .global

Software engineer page

MENU

VMware Hard Disk Optimization (Windows 10 PVSCSI)

In VMware Workstation Player 16, when the virtual machine is Windows 10, NVMe is specified as the default device of the hard disk, but as a result of verification, PVSCSI is superior in high throughput and low CPU occupancy. I found out that there is. Here are the steps to migrate to PVSCSI.

pmp-style-en.hatenablog.com

f:id:ruruucky:20200903195353p:plain

1. Overview

See below . pmp-style-en.hatenablog.com

2. Caution

If you are not familiar with it, be sure to copy the entire virtual machine and back it up before starting work. We cannot take responsibility even if it becomes impossible to recover.

3.Overall flow

f:id:ruruucky:20210919004107p:plain

4. Detailed procedure

Step1. Sort VMX file

The vmx file is in text format and has independent settings for each line.
There is no context in the lines, but keep the same devices in the same place.
Open a command prompt and do the following:

sort  < VirtualMachineName.vmx > VirtualMachineName2.vmx
ren VirtualMachineName.vmx VirtualMachineName.org
ren VirtualMachineName2.vmx VirtualMachineName.vmx

Step2. Change system drive to SATA

(1).
First, change the HDD interface to SATA. Eventually I changed to PVSCSI, but when I changed to PVSCSI directly from NVMe, it sometimes failed, so migrating from SATA to PVSCSI went smoothly. It's a rule of thumb. Rest assured that the HDD image will not be damaged even if you make a mistake.

Open the edit screen of the virtual machine and check the interface of the HDD. If you are already SATA, proceed to Step3.

f:id:ruruucky:20210919004528p:plain

(2). Open the vmx file in an editor, comment out the device you are using for the system drive, and connect the system drive to SATA.
The following is an example of changing from NVMe to SATA. Please replace the file name.

Before modification

nvme0.present = "TRUE"
nvme0:0.present = "TRUE"
nvme0:0.fileName = "win10.vmdk"
nvme0:0.redo = ""
nvme0.pciSlotNumber = "256"

After correction

#nvme0.present = "TRUE"
#nvme0:0.present = "TRUE"
#nvme0:0.fileName = "win10.vmdk"
#nvme0:0.redo = ""
#nvme0.pciSlotNumber = "256"

sata0:0.present = "TRUE"
sata0:0.fileName = "win10.vmdk"

(3). Start the virtual machine and check that the HDD is connected by SATA in Device Manager.

f:id:ruruucky:20210918235638p:plain

Step3. Added PVSCSI dummy drive

(1). Add a new SCSI HDD from the virtual machine settings. The minimum capacity is 1G. At this time, enter the name of the HDD image file, so use a descriptive name such as dummy_scsi.vmdk.
(2). Start the virtual machine
(3). In Disk Management, initialize the SCSI HDD and check that it can be accessed.
(4). Confirm that his SCSI-HDD is registered under "LSI SAS 1068" in Device Manager.

f:id:ruruucky:20210919002052p:plain

(5). Shut down the virtual machine.

(6). Open the VMX file in an editor and change the SCSI device to PVSCSI.

Before modification

scsi0.virtualDev = "lsisas1068"

After correction

scsi0.virtualDev = "pvscsi"

(7). Start the virtual machine

(8). Make sure that the SCSI-HDD is registered under "VMware PV SCSI Controller" in Device Manager.

f:id:ruruucky:20210919002308p:plain

(9). Shut down the virtual machine

Step4. Change system drive to PVSCSI

(1). Open the VMX file in an editor and change the system drive to PVSCSI.

Before modification

sata0:0.fileName = "win10.vmdk"
sata0:0.present = "TRUE"
sata0:0.redo = ""

scsi0:0.fileName = "dummy_scsi.vmdk"

After correction

#sata0:0.fileName = "win10.vmdk"
#sata0:0.present = "TRUE"
#sata0:0.redo = ""

scsi0:0.fileName = "win10.vmdk"

This fix changes the system drive from SATA to PVSCSI and leaves the dummy SCSI drive unconnected.

(2). Start the virtual machine.

You may get a blue screen with the error "INACCESSIBLE BOOT DEVICE".
f:id:ruruucky:20210919000644p:plain

The same screen will appear even after restarting, and the following screen will be displayed at the third startup.
Now press "F8"

f:id:ruruucky:20210919001149p:plain

Press "F4" to boot into safe mode. f:id:ruruucky:20210919001402p:plain

Now that you can start Windows, please restart it. Now you can start it normally.

(3). Make sure that the SCSI-HDD is registered under "VMware PV SCSI Controller" in Device Manager.
f:id:ruruucky:20210919001747p:plain

This completes the PVSCSI conversion of the system drive.

(4). The dummy_scsi.vmdk added as a dummy is not used, so delete it.

Finally

About the blue screen phenomenon of "INACCESSIBLE BOOT DEVICE"

I've never seen this phenomenon before, and I've only seen it with a combination of VMware Workstation Player 16 and Windows 10 20H2. At first, I didn't know how to recover, but I'm relieved to start it in safe mode.
This error occurs when the OS cannot boot without the device driver for the system drive. In order to avoid this error, I registered a dummy PVSCSI drive and made the OS recognize PVSCSI, so it is strange that an error occurs. When I saw that it was fixed in safe mode, I thought it was because of the fast boot mode, but for some reason the setting item was not displayed in the virtual machine.
On the other hand, this does not happen when changing from PVSCSI or NVMe to his SATA. Therefore, I am using the method of changing to SATA first.

The mystery is only deepening. If anyone knows, please let me know.