Generally, to capture the status and data of a virtual machine at a certain time point, we perform snapshot operations. However, snapshots are stored.
The. avhd file occupies a large amount of storage space. Therefore, we sometimes need to manually delete some snapshots in the hype-V manager,
To save disk space.
The disk space of a VM snapshot can be divided into the following situations based on the Degree:
-
The virtual machine still has a lot of disk space not used, the virtual machine can run normally, manually delete the snapshot to release disk space
-
Virtual Machine disk space is seriously insufficient, the virtual machine is automatically suspended, and the virtual machine cannot be started properly manually
The first case is relatively simple and easier to operate:
1. Open hyper-V manager, select the virtual machine to be maintained, and delete unused snapshots in the snapshot tree;
2. Disable the VM. The VM automatically starts merging disk space and displays the merging progress. Until merge 100% is completed,
When the disk space is released successfully, you can restart the VM.
The premise of merging disks and releasing disk space is that you still have enough disk space on the disk where the virtual machine is located to merge disks,
Otherwise, the merge operation fails. This is the second case.
Case 2:
At this time, the disk space is seriously insufficient, and the disk space cannot be released by merging the disk through downtime. In this case, you can use a virtual machine
Export and Import functions. The execution process is described in detail here.
Check the storage location of the Virtual Disk and snapshot:
650) This. width = 650; "style =" float: none; "Title =" 002.png" alt = "wkiol1pphh1_c3hsaaoiqi8xn1e321.jpg" src = "http://s3.51cto.com/wyfs02/M00/40/92/wKioL1PPHhjwc3HSAAOiQI8xn1E321.jpg" width = "530" Height = "355"/>
Check disk space usage:
650) This. width = 650; "style =" width: 324px; float: none; Height: 84px; "Title =" 003.png" alt = "wKiom1PPHP6wz-lXAABgSYIMpfY486.jpg" src = "http://s3.51cto.com/wyfs02/M02/40/92/wKiom1PPHP6wz-lXAABgSYIMpfY486.jpg" width = "352" Height = "119"/>
Export Virtual Machine:
Before exporting, delete unnecessary snapshots.
In the hyper-V manager, select the virtual machine to be maintained (disable the virtual machine before export), right-click, and select export.
650) This. width = 650; "style =" float: none; "Title =" 1.png" alt = "wKiom1PPHJGz3Fl-AADcrYfTQWA130.jpg" src = "http://s3.51cto.com/wyfs02/M01/40/92/wKiom1PPHJGz3Fl-AADcrYfTQWA130.jpg"/>
Click Browse and select the export location:
Export location: To avoid configuration problems, Microsoft recommends that the export location be different volumes on the same host
650) This. width = 650; "style =" float: none; "Title =" 2.png" alt = "wkiom1pphjhsfh9saachjutghnu200.jpg" src = "http://s3.51cto.com/wyfs02/M02/40/92/wKiom1PPHJHSfh9SAACHJuTgHNU200.jpg"/>
Here, select the F: \ doc directory:
650) This. width = 650; "style =" width: 568px; float: none; Height: pixel PX; "Title =" 3.png" alt = "wkiol1pphaug7vocaaj05w0j12g125.jpg" src = "http://s3.51cto.com/wyfs02/M02/40/92/wKioL1PPHaug7VOCAAJ05W0j12g125.jpg" width = "563" Height = "307"/>
After selecting the location, click "Export" to execute the export action.
650) This. width = 650; "style =" float: none; "Title =" 4.png" alt = "wKioL1PPJEyCzUemAACHNHjv-8g145.jpg" src = "http://s3.51cto.com/wyfs02/M00/40/9B/wKioL1PPJEyCzUemAACHNHjv-8g145.jpg"/>
After the export action is executed, the corresponding export progress is displayed in the task Status column of the virtual machine. After the export is completed,
You can execute the Virtual Machine import operation.
Import VM:
In the hyper-V manager, select the virtual host, right-click, and select "Import Virtual Machine", as shown in:
650) This. width = 650; "style =" float: none; "Title =" 5.png" alt = "wkiom1ppizkbewajaad_5_mo87a542.jpg" src = "http://s3.51cto.com/wyfs02/M02/40/9B/wKiom1PPIzKBewaJAAD_5_MO87A542.jpg"/>
Click Browse at the location, select the location of the virtual machine, and select copy Virtual Machine (create a unique ID )"
Note the following:Select the directory name automatically created during export (usually the same as the Virtual Machine name), instead of the export directory name,
For example, you need to select "F: \ doc \ SharePoint" as follows:
650) This. width = 650; "style =" float: none; "Title =" 6.png" alt = "wkiol1ppjeydmd7paae1dkkniu8112.jpg" src = "http://s3.51cto.com/wyfs02/M01/40/9B/wKioL1PPJEyDmd7pAAE1dKKniU8112.jpg" width = "521" Height = "274"/>
650) This. width = 650; "style =" float: none; "Title =" 7.png" alt = "wkiom1ppizlg10cbaaincjlifby092.jpg" src = "http://s3.51cto.com/wyfs02/M00/40/9B/wKiom1PPIzLg10cBAAINCjliFbY092.jpg" width = "627" Height = "363"/>
After confirming that the information is correct, click "import" to start importing the virtual machine.
650) This. width = 650; "style =" float: none; "Title =" 8.png" alt = "wkiom1ppizkrhkljaae9yz5scsi054.jpg" src = "http://s3.51cto.com/wyfs02/M00/40/9B/wKiom1PPIzKRHKljAAE9YZ5scSI054.jpg"/>
The status bar of the Virtual Machine list task in hyper-V manager displays the import progress percentage until the 100% import is complete.
After the import is complete, the snapshot disks that are automatically deleted are merged and the corresponding space is released. After merging, you can start
The VM is running normally.
For more information, see http://technet.microsoft.com/zh-cn/library/dd560637 (V = ws.10). aspx
This article is from "Shi zhenning's technology blog" blog, please be sure to keep this source http://magic3.blog.51cto.com/1146917/1441627
Hyper-V Virtual Machine snapshot occupies too much disk space, so the virtual machine cannot be started. How can this problem be solved?