Migrating Win2022 VM from Esxi (boot fail)

wav3front

Member
Aug 31, 2024
51
2
8
HI,

I imported a Windows 2022 VM from Esxi to ProxMox.
It does not boot, and I get this error:

"inaccessible boot device"

I understand that I need to install VirtIO drivers, but how it that done, since I cannot boot into Windows?

Thanks
Alex
 
Hardware / select the existing Hard Disk, click Detach. Double click the unattached disk and use IDE for controller type. Then go to Options and fix the Boot Order for IDE. Power it up.
 
Yes. Always use the virtio disk and networking. Get it booted, install the virtio driver ISO. Add a temp 1GB Virtio disk as a second Hard Disk. Boot it up make sure the drivers are working. Then power it off, remove the temp 1GB Hard Disk. Change the boot disk over to viritio and adjust the Options to set it to boot.
 
Alternatively, if you already have a second drive to migrate over from ESXi, set that one to virtio already while keeping the first one on sata (I usually use sata over EDI for disks).
Regarding multiple disks though, whatever route you go, the disk will most likely show up as offline on the first boot after the switch, so prepare accordingly (aka, if some service uses/requires that drive, set the service to disabled before the reboot and only re-enable after you've fixed the drive)
 
Adding my own findings here after struggling with this.

Several places talk about adding a VirtIO Block disk and installing drivers for it. I did that, but that doesn't install the pass-through SCSI controller drivers, which is what's required for using the VirtIO SCSI controller. Some places also talk about adding so and so on a "different controller". I found this confusing, because you can only choose one controller for the whole machine. I later realized that this was referring to SCSI vs SATA (or something else), rather than different SCSI controllers.

So, here's what worked for me:

- Set the SCSI controller to VirtIO SCSI single.
- Import the disks as SATA. (select Prepare for VirtIO-SCSI if using web interface)
- Add a temporary SCSI disk.
- Mount the VirtIO driver ISO. (add a SATA CD drive if necessary)
- Start the virtual machine.
- Open Device manager and install drivers for the SCSI Controller, or just use the guest tools installer to install everything.
- Shut the virtual machine down.
- Make a note of your boot order.
- Reattach your SATA disks as SCSI disks.
- Remove the temporary disk.
- Restore your boot order.

Everything should now work. Go ahead and start the machine. During some other trials when I got "inaccessible boot device", I was able to get it up and running by just booting into safe mode once, so that might be worth trying.
 
Last edited: