id = 945 title = "For QEMU 7.0.0-rc1, nbd-server-add fails with qcow2 image with iothread in migration context" state = "closed" created_at = "2022-03-28T12:54:24.088Z" closed_at = "2022-05-05T13:08:56.304Z" labels = ["Regression", "Storage"] url = "https://gitlab.com/qemu-project/qemu/-/issues/945" host-os = "Proxmox VE 7.1 (but using upstream QEMU build)" host-arch = "x86" qemu-version = "QEMU emulator version 6.2.91 (v7.0.0-rc1)" guest-os = "n/a" guest-arch = "n/a" description = """Upon adding the drive for NBD (via QMP), there is an error message ````kvm: ../block.c:3657: bdrv_open_child: Assertion `qemu_in_main_thread()' failed.```` and then the process aborts.""" reproduce = """1. Create image: `qemu-img create -f qcow2 /root/target-disk.qcow2 4G` 2. Start QEMU as mentioned above. 3. Issue `nbd-server-start` QMP command (I used type unix). 4. Issue `nbd-server-add` command for the single disk.""" additional = "n/a"