banner
libxcnya.so

libxcnya.so

Nothing...
telegram
twitter
github
email

PVE under Windows virtual machine Virtio disk conversion to SCSI

Foreground Needs#

My previous service provider ran away and only gave me a PVE backup when they ran away. Recently, I need to restore it to a new machine and found that the previous provider had set the hard disk type to Virtio (no wonder SSD feels the same as HDD).
1
For better performance, I choose to change the hard disk type to SCSI.

Process#

The first thing I thought of was whether I could detach the hard disk and re-add it. I tried it and it seems to work.
2
Then I attached a PE to take a look, and the original hard disk could be recognized normally. I thought there should be no problem, so I started the machine directly.
3
Then it got stuck in this place for a while.
4
And then...
5

Solution#

I saw the Stop Code as INACCESSABLE_BOOT_DEVICE, and my instinctive reaction was that it might be because I changed the hard disk type and Windows doesn't have the corresponding driver.
But how can we add the driver in this situation?

Then I thought for 114514 years. A feature of Windows 10 and above is that when it encounters a device without a driver, it will automatically try to search and install the driver in a networked state. So let's change the system disk back to Virtio first, then add a SCSI disk, start with the Virtio disk, and wait for a while after entering the system. Can we use it then?

The theory is feasible, let's put it into practice.
6
First, add a SCSI disk. It doesn't need to be too big because it will be deleted after use.
7
Then change the system disk type back to Virtio and start normally.

Oh, by the way, if you have experienced a blue screen after the first boot attempt, the second boot should display this screen.
8
Don't worry, just press Enter twice and it should start normally without any surprises.

After entering the system, open Disk Management and you will find a disk with the status "Offline". Right-click on it, select "Online" and initialize it. Choose GPT as the partition table format.
9
Then format it and open File Explorer to make sure you can see this disk.
This means that your Windows now has the appropriate driver for SCSI. (
Then shut down, remove this disk, and change the original disk to SCSI.
10
Don't forget to adjust the boot order and start the machine.
If everything goes well, it should start normally this time.
11
Compared to Virtio, the experience with SCSI disks should be better.

Conclusion#

This tutorial ends here. If it is helpful to you, please feel free to share it with others.
And please give it a thumbs up and consider supporting me. Your thumbs up is my motivation to update. Thank you, meow.

This article is synchronized and updated to xLog by Mix Space.
The original link is https://blog.nekorua.com/posts/maintain/123.html


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.