Today, I took a physical server running windows server 2008 and used Disk2vhd to do an experiment for everyone to migrate the physical server to the windows hyper-v virtualization platform;
1. Microsoft has a special tool that can convert physical machine hard disks into VHD, just look at the name, disk2vhd, just go to the official website to search and download, the version is a bit old, 2014, but very small, compressed The package is only 878KB, which is short and powerful
2. After downloading, just run it directly on the physical disk that needs to be converted. Note: 1. Do not run on the C drive; 2. The D drive can be backed up separately. There is no need to transfer it out together, and the system disk is perfectly transferred. That’s the point, so I only choose the C drive here. Of course, it’s okay to have to transfer together, I just want to make this process faster;
3. Click "create" to start creating a VHD. The speed is quite fast. After the creation is completed, remember to click "close" to close the window, otherwise the generated VHD file will not be able to complete the copying process. I just copied halfway and when the system fails, I just remembered and clicked this "close". As a result, the file not only failed to be copied, but also disappeared somehow. I had to "create" again, which was really embarrassing. . . So, don’t step on the pits I’ve stepped on again;
4. Copy the generated VHD file to the hyper-v server and start creating a virtual machine
5. Note that the virtual hard disk selects the VHD file (or VHDX file) just copied over
6. After the virtual machine is created, start the virtual machine directly. If you find that it cannot be started, insert a WINPE CD into the virtual machine (that is, import the WINPE ISO image file into the virtual machine's CD-ROM drive), and use the startup repair tool to repair it. Up
7. Just like the vmware virtual machine needs to install vmtools, after the hyper-v virtual machine is up, you must first install the hyper-v toolkit (mainly install some corresponding drivers and services);
8. After the installation is complete, restart the virtual machine as required, and then check the device manager, all drivers are installed correctly
9. Test the network, test the original services and applications, everything is normal! At this point, the windows server 2008 physical server has been converted into a hyper-v virtual server successfully!