This document describes how to prepare an image for the Windows Server 2012 operating system. You can also refer to this document for other versions of Windows Server.
Before preparing and exporting a system disk image, complete the following checks.
Note:If you need to prepare and export a data disk image, skip this operation.
bcdedit /enum {current}
A result similar to the following will be returned:Windows boot loader
ID {current}
device partition=C:
path \WINDOWS\system32\winload.exe
description Windows 10
locale zh-CN
inherit {bootloadersettings}
recoverysequence {f9dbeba1-1935-11e8-88dd-ff37cca2625c}
displaymessageoverride Recovery
recoveryenabled Yes
flightsigning Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \WINDOWS
resumeobject {1bcd0c6f-1935-11e8-8d3e-3464a915af28}
nx OptIn
bootmenupolicy Standard
path
contains "efi", the operating system starts in EFI mode. In this case, submit a ticket.path
does not contain "efi", go to the next step.Uninstall the conflicting drivers and software (including VMware tools, Xen tools, Virtualbox GuestAdditions, and other software that comes with underlying drivers).
Install cloud-base as instructed in Installing Cloudbase-Init on Windows.
http://mirrors.tencent.com/install/windows/virtio_64_1.0.9.exe
http://mirrors.tencentyun.com/install/windows/virtio_64_1.0.9.exe
After the migration to the cloud, hardware changes include but are not limited to:
You can use various tools to export an image according to your requirements.
For more information on how to use the image export tools of virtualization platforms, such as VMWare vCenter Convert and Citrix XenConvert, see the document for the respective platform.
Note
Tencent Cloud’s service migration supports images in qcow2, vhd, raw, and vmdk formats.
Note:The image file system that you prepare may be corrupted because you prepared the image without stopping the service or due to other reasons. Therefore, we recommend that you check the image after preparing it.
If the image format is supported by the current platform, you can directly open the image to check the file system. For example, the Windows platform supports images in the vhd format; the Linux platform allows you to use qemu-nbd to open images in the qcow2 format; and the Xen platform allows you to directly open files in the vhd format.
This document describes how to check the VHD images through Attach VHD in Disk Management on a Windows server.
Was this page helpful?