RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1146815 - virt-v2v prints warning: /files/etc/fstab/8/spec references unknown device "cdrom"
Summary: virt-v2v prints warning: /files/etc/fstab/8/spec references unknown device "c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard: V2V
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-26 07:11 UTC by tingting zheng
Modified: 2015-03-05 13:45 UTC (History)
7 users (show)

Fixed In Version: libguestfs-1.27.56-1.1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:45:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
detailed log file (487.21 KB, text/plain)
2014-09-26 07:11 UTC, tingting zheng
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0303 0 normal SHIPPED_LIVE libguestfs bug fix and enhancement update 2015-03-05 17:34:44 UTC

Description tingting zheng 2014-09-26 07:11:03 UTC
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:

Comment 2 Richard W.M. Jones 2014-09-26 18:35:10 UTC
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

Comment 4 zhoujunqin 2014-09-30 09:24:53 UTC
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.

Comment 6 errata-xmlrpc 2015-03-05 13:45:40 UTC
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


Note You need to log in before you can comment on or make changes to this bug.