Virtual Machine environment maintenance-VDI to VMDK, VMDK slimming

Source: Internet
Author: User

VDI-VMDK for virtual machine environment maintenance, VMDK for virtual machine environment maintenance, VDI-VMDK for maintenance, VMDK for three times after being abused by Virutal Box, I was happy to give up. VDI Virtual hard disk is really awesome. I am hurt in my heart. Fortunately, VDI can be switched to VMDK, while the Virtual Machine of Virtual box can also be opened, open the manager in Virtual BOX software, you must use the clone method to convert VDI into a Clone Virtual hard disk, create a vmwarevm, and use the VMDK. From then on, the Virtual Box is a passer-by and I will unmount it directly. I found that the VMDK file was too large, so I searched Google and used Vmware Tools to slim down the VMDK. vmware-vdiskmanager-k *. vmdk, but I found it was actually not thin. In fact, there is such a reason that the VMDK file is large because the guest system always occupies space and does not release it. It does not release the space by itself, and it cannot achieve its goal if it wants to use other tools to force it to release. Search Google again. In this case, use the root user command: cat/dev/zero> zero on the guest terminal. fill, until this command cannot be executed. The guest system prompts that there is not enough space. Then ls-l will check this zero. the fill file is too large. Delete it happily, turn off the guest system, and use the vmware-vdiskmanager command to quickly lose weight. No error is found, but it is a good habit to back up before executing this slimming command. If your guest system is not created in single disk mode, but is created using scattered files, there will be a lot of VMDK files in the Virtual Machine directory, you should find the first one, such as the virtual machine called centos, vmware-vdiskmanager-k centos. in addition, to reduce the size of the vmdk, you must delete all the previous snapshots. Similarly, if the previous snapshots are important, back up them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.