Bug 889082
Summary: | [RFE] virt-v2v should check whether guest with same name exist on target first then transfer the disk | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | tingting zheng <tzheng> | |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.1 | CC: | cwei, juzhou, mjenner, mzhan, ptoscano, rbalakri, rjones, tzheng, xiaodwan | |
Target Milestone: | rc | Keywords: | FutureFeature | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | V2V | |||
Fixed In Version: | libguestfs-1.28.1-1.35.el7 | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1257030 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-19 06:56: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: | 1205796, 1250961, 1257030 |
Description
tingting zheng
2012-12-20 07:45:12 UTC
Yup. virt-v2v does this, virt-p2v should do it too. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Although the bug mentions virt-p2v, in fact it's the job of virt-v2v to check on the target for the guest with the same name. (virt-p2v uses virt-v2v, so hopefully that will solve the problem for virt-v2v too.) I have adjusted the summary accordingly. Upstream commits: e7833a5eea350ca3579d1f9e6702e116b45572fc badfc2e9b2a56fd5bac849a6edca4fec823abeea This fix introduced a memory leak. The memory leak is fixed by: https://github.com/libguestfs/libguestfs/commit/85347e32e02a412b8b17100b7eb5d39d1e83b66d Tested with: virt-v2v-1.28.1-1.38.el7.x86_64 libguestfs-1.28.1-1.38.el7.x86_64 1.Make sure on my host,there is guest named "esx6.0-win2008-x86_64" exist. # virsh list --all Id Name State ---------------------------------------------------- 36 win7-vcenter running - esx6.0-win2008-i386 shut off - esx6.0-win2008-x86_64 shut off - p2v-network-test shut off - rhel6.7-x64 shut off - rhel7.1-x64 shut off 2.Use virt-v2v to convert guest which already exist on the host. # virt-v2v -ic vpx://root.72.112/data/10.66.72.49/?no_verify=1 -os default -b virbr0 --password-file /tmp/passwd2 esx6.0-win2008-x86_64 [ 0.0] Opening the source -i libvirt -ic vpx://root.72.112/data/10.66.72.49/?no_verify=1 esx6.0-win2008-x86_64 [ 1.0] Creating an overlay to protect the source from being modified [ 2.0] Opening the overlay [ 14.0] Initializing the target -o libvirt -os default virt-v2v: error: a libvirt domain called 'esx6.0-win2008-x86_64' already exists on the target. If using virt-v2v directly, use the '-on' option to select a different name. If using virt-p2v, select a different 'Name' in the 'Target properties'. Or delete the existing domain on the target using the 'virsh undefine' command. If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] There is error about guest already exists on the target before conversion. Tried about virt-p2v,the similar error showed and conversion didn't start. Refer to the above comments,move the bug to VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2183.html |