[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Permission error when run block-commit

From: Max Reitz
Subject: Re: Permission error when run block-commit
Date: Mon, 24 Feb 2020 12:12:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 24.02.20 11:58, Derek wrote:
> Hi, Max
> Thanks for your suggestion.
> I'll try it.
> I tried to render the block nodes by scripts/render_block_graph.py.
> image1: https://imgur.com/ivOSf2h
> And, I also created the block nodes like the script
> qemu-system-x86_64 \
> -name vm -enable-kvm -cpu qemu64,+kvmclock -m 1024 \
> -drive 
> if=none,id=middle_disk0,driver=qcow2,file.filename=${dir}/middle.qcow2,file.locking=off,\
> backing.driver=qcow2,backing.file.filename=${dir}/primary.qcow2,backing.file.locking=off
> \
> -drive 
> if=ide,id=top-disk0,driver=qcow2,file.filename=${dir}/top.qcow2,backing=middle_disk0
> \
> -qmp stdio \
> -qmp unix:/tmp/qmp-sock,server,nowait \
> -vnc :0
> The block nodes layout is here.
> image2: https://imgur.com/1VhPPD0
> Is any method to remove "detach" the middle_disk0 Block Backend by qmp
> command or qemu internal API, and turn the image1 into image2?

Not that I know of (perhaps with blockdev-remove-medium, but that’s
definitely not what it’s for, even if it works).  But all in all, I
don’t see why you’re using -drive instead of -blockdev for the middle
node.  Using -blockdev as I’ve proposed should lead to you getting image2.


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]