qemu-discuss
[Top][All Lists]
Advanced

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

Re: Permission error when run block-commit


From: Jing-Wei Su
Subject: Re: Permission error when run block-commit
Date: Mon, 24 Feb 2020 23:17:41 +0800

Hello, Max

I've tried your method.
It works like a charm.
Thanks for your help.

Jing-Wei

Max Reitz <address@hidden> 於 2020年2月24日 週一 下午7:12寫道:
>
> 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.
>
> Max
>



reply via email to

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