qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* How to create vhdx differencing disk using qemu-img
@ 2021-03-18  2:37 qi zhou
  2021-03-18 19:49 ` John Snow
  0 siblings, 1 reply; 2+ messages in thread
From: qi zhou @ 2021-03-18  2:37 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

When I create vhdx differencing disk using qemu-img, It says
 qemu-img: xxx.vhd Backing file not supported for file format 'vhdx'

The command I used is
qemu-img create -f vhdx -b test.vhdx test-snapshot.vhdx

Here is my questions
1. Is vhdx format [full] supported by qemu ?
2. If not, is there any easy way to implement differencing disk of vhdx in qemu-img ?
3. Is there any other tools support vhdx on linux ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to create vhdx differencing disk using qemu-img
  2021-03-18  2:37 How to create vhdx differencing disk using qemu-img qi zhou
@ 2021-03-18 19:49 ` John Snow
  0 siblings, 0 replies; 2+ messages in thread
From: John Snow @ 2021-03-18 19:49 UTC (permalink / raw)
  To: qi zhou, qemu-devel@nongnu.org; +Cc: Qemu-block

On 3/17/21 10:37 PM, qi zhou wrote:
> When I create vhdx differencing disk using qemu-img, It says
>   qemu-img: xxx.vhd Backing file not supported for file format 'vhdx'
> 
> The command I used is
> qemu-img create -f vhdx -b test.vhdx test-snapshot.vhdx
> 
> Here is my questions
> 1. Is vhdx format [full] supported by qemu ?

We support raw and qcow2 fully, read-write.

Everything else is "read-only", though write support might work, we 
don't encourage its use in production environments.

> 2. If not, is there any easy way to implement differencing disk of vhdx in qemu-img ?

the -b flag is generally for qcow2 files; I am not very familiar with 
VHDX but it appears as though we don't support it here.

I imagine it's 
https://www.altaro.com/hyper-v/hyper-v-differencing-disks-explained/ ?

I don't think we support those... ah, yeah, in block/vhdx.c:

typedef enum VHDXImageType {
     VHDX_TYPE_DYNAMIC = 0,
     VHDX_TYPE_FIXED,
     VHDX_TYPE_DIFFERENCING,   /* Currently unsupported */
} VHDXImageType;

> 3. Is there any other tools support vhdx on linux ?
> 

Not that I'm aware of, but I can't say I've looked before.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-18 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-18  2:37 How to create vhdx differencing disk using qemu-img qi zhou
2021-03-18 19:49 ` John Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).