virt-v2v fails when' /etc/fstab' contains a cifs mount line with "password=" option

Solution Unverified - Updated -

Issue

  • virt-v2v fails when converting vms from vmware to rhev with the below error message if /etc/fstab contained a cifs line with password= in the options field.
"inspect_os: could not parse /etc/fstab or empty file at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 187.   at /usr/bin/virt-v2v line 602"

  • The problematic line in /etc/fstab was as below.
domain.org/share_v2 /mnt cifs defaults,ro,password= 0 0
  • Commenting out above line in /etc/fstab or removing = from the password= or adding a password after password= should work around this problem.

Environment

  • Red Hat Enterprise Linux 6
  • virt-v2v-0.8.3-5.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content