1, start Vmware;; Be careful not to start the virtual system! ! ! 5 p/ B [+ Select the VM > setting, select the virtual disk to defragment on the left, and then click Defragment on the right. Disk defragmentation is performed on the partition where the virtual disk is located in the host system. 5x 7 S2 @ * K & amp; |(| & amp; n,t . y 1x; X5 G
2. Start Vmware and start the virtual system. Double-click the icon in the lower right corner of the system, or select Start-Settings-Control Panel-VMware Tools. ) Select Shrink, select the disk you want to defragment, and then click Prepare for Shrink. Select Yes in the window that appears. When the prompt window appears again, you have successfully lost weight for the virtual disk!
Automatic expansion of virtual hard disk. In other words, every time you put some files, there will be a little expansion, and these expansions will not decrease with the deletion of files.
If too many applications are installed in the virtual machine operating system, more virtual hard disk space is needed. Then the file amount of the virtual hard disk space in the virtual machine will automatically increase accordingly, but even if the installed application software is uninstalled in the virtual machine, the file amount of the virtual hard disk space will not automatically decrease. In addition, if the WINXP system is installed in the virtual machine and its recovery function is not turned off, the files of the virtual machine will also increase due to the increasing number of recovered files.
1. Shut down the operating system in the current virtual machine, and then execute the "clone" command in the menu bar of the virtual machine. Note: When selecting the cloning mode, you should select "Create Full Clone", then give the new virtual machine a name, specify the storage location, and click Finish to see if the new virtual machine folder is smaller than the original one, and the old one can be directly deleted from the disk.
I found it online. The following methods are for reference only, and the path should be modified according to my actual situation. I have never used them, and I am responsible for these mistakes:
Preparing to shrink the virtual disk
Command: vmware-vdiskmanager p S:
After the preparatory work is completed, cancel the partition mapping. Repeat this process on each partition of the virtual disk. (This can get the best shrinking effect) After you have shrunk all the partitions of the disk, you can shrink the virtual disk.
Actual command input:
C:\Program Files\VMware\VMware workstation & gtvmware-vdiskmanager -p S:
The implementation results show that:
Use the log file c: \ docume ~1\ anegg \ locales ~1\ temp \ VMware-anegg \ vdiskmanager.log.
100% wiping completed.
Shrink virtual disk
Shrinking the virtual disk must be done under the Windows host. Before shrinking the virtual disk, make sure that you are ready to shrink all partitions of the virtual disk.
Command: VMware-vdiskmanager-kmydisk.vmdk.
Remember that you cannot shrink pre-allocated disks. You cannot shrink the physical disk. If the virtual disk has a snapshot, you cannot shrink it. Delete all snapshots before shrinking.
Actual command input:
C:\Program Files\VMware\VMware workstation & gtvmware-vdiskmanager-k d: \ WinXP SP2 v2.5 \ Windows XP professionals s.vmdk.
The implementation results show that:
Use the log file c: \ docume ~1\ an ...>>
Question 2: The files of the virtual machine are getting bigger and bigger, and the hard disk is almost full. What should I do? One: Virtual machines occupy more and more space.
In a virtual machine, all files add up to about 24GB;;
But the whole virtual machine takes up about 4 1GB of disk space of the host.
end
Two: How to reduce the disk occupation of the host by the virtual machine?
In the long-term use of virtual machines, a large number of snapshots may be created, and snapshot files will also occupy a lot of disk space of the host.
We can reduce the disk occupation of the host by virtual machines by deleting useless snapshots.
How to delete a virtual machine snapshot?
Click the Manage Virtual Machine Snapshots button;
Select the snapshot to delete;
Click "Delete";
Click Yes and confirm deleting the snapshot;
Clear the deleted files until it is finished;
After successfully deleting the snapshot, check the space occupied by the virtual machine;
Deleting only one snapshot can reduce the occupied space by about 4.6GB;
Question 3: The virtual machine disk is full. What if it doesn't start? I can only delete other redundant snapshots or delete useless files on the disk to free up disk space.
Question 4: How to add hard disk memory to a virtual machine? What should I do if I find that disk C is too small to use? I don't know if it's a vm or another virtual machine.
If it's vm's, it's there.
Can be modified. happy
I hope it helps you.
Question 5: What should I do if the hard disk of Linux virtual machine is not enough? 1. If you use lvm to manage disks, you can directly extend the logical volume and then extend the file system without damaging the original system.
2. If you only use the ordinary partition management method, you can transfer the partition by mounting it to the directory.
For example, /usr/local has a lot of software installed. You can add a disk, format the partition, first mount it to a temporary directory, such as /mnt, then copy the files in /usr/local to /mnt, uninstall /mnt, and mount the new partition to /usr/local.
Question 6: What if the disk space is full? If the virtual machine disk is full of expansion space, see my previous similar answer.
zhidao.baidu/question/227 1028533272854 148
Question 7: Why does the virtual machine disk suddenly fill the storage partition in figure 30G of 10 virtual machines, and only one virtual machine can use 3G, which is really a little small!
If 10 virtual machines are the same system, it is suggested to install a parent virtual machine now, and then link the clone, which can effectively reduce the occupation of the virtual machine on the host disk space!
Question 8: The virtual machine file is getting bigger and bigger, and the hard disk is almost full. What should I do? 1. Open the virtual machine, start the system, clean up the junk files in the system, and then shut down the system. 2. Click "Edit Virtual Machine Settings" under the "Command" option, or select "Hard Disk" on the right. 3. Select the "Hard Disk" option in the pop-up window, and then click "Defragment" on the right to defragment. 4. Restart the system after defragmentation. 5. After entering the system, click the VMWARE TOOLS icon in the lower right corner to pop up this dialog box. If VMWARE TOOLS is not installed, please install it first. 6. Click the Shrinkage tab 7. Select disk 8. Click the Ready to Shrink button to prepare for compression. The next step is to determine whether to compress. If so, compress. If not, give up trying.
Question 9: The virtual machine file is getting bigger and bigger, and it is almost full of hard disks. What can I do to change a partition?
If it doesn't work, just delete it and install it.
good luck
Question 10: How to solve the problem of full host hard disk by virtual machine? Get a bigger hard drive!
Or delete unnecessary virtual machines.
The same virtual machine uses linked clones to save space!
Want to succeed in stovepipe thighs and have slender * * *? Try stovepipe. Let me introduce it to you, I hope it will be useful to you!
Knee grip: Hold hands in pincers, from