Elastic Cloud Virtual Machine Import (migration of server data from other hosting providers to our company)
Published: 2013-08-23
Scope of application and reasons: .vhd is a virtual disk used by hyper-v virtual machines. Using a vhd file to import into our Elastic Cloud can fully import data, avoiding the trouble of redeploying the environment and website. If environment deployment is cumbersome and the data volume is large, this method can be considered.
If you have a vhd file, you can directly refer to the virtual machine import section. If you do not have a vhd, please extract the vhd first.
Note: The system disk (default 30G for our Elastic Cloud) and data disk of the new server must not be smaller than those of the old server; otherwise, the import cannot be performed.
For migration from our Elastic Cloud to Elastic Cloud, please refer to:
Elastic Cloud Host uses Cloud Image to clone and create a new host and migrate data [Cloud Image]
I. Extract the vhd file.
windows system It is recommended to download virtio-win-0.1-74.iso to the server C drive for later use, to facilitate driver installation (do not put it on the D drive, otherwise it cannot be read)
1. You need to prepare two vhd files first: system and data; for example, the system is C.vhd and the data disk is D.vhd.
Log in to the server and downloadhttp://downinfo.myhostadmin.net/disk2vhd.exe. After running it, first select only the system disk, choose the storage path, name the file c.vhd, and then click the create button to start creating.
Note: The disk where the vhd is stored must have at least half its capacity free to avoid insufficient space. The example server in this article has a small amount of data, which is enough to store on the C drive, so in the example it is stored on the desktop.

After completion, select the data disk, choose the storage path, name it d.vhd, and then click the create button to start creating.

![]()
If the server you originally used has one hard disk but is divided into multiple partitions, this import process is very complicated. It is recommended to directly use the traditional method of compressing and packaging to migrate data. If you must use the whole-disk migration method, please consult: 028-62778877 ext. 7 for consultation on solutions and charging standards.
II. Import the virtual machine.
1. Log in to our management center, Business Management -- Server Management -- Manage -- System Management -- Virtual Machine Import. After this function is enabled, the system will automatically create an ftp account and password.



2. Log in to the server, use ftp software on the server to connect to the enabled ftp, and upload the vhd file to the virtual machine import space.

3. After the upload is complete, import the vhd disk.
Note: The system disk and data disk must each be larger than those of the old server. If they are smaller than the old server, please upgrade the disk before proceeding.

4. Click "Load Driver Disk" to install drivers. For Windows2003 system, the network card, scsi hard disk, and pci drivers must all be installed; none can be omitted.

5. Please read the driver installation instructions in detail first, then click the [Console] button. Please note that according to the prompts, install the network card driver, scsi driver, and pci driver first. The operating system must match the driver directory; if the driver is installed incorrectly, it will cause a blue screen. The directory corresponding to the driver is a security boundary.
[Special Note]The operating system must match the driver directory. If the driver is installed incorrectly, it will cause a blue screen. Therefore, when installing disk drivers, you must specify a specific search directory. For [Ethernet Driver], Windows2003 corresponds to the XP directory, Windows2008-R2 corresponds to the Win7 directory, Windows2008 corresponds to the Vista directory, and Windows2012 corresponds to the WIN8 directory. For [SCSI or PCI Driver], Windows2003 corresponds to the WNET directory, Windows2008 corresponds to the WLH directory, and Windows2012 corresponds to the WIN8 directory.

6. After installing the drivers, configure the network cards. Note that the network card named Red Hat VirtIO Ethernet Adapter is the public network card and should be configured with the public IP address; the other one is the private network card. The IP address information is in step 6 of the virtual machine import.

7. Restarting the server may require loading the scsi driver again. Select automatic acquisition; if unsuccessful, specify the c:\windows\system32\drivers directory to install it. Then assign a drive letter to the data disk and restart the system again.
After completing the above steps, the vhd is successfully imported. Please note the following points:
1.The server password management password is the original system password.
2.When installing drivers, install the network card, scsi hard disk, and pci in the correct order; the driver directory must not be wrong, otherwise it may cause a system blue screen and require re-importing the vhd.
3. The system disk of the new server must be larger than that of the old server.
