[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libguestfs
Subject:    Re: [Libguestfs] Question about mounting QCOW2 files....
From:       Raghuram Devarakonda <draghuram () gmail ! com>
Date:       2018-10-16 14:00:20
Message-ID: CALtL6Bcr7mqDFKPtBvWQ5wGdGw+EmD7-d86_mZ9BQojTrRQ99g () mail ! gmail ! com
[Download RAW message or body]

On Tue, Oct 16, 2018 at 9:28 AM Richard W.M. Jones <rjones@redhat.com> wrote:
> > We would like to create and write to a large sparse file but would
> > like to keep the file on disk itself in compact format. So we are not
> > talking about a file system but a single file. I guess this means
> > creating qcow2 disk and attach as a local device?
>
> I'm still a little unclear, but most likely:
>
>   qemu-nbd -c /dev/nbd0 file.qcow2
>   qemu-nbd -d /dev/nbd0
>
> The first command will attach file.qcow2 to /dev/nbd0, making it
> appear as a normal host device.  The second will detach it.

Thanks. I will try it.

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic