Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of compressing VM disk files

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces to you what is the method of compressing VM disk files, the content is very detailed, interested friends can refer to it, I hope it can be helpful to you.

General methods to compress VM disk files:

-in the virtual machine:

1. Delete useless files.

2. Dd if=/dev/zero of=file method to fill all disk space with files (one or more files) with binary 0 content.

Delete the file that fills the space.

-- turn off the virtual machine and operate outside the virtual machine:

Use the tools of the virtual machine to copy / compress the disk image.

Or command: vmware-vdiskmanager.exe-k c:\ vm\ linuxvm-0.vmdk

Reason:

-when a virtual machine operates a disk image, it is similar to operating only sectors, regardless of the type and content of the file system on it

-the storage of disk mirroring is similar to that of sparse matrix, and the space can be released only when the data is all zero.

-the release of all-zero space requires external tool operation, and there seems to be no dynamic release at present.

To compile a big project in VM, it is best to hang a separate disk image, mount to a directory, and then play casually. Kill the mirror image directly when you're done.

On the method of compressing VM disk files is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report