Bug 1213319

Summary: [RFE]virt-v2v support convert guest with all interface types to others
Product: Red Hat Enterprise Linux 7 Reporter: tingting zheng <tzheng>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: juzhou, mzhan, ptoscano, rjones, xiaodwan
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-28 02:38:45 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:
Bug Depends On:    
Bug Blocks: 1288337    

Description tingting zheng 2015-04-20 10:29:54 UTC
Description of problem:
virt-v2v doesn't support convert guest with 1 interface type to another,eg:interface type bridge to network

Version-Release number of selected component (if applicable):
libguestfs-1.28.1-1.26.el7.x86_64
virt-v2v-1.28.1-1.26.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Check virt-v2v manual,only map network to network,bridge type to bridge.
# man virt-v2v
       -n in:out
       -n out
       --network in:out
       --network out
       -b in:out
       -b out
       --bridge in:out
       --bridge out
           Map network (or bridge) called "in" to network (or bridge) called "out".  If no "in:" prefix is
           given, all other networks (or bridges) are mapped to "out".

2.-n and -b can be used at the same time.


Actual results:
As description.

Expected results:
virt-v2v can convert guest with all types of interface to another type.

Additional info:
Previous virt-v2v can map all types of interface to network or bridge.
# man virt-v2v
       -n network | --network network
           Map all guest bridges or networks which don’t have a mapping in the configuration file to
           network.

           This option cannot be used in conjunction with --bridge.

       -b bridge | --bridge bridge
           Map all guest bridges or networks which don’t have a mapping in the configuration file to
           bridge.

           This option cannot be used in conjunction with --network.

Comment 3 Richard W.M. Jones 2018-08-02 10:01:55 UTC
I suspect the --mac option fixes this, see:

https://github.com/libguestfs/libguestfs/commit/fe1a886612aa1f930070b321ef57aa4012224026

Comment 4 Richard W.M. Jones 2019-04-25 09:45:54 UTC
Can you see if the --mac option (see comment 3) does what you want?  If so this option
is already available in RHEL 7 and so the bug can be closed -> CURRENTRELEASE.

Comment 5 tingting zheng 2019-04-28 02:38:45 UTC
(In reply to Richard W.M. Jones from comment #4)
> Can you see if the --mac option (see comment 3) does what you want?  If so
> this option
> is already available in RHEL 7 and so the bug can be closed ->
> CURRENTRELEASE.

Yes,--mac option has fixed the bug,so I closed the bug.