Advertisement
lifeboy

Untitled

Jun 6th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.68 KB | None | 0 0
  1. # qemu-img info vm-103-disk-2.vhd
  2. image: vm-103-disk-2.vhd
  3. file format: vpc
  4. virtual size: 32G (34223431680 bytes)
  5. disk size: 168G
  6. cluster_size: 2097152
  7.  
  8. # qemu-img convert -O raw vm-103-disk-2.vhd rbd:IMB-main-pool_vm/vm-103-disk-2
  9. This results in a 32GB file, not a 200GB file.
  10.  
  11. However:
  12. # ls -lah
  13. -rw------- 1 root root 168G Jun  6 10:50 vm-103-disk-2.vhd
  14.  
  15. In the windows guest with the disk image mounted:
  16. Disk space: 199GB
  17. Free: 19.2GB
  18.  
  19. The original running image shows different values, but also incorrect.
  20.  
  21. # qemu-img info IMB_Win02_DDrive.vhd
  22. image: IMB_Win02_DDrive.vhd
  23. file format: vpc
  24. virtual size: 32G (34223431680 bytes)
  25. disk size: 57G
  26. cluster_size: 2097152
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement