sebrina Posted July 2, 2022 Share Posted July 2, 2022 虚拟机没有规划好,设置的1T 的qcow2,放在缓存里面的 现在 已经使用了500多G了,我把虚拟机里面的东西搬了一部分出来,现在虚拟机实际使用只有160g但是在缓存盘里面镜像文件还有500多G 想问下这个镜像能不能缩小呢,因为所有东西都设置好了 ,不想重新开一个虚拟机 Quote Link to comment
jinlife Posted July 2, 2022 Share Posted July 2, 2022 (edited) 可以。不过用过挺麻烦的。你需要先把之前用过的空间整理一下,该清零的地方清零,再压缩。 VM是Linux或者Windows,清零的方式还不一样,有一定的风险把数据搞丢。不如新建个虚拟机把东西搬过去安全。 这种KVM虚拟机操作的东西都通用的: https://zhaoxh.cn/post/2014/compress-image/ Edited July 2, 2022 by jinlife Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.