virt-v2v fails when' /etc/fstab' contains a cifs mount line with "password=" option
Issue
- virt-v2v fails when converting vms from vmware to rhev with the below error message if
/etc/fstabcontained a cifs line withpassword=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/fstabor removing = from thepassword=or adding a password afterpassword=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.