<div dir="ltr"><div>Cole, thank you for answers!</div><div>Could you please tell about:</div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-25 17:19 GMT+02:00 Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 01/23/2016 10:36 AM, mkov wrote:<br>
> Hello,<br>
> Please, help me to figure out how to convert VMWare guestId to libvirt<br>
> os-variant.<br>
> For example,<br>
><br>
> guestosid:<br>
> centos64Guest<br>
> centosGuest<br>
><br>
> os-variant:<br>
> centos6.0<br>
> centos6.1<br>
> centos6.2<br>
> centos6.3<br>
> centos6.4<br>
> centos6.5<br>
> centos7.0<br>
><br>
<br>
</span>There isn't any easy way to convert. We could track it in libosinfo but the<br>
vmware bits are quite fine grained. I'm not sure what configuration bits<br>
vmware will change depending on the guestosid, we would need to figure that<br>
out first to know what it properly maps to for libosinfo/virt-install defaults.<br></blockquote><div><br></div><div>- Can we use name of OS in os-variant without minor version, like just centos6, centos7, rhel7? Output of command "osinfo-query os" has only exact version of OS, but I met examples with OS just with major version. Does it correct, will it work? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
> The task is to start VM on KVM from disk image fom VMWare. But,<br>
> What is the best to set up as --os-variant in virt-install?<br>
><br>
> I will use --import with virt-install. Are these options using together<br>
> (--os-variant and --import)?<br>
><br>
<br>
</span>Yes they work fine.<br>
<span class=""><br>
> What exactly do --os-variant, how to test it?<br>
><br>
<br>
</span>--os-variant is used to decide what configuration defaults we will set for the<br>
VM. The classic example is using virtio disk/net for OS that support it<br>
(basically all centos 6+ in this case).<br>
<br>
If you want to test it, use the --print-xml option to see how the defaults<br>
change with and without --os-variant<br>
<span class=""><font color="#888888"><br>
- Cole<br>
<br>
</font></span></blockquote></div><div class="gmail_extra">- What is better option for os-variant, when "osinfo-query os" does not contain some version of OS, for example "fedora23"? Does need use fedora22 or "auto" or..?</div><div class="gmail_extra">- How does parameter "auto" work? Will it work for for converted images from VMware?</div><div class="gmail_extra">- What is the best way to determine OS from VMware? virt-inspector or somehow else?</div><div class="gmail_extra">I did not find in documentation these information.</div><div class="gmail_extra">Thanks in advance!</div></div></div>