Bug 1595209

Summary: V2V can't parse guest's cpu topology correctly after converting guest from VMX to libvirt when original guest has multiple sockets and 1 core
Product: [Community] Virtualization Tools Reporter: mxie <mxie>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ptoscano
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-17 00:10:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vmx-1-core.png none

Description mxie@redhat.com 2018-06-26 11:20:10 UTC
Created attachment 1454624 [details]
vmx-1-core.png

Description of problem:
V2V can't parse guest's cpu topology correctly after converting guest from VMX to libvirt when original guest has multiple sockets and 1 core 

Version-Release number of selected component (if applicable):
virt-v2v-1.38.2-5.el7.x86_64
libguestfs-1.38.2-5.el7.x86_64
libvirt-4.4.0-2.el7.x86_64
qemu-kvm-rhev-2.12.0-4.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Convert guest from VMX to libvirt and make sure original guest has multiple sockets and 1 core in CPU topology
# cat esx6.7-rhel7.5-x86_64/esx6.7-rhel7.5-x86_64.vmx
....
numvcpus = "4"
....

2. Use virt-v2v to convert guest from vmx to libvirt , the conversion could be finished without error/warning
# virt-v2v -i vmx  esx6.7-rhel7.5-x86_64/esx6.7-rhel7.5-x86_64.vmx -on vmx-1-core -of qcow2

3. Check guest's xml after converting, v2v CAN NOT parse guest's cpu topology in libvirt xml correctly
# virsh dumpxml vmx-1-core
....
<vcpu placement='static'>4</vcpu>
....


Actual results:
As above description

Expected results:
V2V can parse guest's cpu topology correctly after converting guest from VMX to libvirt when originalguest has multiple sockets and 1 core 


Additional info:
Actually, we can see guest cpu topology in virt-manager->cpu->topology,pls refer to screenshot "vmx-1-core". But the cpu topology is not enabled after v2v converting from VMX, so we can not see cpu topology in guest xml

Comment 2 Pino Toscano 2018-06-26 11:26:29 UTC
This is a similar case of bug 1590079 -- basically, there is no information about the CPU topology in the vmx .file (other than the number of vCPUs).

Comment 3 Red Hat Bugzilla 2025-10-17 00:10:41 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.

Comment 4 Alasdair Kergon 2025-10-17 12:52:13 UTC
Reopening because Virtualization Tools has not been discontinued.