[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] qemu-nbd
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] qemu-nbd |
Date: |
Mon, 26 Mar 2018 20:14:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 2018-03-22 13:17, Pascal wrote:
> hi everybody,
>
> when I use `qemu-nbd -s -c /dev/nbd0 /dev/sda` where are changes to
> /dev/ndb0 saved ?
> I searched in /proc/{pid_of_qemu-nbd}/ but found nothing there...
In snapshot mode, qemu (or in this case qemu-nbd) creates a temporary
qcow2 file in $TMPDIR (or /var/tmp) which will get the changes. You
should see a link to that file in /proc/$pid/fd, like this:
lrwx------. [...] 10 -> /var/tmp/vl.JjYLDm (deleted)
As you can see, the file is deleted right after it is opened, though.
If you want to have control over where the data is stored, you can just
create the overlay yourself, like so:
$ qemu-img create -f qcow2 -b /dev/sda -F raw overlay.qcow2
$ qemu-nbd -c /dev/nbd0 overlay.qcow2
Max
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] qemu-nbd,
Max Reitz <=