New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create R2->R3 migration tool for windows tools #1078

Closed
omeg opened this Issue Jul 22, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@omeg
Member

omeg commented Jul 22, 2015

Windows HVMs with R2 tools won't boot in R3 normally because Xen disk drivers won't load. Check safe mode. Integrating migration with the R3 tools installer would be ideal but MSI service doesn't run in safe mode normally - investigate.

@omeg

This comment has been minimized.

Show comment
Hide comment
@omeg

omeg Jul 23, 2015

Member

R2 HVM boots in safe mode in R3 (can be accessed through startup recovery, not selecting any options like system restore, choosing advanced options once it fails, command prompt: bcdedit /set safeboot minimal).
Once it's booted (in safe mode) some gplpv drivers can be disabled: uninstall xenvif and xenvbd from the device manager, select "remove files", make sure the files are really gone from c:\windows\system32\drivers so they don't reactivate on next boot, delete registry keys from HKLM\System\CurrentControlSet\Services).
After reboot Windows should be using emulated network and disk devices. At this point safe boot can be disabled (bcdedit /deletevalue safeboot). However, the xenpci driver cannot be disabled/removed - OS fails to boot with BSOD 7b (inaccessible boot device) in that case. That's really strange since only emulated devices are active at this point...
Installing the new pvdrivers fails if the old xenpci driver is active.

Member

omeg commented Jul 23, 2015

R2 HVM boots in safe mode in R3 (can be accessed through startup recovery, not selecting any options like system restore, choosing advanced options once it fails, command prompt: bcdedit /set safeboot minimal).
Once it's booted (in safe mode) some gplpv drivers can be disabled: uninstall xenvif and xenvbd from the device manager, select "remove files", make sure the files are really gone from c:\windows\system32\drivers so they don't reactivate on next boot, delete registry keys from HKLM\System\CurrentControlSet\Services).
After reboot Windows should be using emulated network and disk devices. At this point safe boot can be disabled (bcdedit /deletevalue safeboot). However, the xenpci driver cannot be disabled/removed - OS fails to boot with BSOD 7b (inaccessible boot device) in that case. That's really strange since only emulated devices are active at this point...
Installing the new pvdrivers fails if the old xenpci driver is active.

@omeg

This comment has been minimized.

Show comment
Hide comment
@omeg

omeg Jul 24, 2015

Member

Old xenpci is added as an UpperFilter to the following device classes:
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}

If those filter entries are removed it's possible to completely remove it and install R3 tools.

Member

omeg commented Jul 24, 2015

Old xenpci is added as an UpperFilter to the following device classes:
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}

If those filter entries are removed it's possible to completely remove it and install R3 tools.

@omeg omeg closed this Aug 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment