how to shrink KVM hard drive image -


when copy hd image 1 machine one, file become full size. possible shrink actual size? have google lot nothing found. hope give me clue. thanks!

leo

images can sparsed, , cp might not respect various reasons. would:

  • check real file usage (du -sh vm.img or qemu-img info vm.img)
  • use qemu-img convert -s recreate sparse image
  • convert qcow2 have growing , versatile image instead

Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -