Bug 1146815
Summary: | virt-v2v prints warning: /files/etc/fstab/8/spec references unknown device "cdrom" | ||||||
---|---|---|---|---|---|---|---|
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: | codong, dyuan, juzhou, mbooth, mzhan, ptoscano, rjones | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | V2V | ||||||
Fixed In Version: | libguestfs-1.27.56-1.1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-03-05 13:45:40 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: |
|
It seems likely that the old virt-v2v printed the same warning. However I've suppressed the warning in virt-v2v >= 1.27.56: https://github.com/libguestfs/libguestfs/commit/5498d021d012522c695ddcaa8ade9cb0ede2a024 I can reproduce it with package: Then try to verify it with new build: libguestfs-1.27.56-1.1.el7.x86_64 virt-v2v-1.27.56-1.1.el7.x86_64 Steps: 1.Before conversion,prepare a vm with a cdrom device specified in fstab in guest,fstab entry: /dev/cdrom /media/CDROM auto exec 0 0 2.Use virt-v2v to convert the guest. # virt-v2v -o rhev -os 10.66.90.115:/vol/v2v_auto/auto_export --network rhevm rhel6.6-tzheng -on rhel6.6-tzheng-301 [ 0.0] Opening the source -i libvirt rhel6.6-tzheng [ 0.0] Creating an overlay to protect the source from being modified [ 0.0] Opening the overlay [ 6.0] Initializing the target -o rhev -os 10.66.90.115:/vol/v2v_auto/auto_export virt-v2v: warning: cannot write files to the NFS server as 36:36, even though we appear to be running as root. This probably means the NFS client or idmapd is not configured properly. You will have to chown the files that virt-v2v creates after the run, otherwise RHEV-M will not be able to import the VM. [ 6.0] Inspecting the overlay [ 20.0] Checking for sufficient free disk space in the guest [ 20.0] Estimating space required on target for each disk [ 20.0] Converting Red Hat Enterprise Linux Server release 6.6 Beta (Santiago) to run on KVM This guest has virtio drivers installed. [ 88.0] Mapping filesystem data to avoid copying unused and blank areas [ 89.0] Closing the overlay [ 89.0] Copying disk 1/1 to /tmp/v2v.HwWwYk/46adae8a-63c1-40f8-b25a-f02deb1a5160/images/f87534cc-554c-46bf-ad30-189080100b90/a7f24dff-f784-444b-8af1-985b511acacb (raw) (100.00/100%) [ 152.0] Creating output metadata [ 152.0] Finishing off 3.After conversion,check guest file /etc/fstab /dev/cdrom /media/CDROM auto exec 0 0 Since no warning like "/files/etc/fstab/8/spe" showing, move this bug from ON_QA 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-0303.html |
Created attachment 941416 [details] detailed log file Description virt-v2v prints warning: /files/etc/fstab/8/spec references unknown device "cdrom" Version: virt-v2v-1.27.53-1.1.el7.x86_64 libguestfs-winsupport-7.1-4.el7.x86_64 libguestfs-1.27.53-1.1.el7.x86_64 virtio-win-1.7.2-1.el7.noarch How reproducible: 100% Steps to Reproduce: 1.Before conversion,prepare a vm with a cdrom device specified in fstab in guest,fstab entry: /dev/cdrom /media/cdrom auto exec 0 0 2.Use virt-v2v to convert the guest. # virt-v2v -o rhev -os 10.66.6.8:/var/v2v_export --network rhevm rhel6.6-tzheng [ 0.0] Opening the source -i libvirt rhel6.6-tzheng [ 0.0] Creating an overlay to protect the source from being modified [ 0.0] Opening the overlay [ 9.0] Initializing the target -o rhev -os 10.66.6.8:/var/v2v_export virt-v2v: warning: cannot write files to the NFS server as 36:36, even though we appear to be running as root. This probably means the NFS client or idmapd is not configured properly. You will have to chown the files that virt-v2v creates after the run, otherwise RHEV-M will not be able to import the VM. [ 9.0] Inspecting the overlay [ 26.0] Checking for sufficient free disk space in the guest [ 26.0] Estimating space required on target for each disk [ 26.0] Converting Red Hat Enterprise Linux Server release 6.6 Beta (Santiago) to run on KVM virt-v2v: warning: /files/etc/fstab/8/spec references unknown device "cdrom". You may have to fix this entry manually after conversion. This guest has virtio drivers installed. [ 100.0] Mapping filesystem data to avoid copying unused and blank areas [ 101.0] Closing the overlay [ 102.0] Copying disk 1/1 to /tmp/v2v.ceCgyF/e4883354-fa70-4314-bcc0-6ee12c39e3a2/images/e844160d-b559-4858-a03b-566de70c5ae2/3b73f780-03a2-4609-9135-bde0e892edf5 (raw) (100.00/100%) [ 390.0] Creating output metadata [ 390.0] Finishing off 3.After conversion,check guest file /etc/fstab /dev/cdrom /media/cdrom auto exec 0 0 Actual results: virt-v2v prints warning: /files/etc/fstab/8/spec references unknown device "cdrom". You may have to fix this entry manually after conversion. Expected results: There should be no warning as actual results. Additional info: