summary refs log tree commit diff stats
path: root/gitlab/issues_text/target_missing/host_missing/accel_missing/986
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/issues_text/target_missing/host_missing/accel_missing/986')
-rw-r--r--gitlab/issues_text/target_missing/host_missing/accel_missing/98639
1 files changed, 39 insertions, 0 deletions
diff --git a/gitlab/issues_text/target_missing/host_missing/accel_missing/986 b/gitlab/issues_text/target_missing/host_missing/accel_missing/986
new file mode 100644
index 000000000..ceee89eb0
--- /dev/null
+++ b/gitlab/issues_text/target_missing/host_missing/accel_missing/986
@@ -0,0 +1,39 @@
+vpc images are created with bigger virtual size than required
+Description of problem:
+Required virtual size is 895287296, but as qemu-img info reports it is 895426560.
+Steps to reproduce:
+1. qemu-img create -f vpc img1.vpc 895287296
+2. qemu-img info img1.vpc
+Additional information:
+Converting back and forth is not possible as a result
+   ```
+$ qemu-img info openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso 
+image: openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso
+file format: raw
+virtual size: 854 MiB (895287296 bytes)
+disk size: 854 MiB
+
+$ qemu-img create -f vpc img1.vpc 895287296
+Formatting 'img1.vpc', fmt=vpc size=895287296
+
+$ qemu-img convert -n \
+    -f raw openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso \
+    -O vpc img1.vpc
+    
+$ qemu-img compare \
+    -f raw openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso \
+    -F vpc img1.vpc
+Warning: Image size mismatch!
+Images are identical.
+
+$ qemu-img create -f raw img2.raw 895287296
+Formatting 'img2.raw', fmt=raw size=895287296
+
+$ qemu-img convert -n -f vpc img1.vpc -O raw img2.raw
+qemu-img: output file is smaller than input file
+
+$ qemu-img compare \
+    -f raw openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso \
+    -F raw img2.raw
+Content mismatch at offset 0!
+   ```