qemu-discuss
[Top][All Lists]
Advanced

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

Re: Exporting qcow2 images as raw data from ova file with qemu-nbd


From: Nir Soffer
Subject: Re: Exporting qcow2 images as raw data from ova file with qemu-nbd
Date: Tue, 23 Jun 2020 13:14:43 +0300

On Tue, Jun 23, 2020 at 12:47 PM Richard W.M. Jones <rjones@redhat.com> wrote:
>
>
> Here you go:
>
> https://github.com/libguestfs/nbdkit/commit/2d15e79f65764d9b0c68bea28ed6afbcbcc63467

Nice!

But using qemu-nbd directly is much simpler and will perform better.

Regardless, nbdit tar plugin is awesome. Is it possible to expose all
the disks from
a tar file so they are accessible using the export name?

For example:

$ nbdkit tar file=vm.ova

$ qemu-nbd --list
exports available: 2
 export: 'disk1.qcow2'
  size:  910848
  flags: 0x48f ( readonly flush fua df cache )
  min block: 512
  opt block: 4096
  max block: 33554432
  available meta contexts: 1
   base:allocation
 export: 'disk2.qcow2'
  size:  910848
  flags: 0x48f ( readonly flush fua df cache )
  min block: 512
  opt block: 4096
  max block: 33554432
  available meta contexts: 1
   base:allocation

$  qemu-img convert -f qcow2 -O raw nbb://localhost/disk1.qcow2 disk1.raw

$  qemu-img convert -f qcow2 -O raw nbb://localhost/disk2.qcow2 disk2.raw

> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-top is 'top' for virtual machines.  Tiny program with many
> powerful monitoring features, net stats, disk stats, logging, etc.
> http://people.redhat.com/~rjones/virt-top
>




reply via email to

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