windows v2v issue

 

 

 


Server 2012 R2

 

情況: 下載在 AWS export AMI

First Step: vmdk -> raw

qemu-img convert -f vmdk export-ami-ID.vmdk vm.raw

原因:

  • vmdk 在 qemu (V3.1 # Debian 10) 上極慢
  • 不直接在 aws 上 export raw 檔, 因為 vmdk 有壓縮 (80G -> 26G)

Second Step: Disable automatic resetart on system failure

F8 -> Disable automatic resetart on system failure

Boot Fail with Error:

INACCESSIBLE_BOOT_DEVICE

Fix

1. Boot with DVD

2. 選 "Next" > 選"Repair your computer" > 選"Troubleshoot" > 選"Command Prompt"

3. 用 diskpart 查看 system 有沒有 map drive

diskpart

list vol          # Locate the number of the OS

exit

4. bootrec

cd /d c:\boot

ren BCD BCD.bak

bootrec /fixmbr

bootrec /fixboot

bootrec /rebuildbcd      # bootrec /scanos

bcdboot c:\windows /l en-us /s C: /f ALL /v

Remark

/l       # Optional. Specifies the locale. The default is US English (en-us).

/s      # Optional. Specifies the volume letter of the system partition.

         # Use this setting to specify a system partition when you are configuring a drive

         # that will be booted on another computer, such as a USB flash drive or a secondary hard drive.

/f      # Optional. Specifies the firmware type. Valid values include UEFI, BIOS, and ALL.

/v      # Optional. Enables verbose mode.

# Lists entries in a store. The /enum option is the default value for BCEdit

bcdedit /enum