-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
rhel-9.1.0
Description of problem:
Can't set static ip for all network ports with --mac option when windows guest has multiple networks
Version-Release number of selected component (if applicable):
virt-v2v-2.0.1-1.el9.x86_64
libguestfs-1.48.0-2.el9.x86_64
guestfs-tools-1.48.0-1.el9.x86_64
libvirt-libs-8.1.0-1.el9.x86_64
qemu-img-6.2.0-12.el9.x86_64
nbdkit-server-1.30.1-2.el9.x86_64
libnbd-1.12.2-1.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
Scearnio1:
1.1 Prepare a windows which has three networks on VMware, and these networks have same model type
- virsh -c vpx://root@10.73.198.169/data/10.73.199.217/?no_verify=1 dumpxml esx7.0-win11-vmware-tools-dhcp-network
....
<interface type='bridge'>
<mac address='00:50:56:83:6b:2e' type='generated'/>
<source bridge='VM Network'/>
<model type='e1000e'/>
</interface>
<interface type='bridge'>
<mac address='00:50:56:83:43:74' type='generated'/>
<source bridge='VM Network'/>
<model type='e1000e'/>
</interface>
<interface type='bridge'>
<mac address='00:50:56:83:94:21' type='generated'/>
<source bridge='VM Network'/>
<model type='e1000e'/>
</interface>
.....
1.2 Convert the guest from VMware by v2v and set static ip, gateway, subnet mask and dns for networks with --mac option
- virt-v2v -ic vpx://root@10.73.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 -o rhv-upload -of qcow2 -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -os nfs_data -b ovirtmgmt -ip /home/passwd esx7.0-win11-vmware-tools-dhcp-network --mac 00:50:56:83:6b:2e:ip:192.168.24.3,192.168.24.2,22,192.168.24.1 --mac 00:50:56:83:43:74:ip:192.168.100.3,192.168.100.2,24,192.168.100.1 --mac 00:50:56:83:94:21:ip:192.168.80.3,192.168.80.2,23,192.168.80.1
[ 0.8] Setting up the source: -i libvirt -ic vpx://root@10.73.198.169/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-win11-vmware-tools-dhcp-network
[ 2.8] Opening the source
[ 7.8] Inspecting the source
[ 12.2] Checking for sufficient free disk space in the guest
[ 12.2] Converting Windows 10 Enterprise to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 17.2] Mapping filesystem data to avoid copying unused and blank areas
[ 18.6] Closing the overlay
[ 18.8] Assigning disks to buses
[ 18.8] Checking if the guest needs BIOS or UEFI to boot
[ 18.8] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[ 39.3] Copying disk 1/1
█ 100% [****************************************]
[ 671.7] Creating output metadata
[ 677.3] Finishing off
1.3 Check guest after conversion, found only one network can get static ip, the other network gets IP from DHCP, please refer to sreenshot 'only-one-network-get-static-ip-after-conversion-same-model.png'
Scearnio2:
2.1 Prepare a windows which has three networks on VMware, and these networks have different model type
- virsh -c vpx://root@10.73.198.169/data/10.73.199.217/?no_verify=1 dumpxml esx7.0-win11-vmware-tools-dhcp-network-diff-mode
....
<interface type='bridge'>
<mac address='00:50:56:83:6b:2e' type='generated'/>
<source bridge='VM Network'/>
<model type='e1000e'/>
</interface>
<interface type='bridge'>
<mac address='00:50:56:83:03:51' type='generated'/>
<source bridge='VM Network'/>
<model type='vmxnet3'/>
</interface>
<interface type='bridge'>
<mac address='00:50:56:83:8c:03' type='generated'/>
<source bridge='VM Network'/>
<model type='e1000'/>
</interface>
.....
2.2 Convert the guest from VMware by v2v and set static ip, gateway, subnet mask and dns for networks with --mac option
- virt-v2v -ic vpx://root@10.73.198.169/data/10.73.199.217/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk7.0.3 -io vddk-thumbprint=B5:52:1F:B4:21:09:45:24:51:32:56:F6:63:6A:93:5D:54:08:2D:78 -o rhv-upload -of qcow2 -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd -os nfs_data -b ovirtmgmt -ip /home/passwd esx7.0-win11-vmware-tools-dhcp-network-diff-mode --mac 00:50:56:83:6b:2e:ip:192.168.24.3,192.168.24.2,22,192.168.24.1 --mac 00:50:56:83:03:51:ip:192.168.100.3,192.168.100.2,24,192.168.100.1 --mac 00:50:56:83:8c:03:ip:192.168.80.3,192.168.80.2,23,192.168.80.1
[ 0.0] Setting up the source: -i libvirt -ic vpx://root@10.73.198.169/data/10.73.199.217/?no_verify=1 -it vddk esx7.0-win11-vmware-tools-dhcp-network-diff-mode
[ 2.0] Opening the source
[ 6.9] Inspecting the source
[ 11.3] Checking for sufficient free disk space in the guest
[ 11.3] Converting Windows 10 Enterprise to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 16.4] Mapping filesystem data to avoid copying unused and blank areas
[ 17.9] Closing the overlay
[ 18.2] Assigning disks to buses
[ 18.2] Checking if the guest needs BIOS or UEFI to boot
[ 18.2] Setting up the destination: -o rhv-upload -oc https://dell-per740-22.lab.eng.pek2.redhat.com/ovirt-engine/api -os nfs_data
[ 30.6] Copying disk 1/1
█ 100% [****************************************]
[ 691.6] Creating output metadata
[ 699.2] Finishing off
2.3 Check guest after conversion, found only one network gets static ip, the other network gets IP from DHCP, please refer to screenshot 'only-one-network-get-static-ip-after-conversion-diff-model.png'
Actual results:
As above description
Expected results:
All networks can get correct static IP when v2v converts windows guest with --mac option
Additional info:
- external trackers