Bug 1679376

Summary: Libvirt cannot get disk info of the guest with sata disk installed on VMware
Product: Red Hat Enterprise Linux 7 Reporter: liuzi <zili>
Component: libvirtAssignee: Pino Toscano <ptoscano>
Status: CLOSED WONTFIX QA Contact: tingting zheng <tzheng>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.6CC: dyuan, hhan, jsuchane, juzhou, lmen, mxie, mzhan, ptoscano, rbalakri, tzheng, xiaodwan, xuzhang, zili
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1677608 Environment:
Last Closed: 2019-05-07 12:22:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1677608    
Bug Blocks:    
Attachments:
Description Flags
esx6.5-rhel7.6-sata.vmx none

Description liuzi 2019-02-21 02:48:55 UTC
Can reproduce the bug on rhel7 with builds:
libvirt-4.5.0-10.el7_6.4.x86_64
qemu-kvm-rhev-2.12.0-18.el7_6.3.x86_64

+++ This bug was initially created as a clone of Bug #1677608 +++

Description of problem:
Libvirt cannot get disk info of the guest with sata disk installed on VMware

Version-Release number of selected component (if applicable):
libvirt-4.5.0-21.module+el8+2777+e17f6250.x86_64
qemu-kvm-2.12.0-61.module+el8+2786+5afd5ae3.x86_64

How reproducible:
100%

Steps to reproduce:
1.Prepare a guest with sata disk on ESX6.5 and make sure the guest can boot normally,pls refer to screenshot 1

2. Check the guest's xml info
# virsh -c vpx://root.73.141/data/10.73.196.89/?no_verify=1 dumpxml esx6.5-rhel7.6-sata
Enter root's password for 10.73.73.141:
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
  <name>esx6.5-rhel7.6-sata</name>
  <uuid>422c3051-9921-378a-b991-d9ec680abd3e</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <cputune>
    <shares>1000</shares>
  </cputune>
  <os>
    <type arch='x86_64'>hvm</type>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <interface type='bridge'>
      <mac address='00:50:56:ac:94:8c'/>
      <source bridge='VM Network'/>
      <model type='vmxnet3'/>
    </interface>
    <video>
      <model type='vmvga' vram='8192' primary='yes'/>
    </video>
  </devices>
  <vmware:datacenterpath>data</vmware:datacenterpath>
  <vmware:moref>vm-663</vmware:moref>
</domain>

Actual results:
As above description

Expected results:
Libvirt can get disk info of the guest with sata disk installed on VMware

Additional info:
1.The bug can reproduce on rhel7

--- Additional comment from liuzi on 2019-02-15 11:00 UTC ---

Comment 2 Han Han 2019-02-27 03:34:29 UTC
(In reply to liuzi from comment #0)
> Can reproduce the bug on rhel7 with builds:
> libvirt-4.5.0-10.el7_6.4.x86_64
> qemu-kvm-rhev-2.12.0-18.el7_6.3.x86_64
> 
> +++ This bug was initially created as a clone of Bug #1677608 +++
> 
> Description of problem:
> Libvirt cannot get disk info of the guest with sata disk installed on VMware
> 
> Version-Release number of selected component (if applicable):
> libvirt-4.5.0-21.module+el8+2777+e17f6250.x86_64
> qemu-kvm-2.12.0-61.module+el8+2786+5afd5ae3.x86_64
No relationship with qemu-kvm here, since the hypervisor is vmware.
> 
> How reproducible:
> 100%
> 
> Steps to reproduce:
> 1.Prepare a guest with sata disk on ESX6.5 and make sure the guest can boot
> normally,pls refer to screenshot 1
> 
> 2. Check the guest's xml info
> # virsh -c vpx://root.73.141/data/10.73.196.89/?no_verify=1 dumpxml
> esx6.5-rhel7.6-sata
> Enter root's password for 10.73.73.141:
> <domain type='vmware'
> xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
>   <name>esx6.5-rhel7.6-sata</name>
>   <uuid>422c3051-9921-378a-b991-d9ec680abd3e</uuid>
>   <memory unit='KiB'>2097152</memory>
>   <currentMemory unit='KiB'>2097152</currentMemory>
>   <vcpu placement='static'>1</vcpu>
>   <cputune>
>     <shares>1000</shares>
>   </cputune>
>   <os>
>     <type arch='x86_64'>hvm</type>
>   </os>
>   <clock offset='utc'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>destroy</on_crash>
>   <devices>
>     <interface type='bridge'>
>       <mac address='00:50:56:ac:94:8c'/>
>       <source bridge='VM Network'/>
>       <model type='vmxnet3'/>
>     </interface>
>     <video>
>       <model type='vmvga' vram='8192' primary='yes'/>
>     </video>
>   </devices>
>   <vmware:datacenterpath>data</vmware:datacenterpath>
>   <vmware:moref>vm-663</vmware:moref>
> </domain>
> 
> Actual results:
> As above description
> 
> Expected results:
> Libvirt can get disk info of the guest with sata disk installed on VMware
> 
> Additional info:
> 1.The bug can reproduce on rhel7
> 
> --- Additional comment from liuzi on 2019-02-15 11:00 UTC ---

Please provide the vmware vm config .vmx file here. Use domxml-from-native and domxml-to-native to convert the native config and libvirt xml, then compare the result.

Comment 3 liuzi 2019-03-01 09:00:57 UTC
Created attachment 1539752 [details]
esx6.5-rhel7.6-sata.vmx

Comment 4 Jaroslav Suchanek 2019-05-07 12:22:42 UTC
This will be addressed in the next major release.