Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1687302 - virt-v2v execution error virt-v2v -v -x -i disk C6.5.qcow2 -o local -os /var/tmp
Summary: virt-v2v execution error virt-v2v -v -x -i disk C6.5.qcow2 -o local -os /var/tmp
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-11 08:51 UTC by heitaoq
Modified: 2019-03-11 10:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
log (deleted)
2019-03-11 08:51 UTC, heitaoq
no flags Details

Description heitaoq 2019-03-11 08:51:16 UTC
Created attachment 1542805 [details]
log

Description of problem:

I execute the order:
“$ virt-v2v -v -x -i disk C6.5.qcow2 -o local -os /var/tmp”

but 

[   0.0] Opening the source -i disk C6.5.qcow2
[   0.0] Creating an overlay to protect the source from being modified
[   0.0] Initializing the target -o local -os /var/tmp
[   0.0] Opening the overlay
[  13.7] Inspecting the overlay
virt-v2v: error: libguestfs error: part_get_parttype: parted exited with
status 1: Error: Can't have a partition outside the disk!

If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:

  virt-v2v -v -x [...]

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Richard W.M. Jones 2019-03-11 08:56:45 UTC
The disk image is faulty.  Linux has problems early on:

  WARNING: Device /dev/sda2 has size of 40916832 sectors which is smaller than c
orresponding PV size of 40916992 sectors. Was device resized?

Later, parted fails on the disk:

command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
command: parted returned 1
command: parted: stdout:
BYT;
/dev/sda:21474754560B:scsi:512:512:unknown:QEMU QEMU HARDDISK:;
command: parted: stderr:
Error: Can't have a partition outside the disk!
ocaml_exn: 'part_get_parttype' raised 'Failure' exception
guestfsd: error: parted exited with status 1: Error: Can't have a partition outside the disk!

Comment 2 heitaoq 2019-03-11 09:03:27 UTC
(In reply to Richard W.M. Jones from comment #1)
> The disk image is faulty.  Linux has problems early on:
> 
>   WARNING: Device /dev/sda2 has size of 40916832 sectors which is smaller
> than c
> orresponding PV size of 40916992 sectors. Was device resized?
> 
> Later, parted fails on the disk:
> 
> command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
> command: parted returned 1
> command: parted: stdout:
> BYT;
> /dev/sda:21474754560B:scsi:512:512:unknown:QEMU QEMU HARDDISK:;
> command: parted: stderr:
> Error: Can't have a partition outside the disk!
> ocaml_exn: 'part_get_parttype' raised 'Failure' exception
> guestfsd: error: parted exited with status 1: Error: Can't have a partition
> outside the disk!

Yes, parted fails on the disk. But how can I solve this problem?

Comment 3 Richard W.M. Jones 2019-03-11 10:59:57 UTC
The disk image is faulty, that's like asking "how can I recover from a failed hard drive".
Restore from backups?  Use disk repair tools?


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