Server 2008 R2 xenpci.sys BSOD

Based on customer feedback, we have come across an error that can occur when restoring your VM onto the new
platform. After completing steps 11-k in the ‘Migrate_Server2k8r2’ guide you are told to restore the server and you
should get to the login. Sometimes you will be presented with another BSOD instead stating ‘”xenpci.sys, the driver
unloaded without cancelling pending operations’. If you experience this, you will need to remove the xen drivers
1. Select ‘Launch Startup Repair (recommended)’.
a. Select the radio button ‘use recovery tools….’, and install the Virtio Storage drivers and make a note
of the drive letter assigned to the OS drive. In this case, I’ll refer to it as the ‘F:\’ drive but yours
might be different.
b. Wait for the ‘Startup Repair’ process to fail, or cancel it and click ‘Finish’.
c. From the ‘Choose a recovery tool’ window select ‘Command Prompt’.
d. Now type the following:
i. ‘rmdir /q /s “f:\Program Files (x86)\Xen PV Drivers”
ii. ‘del /q “f:\Windows\System32\drivers\xen*”
iii. ‘del /q f:\Windows\inf\oem1.inf
iv. ‘del /q f:\Windows\inf\oem2.inf
v. ‘del /q f:\Windows\inf\oem3.inf
vi. ‘del /q f:\Windows\inf\oem4.inf
vii. ‘del /q f:\Windows\inf\oem5.inf
viii. ‘del /q f:\Windows\inf\oem*.pnf
e. Now type ‘regedit’, then hit enter.
f. Select ‘HKLM’, go to ‘File\Load Hive
g. For this step, make sure you select the drive you are recovering and not the X: (boot) drive. Go to
C:\Windows\system32\config’ and open the ‘SYSTEM’ file.
h. Type any ‘Key Name’ you want, example ‘temp’.
i. Navigate to ‘HKLM\temp\ControlSet001\services’.
i. Delete Key Names ‘xennet’, ‘xenpci’, ‘xenvdb’.
j. Navigate to ‘HKLM\temp\ControlSet002\services’.
i. Delete Key Names ‘xennet’, ‘xenpci’, ‘xenvdb’.
k. Navigate back to ‘HKLM\temp’.
i. Press ‘Ctrl + f’ to find.
ii. Search for ‘upperfilters’ and keep pressing F3 to find any key with reference to ‘xenpci’ that
have the same class value as below and delete them.
1. ‘HKLM\***\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}
2. ‘HKLM\***\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
3. ‘HKLM\***\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}
l. Check these values are still true:
i. intelide ‘3’
ii. msahci ‘0’
iii. pciide ‘0’
iv. LSI_SAS ‘3’
m. Navigate back to the ‘temp’ registry key and select ‘File\Unload Hive’, then press ‘Yes’.
n. Restart the server.
2. When your server has started, Login.

Сегодня мы будем решать проблему, с которой я столкнулся давеча. Итак, у нас есть виртуальная машина Windows Server 2008 R2 на борту с установленными паравиртуальными драйверами. Эта виртаулка крутится работает под XEN’ом. Необходимо ее перести на другой сервер под VirtualBox. Но не все так просто. Первое, что необходимо было сделать – это сконвертировать. Как это сделать, я уже писал в одной из своих заметок:
VBoxManage convertdd linux_file.img linux_file.vdi
После того как вы сконвертируйте IMG в VDI формат и подключие к этот диск к новой виртуальной машине под VirtualBox, скорее всего вы получите первый BSOD с кодом 0x0000007B. 0x0000007B указывает, что  во время запуска операционная система Microsoft Windows потеряла доступ к системному разделу. Чтобы пофиксить эту проблему необходимо в настройках виртуальной машины удалить SATA-контроллер и добавить IDE-контроллер:
Далее после попытки запустить сервер вы скорее всего получите второй BSOD (0x0000000d4 xenpci.sys), причиной которого будут установленные паравиртуальные драйверы. Давайте удалим их. Запускаем Windows в режиме восстановления и открываем командную строку. Далее по списку выполняем:
rmdir /q /s “f:\Program Files (x86)\Xen PV Drivers”
del /q “f:\Windows\System32\drivers\xen*”
del /q f:\Windows\inf\oem1.inf
del /q f:\Windows\inf\oem2.inf
del /q f:\Windows\inf\oem3.inf
del /q f:\Windows\inf\oem4.inf
del /q f:\Windows\inf\oem5.inf
del /q f:\Windows\inf\oem*.pnf
После удаления файлов перейдем к правке реестра. Введите команду regedit, выберите раздел HKLM и загрузите куст (File\Load Hive) C:\Windows\system32\config\SYSTEM с именем temp. В разделе HKLM\temp\ControlSet001\services и HKLM\temp\ControlSet002\services удаляем ключи xennetxenpcixenvdb.
Переходим обратно в HKLM\temp, жмем CTRL+F и ищем по фразе upperfilters (F3 для продолжения поиска). Как только в значение появится xenpci необходимо удалить этот раздел. У меня нашлись разделы:
  • HKLM\***\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}
  • HKLM\***\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}
  • HKLM\***\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}
Теперь вернемся к разделу temp и выгрузим куст (File\Unload Hive). После чего перезагрузим сервер и радуемся рабочему серверу.

21 комментарий к “Server 2008 R2 xenpci.sys BSOD

  1. Good message. I discover something a lot more challenging on different blogs day-to-day. It will certainly always be promoting to check out web content from other writers and also practice a something from their store. I?d favor to use some with the content on my blog site whether you don?t mind. Natually I?ll provide you a link on your web blog site. Many thanks for sharing.

  2. I discovered your blog site on google as well as inspect a few of your very early articles. Continue to keep up the excellent operate. I simply additional up your RSS feed to my MSN News Reader. Looking for forward to reading more from you in the future!?

  3. Good post. I learn something totally new and challenging on blogs I stumbleupon everyday. It’s always interesting to read through content from other writers and use a little something from other websites.

  4. Youre so awesome! I do not intend Ive review anything like this prior to. So wonderful to find somebody with some original thoughts on this subject. realy thanks for beginning this up. this web site is something that is required online, a person with a little creativity. beneficial work for bringing something new to the net!

  5. Heya are using WordPress for your blog platform?

    I’m new to the blog world but I’m trying to get started and set up my
    own. Do you need any html coding expertise to make your own blog?

    Any help would be greatly appreciated!

  6. Thank you a bunch for sharing this with all people you actually recognize what you’re talking approximately!
    Bookmarked. Please also discuss with my website =). We can have a hyperlink
    trade arrangement among us

  7. I am extremely impressed with your writing skills
    as well as with the layout on your blog. Is this a
    paid theme or did you customize it yourself? Either
    way keep up the nice quality writing, it’s rare to see a great blog like this one today.

  8. Can I simply claim what a relief to discover somebody who in fact knows what theyre talking about on the net. You most definitely recognize how to bring a problem to light and make it essential. Even more individuals require to read this as well as comprehend this side of the story. I cant think youre not much more popular because you absolutely have the present.

  9. I have been browsing on-line greater than three hours lately,
    yet I by no means found any attention-grabbing article like yours.
    It is lovely value sufficient for me. Personally, if all web owners and bloggers made just right
    content material as you probably did, the web will likely be much more useful
    than ever before.

  10. Oh my goodness! an incredible article man. Thanks Nevertheless I am experiencing problem with ur rss. Don?t recognize why Unable to subscribe to it. Exists anybody getting the same rss problem? Any individual who recognizes kindly respond. Thnkx

  11. I?m satisfied, I need to claim. Actually hardly ever do I encounter a blog that?s both instructional and amusing, and let me tell you, you have hit the nail on the head. Your idea is exceptional; the concern is something that not nearly enough people are talking smartly around. I am extremely pleased that I came across this in my search for something connecting to this.

  12. There are some interesting points in this short article but I don?t recognize if I see every one of them center to heart. There is some validity but I will certainly hold viewpoint up until I explore it further. Excellent short article, many thanks as well as we desire a lot more! Added to FeedBurner too

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *