Bug 1730513 - Virt-v2v can't convert the guest from VMware ESXi to Openstack
Summary: Virt-v2v can't convert the guest from VMware ESXi to Openstack
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: 31
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-17 02:06 UTC by jackdan
Modified: 2019-08-13 19:01 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)
virt-v2v vmware guest to openstack log (50.89 KB, text/plain)
2019-07-17 02:08 UTC, jackdan
no flags Details

Description jackdan 2019-07-17 02:06:48 UTC
Description of problem:
Virt-v2v can't convert the guest from VMware ESXi to Openstack


Version-Release number of selected component (if applicable):
virt-v2v-1.40.2-6.fc31.x86_64
libguestfs-1.40.2-6.fc31.x86_64
libvirt-5.5.0-1.fc31.x86_64
qemu-kvm-4.0.0-5.fc31.x86_64

How reproducible:
100%

virt-v2v host:
it is a openstack server
guest is fedora31

Steps to Reproduce:
1. Prepare a linux guest(in the VMware ESXi, status is shutoff, guest is redhat Enterprise 6.5) and using virt-v2v can convert the linux guest to openstack but the conversion is failed. pls refer to attachment log
# virt-v2v -ic vpx://administrator%40vsphere.local@192.168.1.213/?no_verify=1 Test02 -o openstack -oo server-id=<openstack-server-id/name>  
command: mount returned 32
command: mount: stderr:
mount: /sysroot: unknown filesystem type.
inspect_os: fses:
inspect_get_roots: roots:
libguestfs: trace: v2v: inspect_os = []
virt-v2v: error: inspection could not detect the source guest (or physical 
machine).

Assuming that you are running virt-v2v/virt-p2v on a source which is 
supported (and not, for example, a blank disk), then this should not 
happen.

No root device found in this operating system image.


The guest information like this:
[root@localhost ~]# cat /etc/*release
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
CentOS release 6.10 (Final)
[root@localhost ~]# lsblk
NAME                        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                           8:0    0    3G  0 disk 
├─sda1                        8:1    0  500M  0 part /boot
└─sda2                        8:2    0  2.5G  0 part 
  ├─VolGroup-lv_root (dm-0) 253:0    0  2.2G  0 lvm  /
  └─VolGroup-lv_swap (dm-1) 253:1    0  304M  0 lvm  [SWAP]
sr0                          11:0    1  406M  0 rom  


Actual results:
As above description

Comment 2 jackdan 2019-07-17 02:08:16 UTC
Created attachment 1591232 [details]
virt-v2v vmware guest to openstack log

Comment 3 Richard W.M. Jones 2019-07-17 16:27:10 UTC
Unfortunately the conversion log isn't complete.  However I can see that the conversion
times out:

qemu-system-x86_64: curl: Operation timed out after 2000001 milliseconds with 63264 out of 327680 bytes received

and everything fails shortly afterwards.  You're using the very slow HTTPS method
(see virt-v2v-input-vmware section "INPUT FROM VMWARE VCENTER SERVER").  A much
faster way to do it is to use -i vmx from local file, over ssh or over VDDK.  These
alternate methods are also docmented in virt-v2v-input-vmware(1).

Comment 4 Ben Cotton 2019-08-13 17:10:30 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 5 Ben Cotton 2019-08-13 19:01:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.


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