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 when they ran away, they only gave me a PVE backup. Recently, I wanted 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 chose to change the hard disk type to SCSI.

Process#

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

Solution#

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

Then I thought for 114514 years, and Windows 10 and above have a feature that when encountering 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 hard disk, start with the Virtio hard 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 hard 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 hard disk with a status of Offline. Right-click it, make it Online, and initialize it. Select GPT for 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 hard disk, and change the original disk to SCSI.
10
And don't forget to adjust the boot order and start up.
Without any surprises, it should start normally this time.
11
Compared to Virtio, the experience with SCSI hard disks should be better.

Conclusion#

This tutorial ends here. If it helps you, please feel free to share it with others.
And please give it a thumbs up. If you have the ability, please consider supporting me. Your thumbs up is my motivation for updating. 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.