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

List:       libvirt-users
Subject:    Re: [libvirt-users] About .img file while creating vm
From:       Daniel Romero <romero.cl () gmail ! com>
Date:       2018-03-09 15:55:23
Message-ID: CACVPrdnRvGyFj=Cu5ATRoNn+sHyO-hTvYokA5j5Q1GxmXcZf7Q () mail ! gmail ! com
[Download RAW message or body]

Hi,

the .img is a file that will be exposed to the guest VM as a block device
(HD). You can create an empty one using qemu-img or dd (full space
allocation), or use one that already have an OS image whitin.

Atte.
Daniel Romero P.


On Fri, Mar 9, 2018 at 12:51 AM, amey pandit <panditamey1@gmail.com> wrote:

> Hi,
>
> I am trying to create vm using virsh create x.xml. But I am confused as
> what is the .img file that is required.
> Here is the Disk tag from my xml.
>  <disk type='file' device='disk'>
>       <driver name='qemu' type='qcow2'/>
> *      <source file='/xxx/xx_vm.img'/>                 *
>       <target dev='hda'/>
>     </disk>
> Is it .ova file that is converted to .img ?
> If anybody have links or some guide related to the topic that would be
> really helpful.
>
> Thank you,
> Amey
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users@redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi,<br><br></div>the .img is a file that will be exposed to the \
guest VM as a block device (HD). You can create an empty one using qemu-img or dd \
(full space allocation), or use one that already have an OS image \
whitin.<br></div><div class="gmail_extra"><br clear="all"><div><div \
class="gmail_signature" data-smartmail="gmail_signature">Atte.<br>Daniel Romero \
P.<br><br></div></div> <br><div class="gmail_quote">On Fri, Mar 9, 2018 at 12:51 AM, \
amey pandit <span dir="ltr">&lt;<a href="mailto:panditamey1@gmail.com" \
target="_blank">panditamey1@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am \
trying to create vm using virsh create x.xml. But I am confus<span \
style="background-color:rgb(255,0,0)"><span></span></span>ed as what is the .img file \
that is required. <br></div><div>Here is the Disk tag from my xml.<br>  &lt;disk \
type=&#39;file&#39; device=&#39;disk&#39;&gt; <br>           &lt;driver \
name=&#39;qemu&#39; type=&#39;qcow2&#39;/&gt; <br><span \
style="background-color:rgb(255,255,0)"><span style="color:rgb(255,0,0)"><u>          \
&lt;source file=&#39;/xxx/xx_vm.img&#39;/&gt;              <wbr>                    \
</u> </span></span><br>           &lt;target dev=&#39;hda&#39;/&gt; <br>       \
&lt;/disk&gt; <br></div><div>Is it .ova file that is converted to .img ?<br></div>If \
anybody have links or some guide related to the topic that would be really \
helpful.<br></div><div><br></div>Thank you,<br></div>Amey<br></div> \
<br>______________________________<wbr>_________________<br> libvirt-users mailing \
list<br> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" \
target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/libvirt-users</a><br></blockquote></div><br></div>




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

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