diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-05-21 21:21:26 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-05-21 21:21:26 +0200 |
| commit | 4b927bc37359dec23f67d3427fc982945f24f404 (patch) | |
| tree | 245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_missing/host_missing/accel_missing/2102.toml | |
| parent | aa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff) | |
| download | emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.zip | |
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/2102.toml')
| -rw-r--r-- | gitlab/issues/target_missing/host_missing/accel_missing/2102.toml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/2102.toml b/gitlab/issues/target_missing/host_missing/accel_missing/2102.toml new file mode 100644 index 00000000..a43f586f --- /dev/null +++ b/gitlab/issues/target_missing/host_missing/accel_missing/2102.toml @@ -0,0 +1,48 @@ +id = 2102 +title = "\"qemu-img resize -f qcow2\" produces broken disk images" +state = "closed" +created_at = "2024-01-16T12:15:05.030Z" +closed_at = "2024-01-17T17:04:19.091Z" +labels = ["block:qcow2"] +url = "https://gitlab.com/qemu-project/qemu/-/issues/2102" +host-os = "Ubuntu 22.04" +host-arch = "x86_64" +qemu-version = "8.2.0" +guest-os = "- OS/kernel version:" +guest-arch = "## Description of problem" +description = """The documentation of `qemu-img` at +<https://www.qemu.org/docs/master/tools/qemu-img.html> +makes it sound like `qemu-img resize` supports various image formats +(raw, qcow2, etc.) in the same way. + +But it doesn't. While `qemu-img resize -f raw` works as expected, +`qemu-img resize -f qcow2` produces broken disk images.""" +reproduce = """``` +$ wget http://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/evbarm-aarch64/binary/gzimg/arm64.img.gz +$ gunzip arm64.img +``` + +First resize, then convert: +``` +$ cp arm64.img arm64-rc.img +$ qemu-img resize -f raw arm64-rc.img 10G +$ qemu-img convert -f raw -O qcow2 arm64-rc.img arm64-rc.qcow2 +$ rm -f arm64-rc.img +``` + +First convert, then resize: +``` +$ qemu-img convert -f raw -O qcow2 arm64.img arm64-cr.qcow2 +$ qemu-img resize -f qcow2 arm64-cr.qcow2 10G +``` + +Attach to a VM in VirtualBox (as an additional SATA disk) and start that VM. + +arm64-rc.qcow2 => +`# fdisk /dev/sdb` => it has two partitions. + +arm64-cr.qcow2 => +`# fdisk /dev/sdb` => it has no partitions! +And the VM cannot be cleanly shut down. I had to manually kill the VirtualBoxVM +process.""" +additional = """""" |