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

List:       libvirt-users
Subject:    Re: Backup KVM Guest VM in OVA or VMDK format
From:       Kaushal Shriyan <kaushalshriyan () gmail ! com>
Date:       2022-09-22 15:54:14
Message-ID: CAD7Ssm80bRqfCzurBrvBk5xR3nYhas23DiDOZ=ApjByABKE0yg () mail ! gmail ! com
[Download RAW message or body]

l


On Wed, Sep 21, 2022 at 3:56 PM Martin Kletzander <mkletzan@redhat.com>
wrote:

> On Mon, Sep 19, 2022 at 09:13:37PM +0530, Kaushal Shriyan wrote:
> >On Wed, Sep 14, 2022 at 7:38 PM Kaushal Shriyan <kaushalshriyan@gmail.com
> >
> >wrote:
> >
> >>
> >>
> >> On Sat, Sep 3, 2022 at 12:28 AM Kaushal Shriyan <
> kaushalshriyan@gmail.com>
> >> wrote:
> >>
> >>>
> >>>
> >>> On Thu, Sep 1, 2022 at 9:39 PM Kaushal Shriyan <
> kaushalshriyan@gmail.com>
> >>> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> Is there a way to backup KVM Guest VM in kvmguestosimage.ova or
> >>>> kvmguestosimage.vmdk format as I am trying to restore it in AWS by
> >>>> referring to https://aws.amazon.com/ec2/vm-import/ article as per the
> >>>> below supported file format.
> >>>>
> >>>> [1] Open Virtualization Archive (OVA)
> >>>> [2] Virtual Machine Disk (VMDK)
> >>>> [3] Virtual Hard Disk (VHD/VHDX)
> >>>> [4] raw
> >>>>
>
> Well, raw image is the most versatile, but the other formats (especially
> 1 and 2) might have also other metadata like the number of cpus, memory
> size, devices etc.
>
> >>>> Also any method to take full and incremental backup of KVM Guest VM.
> >>>>
>
> I am not experienced with backups, but my guess is you can either create
> your own workflow using various blockjobs or you might want to check out
> backup-* and checkpoint-* commands.
>
> >>>> Any help will be highly appreciated. I look forward to hearing from
> you.
> >>>> Thanks in Advance.
> >>>>
> >>>> Best Regards,
> >>>>
> >>>> Kaushal
> >>>>
> >>>>
> >>>>
> >>> Hi,
> >>>
> >>> Checking in again if someone can pitch in for my earlier post to this
> >>> mailing list. Thanks in advance.
> >>>
> >>> Best Regards,
> >>>
> >>> Kaushal
> >>>
> >>
> >> Hi,
> >>
> >> I followed the below steps by referring to
> >>
> https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html
> >> .
> >>
> >> # qemu-img -h | grep Supported
> >> Supported formats: blkdebug blklogwrites blkverify compress
> >> copy-before-write copy-on-read file ftp ftps gluster host_cdrom
> host_device
> >> http https iscsi iser luks nbd null-aio null-co nvme preallocate qcow2
> >> quorum raw rbd ssh throttle vhdx vmdk vpc
> >>
>
> This might be a bit misleading since VMDK may meat a lot of things, it's
> not one format, it can store different things, and the support may mean
> different things.
>
> >> # qemu-img --version
> >> qemu-img version 6.2.0 (qemu-kvm-6.2.0-12.module_el8.7.0+1140+ff0772f9)
> >> Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
> >> #
> >>
> >> *Step No. 1*
> >> #qemu-img convert -O vmdk openapibox.img openapibox.vmdk -p
> >>
>
> I see you are also just using QEMU, is this anyway libvirt-related or
> are you just using qemu command line?
>
> Since you are not adding any metadata, then why not just use the raw
> image since I presume openapibox.img is in raw and not qcow format.  If
> it is qcow, then you can convert it to raw and use that.  The
> disadvantage of the raw format is also the fact that most tools will not
> keep the sparseness, so you might end up with a high storage usage.
> Maybe you can try vhdx instead since that *should* just be a disk image.
>

Thanks Martin and appreciate it. I will try it out and keep you posted.
Thanks in advance.

Best Regards,

Kausha

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"><div>l  <br></div></div><div dir="ltr"><div \
dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On \
Wed, Sep 21, 2022 at 3:56 PM Martin Kletzander &lt;<a \
href="mailto:mkletzan@redhat.com" target="_blank">mkletzan@redhat.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Sep 19, 2022 \
at 09:13:37PM +0530, Kaushal Shriyan wrote:<br> &gt;On Wed, Sep 14, 2022 at 7:38 PM \
Kaushal Shriyan &lt;<a href="mailto:kaushalshriyan@gmail.com" \
target="_blank">kaushalshriyan@gmail.com</a>&gt;<br> &gt;wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Sep 3, 2022 at 12:28 AM Kaushal Shriyan &lt;<a \
href="mailto:kaushalshriyan@gmail.com" \
target="_blank">kaushalshriyan@gmail.com</a>&gt;<br> &gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Thu, Sep 1, 2022 at 9:39 PM Kaushal Shriyan &lt;<a \
href="mailto:kaushalshriyan@gmail.com" \
target="_blank">kaushalshriyan@gmail.com</a>&gt;<br> &gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Is there a way to backup KVM Guest VM in kvmguestosimage.ova or<br>
&gt;&gt;&gt;&gt; kvmguestosimage.vmdk format as I am trying to restore it in AWS \
by<br> &gt;&gt;&gt;&gt; referring to <a href="https://aws.amazon.com/ec2/vm-import/" \
rel="noreferrer" target="_blank">https://aws.amazon.com/ec2/vm-import/</a> article as \
per the<br> &gt;&gt;&gt;&gt; below supported file format.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; [1] Open Virtualization Archive (OVA)<br>
&gt;&gt;&gt;&gt; [2] Virtual Machine Disk (VMDK)<br>
&gt;&gt;&gt;&gt; [3] Virtual Hard Disk (VHD/VHDX)<br>
&gt;&gt;&gt;&gt; [4] raw<br>
&gt;&gt;&gt;&gt;<br>
<br>
Well, raw image is the most versatile, but the other formats (especially<br>
1 and 2) might have also other metadata like the number of cpus, memory<br>
size, devices etc.<br>
<br>
&gt;&gt;&gt;&gt; Also any method to take full and incremental backup of KVM Guest \
VM.<br> &gt;&gt;&gt;&gt;<br>
<br>
I am not experienced with backups, but my guess is you can either create<br>
your own workflow using various blockjobs or you might want to check out<br>
backup-* and checkpoint-* commands.<br>
<br>
&gt;&gt;&gt;&gt; Any help will be highly appreciated. I look forward to hearing from \
you.<br> &gt;&gt;&gt;&gt; Thanks in Advance.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Best Regards,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Kaushal<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Checking in again if someone can pitch in for my earlier post to \
this<br> &gt;&gt;&gt; mailing list. Thanks in advance.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Best Regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Kaushal<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I followed the below steps by referring to<br>
&gt;&gt; <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html" \
rel="noreferrer" target="_blank">https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html</a><br>
 &gt;&gt; .<br>
&gt;&gt;<br>
&gt;&gt; # qemu-img -h | grep Supported<br>
&gt;&gt; Supported formats: blkdebug blklogwrites blkverify compress<br>
&gt;&gt; copy-before-write copy-on-read file ftp ftps gluster host_cdrom \
host_device<br> &gt;&gt; http https iscsi iser luks nbd null-aio null-co nvme \
preallocate qcow2<br> &gt;&gt; quorum raw rbd ssh throttle vhdx vmdk vpc<br>
&gt;&gt;<br>
<br>
This might be a bit misleading since VMDK may meat a lot of things, it&#39;s<br>
not one format, it can store different things, and the support may mean<br>
different things.<br>
<br>
&gt;&gt; # qemu-img --version<br>
&gt;&gt; qemu-img version 6.2.0 (qemu-kvm-6.2.0-12.module_el8.7.0+1140+ff0772f9)<br>
&gt;&gt; Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers<br>
&gt;&gt; #<br>
&gt;&gt;<br>
&gt;&gt; *Step No. 1*<br>
&gt;&gt; #qemu-img convert -O vmdk openapibox.img openapibox.vmdk -p<br>
&gt;&gt;<br>
<br>
I see you are also just using QEMU, is this anyway libvirt-related or<br>
are you just using qemu command line?<br>
<br>
Since you are not adding any metadata, then why not just use the raw<br>
image since I presume openapibox.img is in raw and not qcow format.   If<br>
it is qcow, then you can convert it to raw and use that.   The<br>
disadvantage of the raw format is also the fact that most tools will not<br>
keep the sparseness, so you might end up with a high storage usage.<br>
Maybe you can try vhdx instead since that *should* just be a disk \
image.<br></blockquote><div><br></div><div><div>Thanks Martin and appreciate it. I \
will try it out and keep you posted. Thanks in  \
advance.</div><div><br></div><div>Best \
Regards,</div><div><br></div><div>Kausha</div></div></div></div> </div>



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

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