Disk2vhd windows server 2008

When I created a VHD for a Windows 2008 R2 server using Disk2VHD, an error poped up as «Error snapshotting volumes».

I opened the Windows event log viewer and found several errors of VSS.
One of them was Event ID 22 —
Volume Shadow Copy Service error: A critical component required by the Volume Shadow Copy service is not registered. This might happened if an error occurred during Windows setup or during installation of a Shadow Copy provider. The error returned from CoCreateInstance on class with CLSID {79079d5c-ef20-4952-b9fc-cfd443b38641} and Name SW_PROV is [0x80040154, Class not registered].

Run RegEdit and open the registry path
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VSS\Providers
There was a registry key of {f782463b-33bb-4043-ad8d-60b728d26a6c} that represented as «Acronis VSS SW Provider» and there was a CLSID item of  {79079d5c-ef20-4952-b9fc-cfd443b38641} under it.

The backup software Acronis is no longer installed on the server. After I deleted the registry key of {f782463b-33bb-4043-ad8d-60b728d26a6c}, Disk2VHD worked perfectly.

Hopefully this information can save your time.

Здравствуйте админ! Читал ваши статьи о переносе Windows с одного жёсткого диска на другой и возник вопрос. У меня на компьютере установлен жёсткий диск SATA II, объёмом всего 120 Гб, на днях приобрёл новый жёсткий диск SATA III (SSHD-гибрид) на 1 Тб. Как мне перенести Windows 8.1 со старого жёсткого диска на новый без применения программ: Acronis, Paragon, AOMEI Backupper Standard, то есть я хочу использовать утилиты работающие без установки в операционную систему? Неужели нет простеньких утилит для переноса винды с одного винта на другой и обязательно устанавливать этот Acronis, который потом замучаешся удалять.

Как перенести Windows 8.1, Windows 10 с одного жёсткого диска на другой программами Disk2vhd и Vhd2disk

Привет друзья! Во-первых заступлюсь за Acronis, удалять его не так уж и трудно, а во вторых, присаживайтесь поудобнее, расскажу о паре таких утилит.

Недавно один приятель попросил меня перенести Windows 8.1 с небольшого жёсткого диска на HDD большего размера. Дело было вечером и при мне не оказалось волшебного переносного винчестера USB с различным программным обеспечением, способным помочь в этой ситуации. Не беда — подумал я — ведь есть же интернет, но и здесь всё оказалось не в мою пользу, люди переехали в эту квартиру только вчера и ещё не успели заключить договор ни с одним провайдером. Что делать, я порылся в карманах и обнаружил старую загрузочную флешку Corsair с операционной системой Windows 8.1 и бесплатными программами, среди которых были две уже знакомые вам утилиты, работающие без установки: disk2vhd и Vhd2disk, которые и помогли мне осуществить перенос!

{banner_google1}

Итак, имеем обычный стационарный компьютер с двумя накопителями:

Диск 0Жёсткий диск объёмом 500 Гб. Переносить Windows 8.1 будем на него. Перенос нужно осуществлять на HDD без разделов, то есть перед работой удалите на нём все разделы и оставьте одно нераспределённое пространство.

Диск 1. Жёсткий диск объёмом 120 Гб. На нём находится диск (C:) с установленной Windows 8.1, её и будем переносить на HDD 500 Гб (Диск 0).

Диск 2Также у моих друзей оказался переносной жёсткий диск USB на 1 Тб и он нам тоже понадобится.

Управление дисками  

 

Disk2vhd

Данная программа создаст нам точную копию диска (C:) с установленной Windows 8.1. в файле виртуального жёсткого диска VHD, данный фал сохраним на разделе (G:) переносного жёсткого диска USB.

Скачиваем программу Disk2vhd v2.01 по ссылке на официальном сайте Майкрософт: 

https://technet.microsoft.com/ru-ru/sysinternals/ee656415

В главном окне программы Disk2vhd снимаем галочку с «Use Vhdx», так как хотим создать обычный файл виртуальных жестких дисков VHD, в противном случае будет создан файл нового формата VHDX.

Отмечаем галочкой диск C:\ с установленной Windows 8.1.

Присваиваем имя будущему файлу — «Windows 8.1.vhd»

Жмём на кнопку проводника в правой части окна. 

Указываем место сохранения будущего файла виртуального диска VHD. Я укажу диск (G:) переносного винчестера USB, так как на нём достаточно свободного пространства.  

Жмём «Create». 

Начинается процесс конвертации диска (C:) с Win 8.1 в файл виртуального диска VHD. 

Готово. 

Как мы и планировали, файл виртуального диска VHD находится на разделе (G:) переносного винчестера. 

{banner_google1}

Разворачиваем файл виртуального жёсткого диска VHD на новый жёсткий диск с помощью программы Vhd2disk

Скачиваем программу Vhd2disk у меня на облачном хранилище.

В главном окне Vhd2disk жмём на кнопку проводника.

В открывшемся проводнике находим наш виртуальный жёсткий диск VHD на разделе (G:), выделяем его левой кнопкой мыши и жмём Open VHD.

В поле Target drive выбираем PhysicalDrive0, так как разворачивать содержимое виртуального диска VHD мы будем на Диск 0 (жёсткий диск объёмом 500 Гб)

 

Жмём на кнопку Vhd to disk. 

 ОК.

Начинается процесс копирования содержимого виртуального жёсткого диска VHD на новый жёсткий диск.

Процесс успешно завершён.

Status: VHD dumped on drive successfully! (VHD успешно скопирован на жёсткий диск!).

Заходим в Управление дисками, жмём Действие—>Обновить.  

Щёлкаем правой мышью на Диске 0 и выбираем В сети.

Итак, точная копия диска (C:) с установленной Windows 8.1 создана на разделе (F:) нового жёсткого диска 500 Гб, но загружаться без восстановления загрузчика система не будет.

{banner_google1}

Нам остаётся отсоединить старый жёсткий диск 120 Гб, затем загрузить компьютер с загрузочной флешки Windows 8.1 и восстановить загрузку Win 8.1 находящуюся на новом диске 500 Гб. В процессе восстановления загрузки, раздел (E:) 350 Мб, превратится в скрытый раздел «Зарезервировано системой» и на нём будут находиться файлы загрузки Windows 8.1.

Выключаем компьютер, отсоединяем старый жёсткий диск и загружаемся с установочной флешки с Windows 8.1 для восстановления загрузки

В начальном окне установки Windows 8.1 жмём клавиатурное сочетание Shift + F10, появляется окно командной строки. Вводим команды:

diskpart

list vol (выводит список всех доступных разделов HDD)

sel vol 0 (выбираем том 0 «Зарезервировано системой» объёмом 350 МБ, сейчас он у нас с неопределённой файловой системой  RAW).

format fs=ntfs (производим форматирование выбранного тома в файловую систему NTFS).

activ (делаем раздел активным)

exit (выходим из diskpart)

bcdboot.exe E:\Windows — где E:, раздел с установленной Windows 8.1. Данная команда создаст файлы загрузки Windows 8.1 (файл bootmgr и файлы конфигурации хранилища загрузки (BCD)) на скрытом разделе 350 МБ.

Перезагружаемся.

И входим в операционную систему.

Активация Windows 8.1 после данной операции не слетает.

Создаём в управлении дисками из нераспределённого пространства диск (D:) и пользуемся системой дальше, как ни в чём не бывало.

Друзья, после переноса операционной системы с одного жёсткого диска на другой, обязательно проверьте корректность выравнивания разделов диска с помощью бесплатной утилиты AS SSD Benchmark.

Если в левом верхнем углу две строчки зелёного цвета, значит разделы выровнены корректно.

Earlier we published a guide about VirtualBox P2V in Windows 10/11 by VMware converter. In this guide, we will learn more about how to do a VirtualBox P2V with a Microsoft utility called disk2vhd. disk2vhd is an excellent virtual hard disk tool to clone the physical disk partitions of a computer (Physical or virtual). It can output the virtual hard disk in VHD format. This VHD file can be converted to other several virtual disk formats or attached to virtualization software like Hyper-V and VirtualBox.

Even though I successfully converted a physical machine to a virtual one by using the disk2vhd tool, it gave me a few errors when I tried to boot the virtual machine from Oracle VirtualBox. Later, found a few solutions to make it work.

Let us discuss the possible errors and how to solve them with Microsofts’s disk2vhd. disk2vhd tool does work on Microsoft Windows Operating Systems only. Also, the tool should be installed locally on the computer to convert it. We can’t use it remotely to convert a network-connected computer/server.

Disk2vhd Errors image

Migrating a working physical Windows computer to the VirtualBox platform is very easy in this way. Once it has been converted to VHD format, we can use it with VirtualBox which can run on any OS like Linux or macOS. Since VirtualBox supports VHD file format natively, we do not need to convert the VHD to VDI in this case.

In this example, I converted my physical computer that is having two Operating Systems (Windows 7 and Windows XP). I will be converting and moving only Windows 7 to VirtualBox by P2V here.

1) Download the latest version of disk2vhd (2.02 version)

2) Installation is not required, execute the program directly.

3) It will pick up the physical disk partitions from the host OS.

VirtualBox P2V with Disk2vhd

Important Note:

Before going to the next step, let’s understand something clearly!

  • If you want to convert your entire physical disk (for example 500GB with 5 partitions) to VHD, then select all partitions and start the conversion. This will not cause any issues while attaching the VHD to VirtualBox or Hyper-V.
  • If you want to P2V only specific Operating Systems and partitions from a physical computer, then you must do it properly to avoid problems.

In this example, I planned to convert my working Windows 7 to VirtualBox. So, I must convert the System and boot partitions which are usually different in most cases.

Here is my working Windows 7 physical computer.

Working physical computer

Initially, I converted only Windows 7 boot partition (normally the C drive) to save space and time. I know this is not the system partition with the boot recorder, but I thought I can repair it and make it work if it fails to boot later.

No matter how many partitions you select and convert, VirtualBox will detect the VHD as the size of a full physical disk with all partitions. When the boot loader/recorder is not found on any of the partitions, OS will not boot.

So, my first method returned the following error

A disk read error occurred
Press Ctrl+Alt+Del to restart

It’s because of the missing system partition. I tried several methods to write the MBR and do the repair with the Windows installation medium, but all failed for me. Hence, I need to rerun the disk2vhd P2V conversion.

4) So before starting the conversion, go to disk management and check the partition structure.

Partition Manager

Always you must convert the system and boot partitions by disk2vhd to be able to use with Virtualbox or any other platform.

In my above example, the System partition is E and the Boot partition is C. So, I have to select both partitions to convert.

5) Now press Create button and start the process. Make sure that each partition is having enough disk space to create snapshots on the physical computer. It’s highly recommended to do nothing while conversion is happening on the computer.

6) After completed successfully, create a new virtual machine with the correct OS type and attach the converted VHD file.

Once you power on the VM, it should boot and work fine if the partition structure is converted properly.

Here is another problem I encountered. The converted Windows 7 machine kept on restarting in VirtualBox. Do you know why? My physical hard disk is connected via the SATA port on the host computer. So I attached the VHD file to the SATA port on VirtualBox too, but that was wrong.

It started working after I removed the disk and re-attached it to the IDE port of the virtual machine.

Update: This demonstration was done many years ago with the older VirtualBox and Windows OS versions. By the time you read this guide, VirtualBox and Windows OS would have improved the features and auto fix the errors we faced so far.

Try the Following Steps to Solve disk2vhd Errors with VirtualBox

In summary, here are some of the solutions you can try if the virtual machine is not booting after doing P2V with disk2vhd.

  1. Make sure that you are converting system and boot partitions
  2. Remove and attach the converted VHD disk to IDE (if not, SATA) port of the virtual machine
  3. Change the storage type in virtual machine settings
  4. Enable or disable IO APIC and PAE/NX
  5. Insert the Windows installation medium and repair the boot loader and any start-up issues.

Changing disk to IDE from SATA did the trick and I managed to boot on VirtualBox. Here is the successful P2V with disk2vhd.

Converted VM by disk2vhd on VirtualBox

After the migration, install the latest guest additions to get more features and performance boost.

This will be an ideal way to move your working physical computer to VirtualBox or Hyper-V on a different host computer to get maximum portability.

Even though we demonstrated these steps in older versions of products, still, it will work on Windows 10, Windows 11 and the latest versions of Oracle VirtualBox.

Skip to content

Yesterday I wanted to create a VHD from my laptop using Microsoft’s Disk2Vhd.
Unfortunately, after several attempts it always got stuck at about 22GB. Searching the internet revealed that running a disk check might fix it but even that got stuck at 21% (I have about 100GB worth of data so both disk2vhd and chkdsk got stuck at the same point).

Having scheduled the disk check through Windows Explorer I decided to try a bit more “advanced” checks with the chkdsk utility. The magic option seemed to be
chkdsk c: /spotfix

Capture

If you run this from an elevated prompt then it’ll suggest to do the scan on next boot and then it’s just a matter of rebooting and waiting for the disk check to complete. After this the disk2vhd utility would finish like it’s supposed to do.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Acer aspire 5 не видит ssd при установке windows 10
  • Как отключить всплывающую клавиатуру на windows 10
  • Какие разделы нужны для windows 10
  • Редактирование видео в windows 10 бесплатно
  • Создание самоподписанного сертификата windows server 2012