[Libguestfs] virt-v2v -ic question

Tingting Zheng tzheng at redhat.com
Wed Sep 17 08:29:13 UTC 2014


You should use vcenter and virt-v2v command like: virt-v2v -ic vpx://example.com/Datacenter/esxi esx_guest
Detailed info pls refer to virt-v2v manual:
Convert from VMware vCenter server to local libvirt
   You have a VMware vCenter server called "esx.example.com", a datacenter called "Datacenter", and an ESXi
   hypervisor called "esxi".  You want to convert a guest called "esx_guest" to run locally under libvirt.

   virt-v2v -ic vpx://example.com/Datacenter/esxi esx_guest

   In this case you will most likely have to run virt-v2v as "root", since it needs to talk to the system
   libvirt daemon and copy the guest disks to "/var/lib/libvirt/images".

   For more information see "INPUT FROM VMWARE VCENTER SERVER" below.


Best regards,
Tingting Zheng(郑婷婷)

----- Original Message -----
From: "Shahar Havivi" <shaharh at redhat.com>
To: "Richard W.M. Jones" <rjones at redhat.com>
Cc: libguestfs at redhat.com
Sent: Wednesday, September 17, 2014 3:58:18 AM
Subject: Re: [Libguestfs] virt-v2v -ic question

On 16.09.14 15:09, Richard W.M. Jones wrote:
> On Tue, Sep 16, 2014 at 05:06:57PM +0300, Shahar Havivi wrote:
> > I am using upstream qemu while using this local variables:
> > export PATH=/home/shahar/git/qemu:$PATH
> > export LIBGUESTFS_HV=/home/shahar/git/qemu/x86_64-softmmu/qemu-system-x86_64
> > 
> > Is that sufficient?
> 
> Yup, upstream qemu should work fine.  Or even the qemu in Fedora Rawhide.
Build the latest qemu, set the PATH and LIBGUESTFS_HV variables and still got
the error, any idea?

---------------------------------------------------------------------------------------------
shahar at shaharh ~/git/libguestfs (master) LIBGUESTFS_BACKEND=direct ./run ./v2v/virt-v2v -ic "esx://10.35.5.45/?no_verify=1" -o local -of raw -os /tmp/v2v RHEL
[   0.0] Opening the source -i libvirt -ic esx://10.35.5.45/?no_verify=1 RHEL
Enter username for 10.35.5.45 [root]: 
Enter root's password for 10.35.5.45: 
curl -s --insecure -I 'https://10.35.5.45/folder/RHEL/RHEL-flat.vmdk?dcPath=ha-datacenter&dsName=datastore1' ||:
HTTP/1.1 401 Unauthorized
Date: Wed, 17 Sep 2014 07:55:29 GMT
Set-Cookie: vmware_soap_session="5257f480-c060-3dcb-0ed5-fa58236bb0e5"; Path=/; HttpOnly; Secure; 
Connection: close
WWW-Authenticate: Basic realm="VMware HTTP server"
Content-Length: 0

virt-v2v: error: esx: incorrect username or password.  You might need to 
specify the username in the URI like this: esx://USERNAME@[etc]

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

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

  Shahar.
> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-builder quickly builds VMs from scratch
> http://libguestfs.org/virt-builder.1.html

_______________________________________________
Libguestfs mailing list
Libguestfs at redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs




More information about the Libguestfs mailing list