[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] virt-v2v - Unable to authenticate to vCenter as DOMAIN\user



Thanks Richard, seems to work well.

Cheers,

Ben.


> On 22 Dec 2014, at 7:50 pm, Richard W.M. Jones <rjones redhat com> wrote:
> 
>> On Mon, Dec 22, 2014 at 02:03:50PM +1100, Ben Hooper wrote:
>> Hi,
>> 
>> I am encountering an issue with virt-v2v where I need to authenticate to the vCenter as DOMAIN\user.
>> 
>> I have tried the following with the resulting errors:
>> 
>> 1. 'virt-v2v -v -x -ic 'vpx://vcenter/Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp'
>>    - prompted for username password
>>    - entered 'DOMAIN\User' as username
>>    - successfully retrieves libvirt xml
>>    - errors with 'virt-v2v: error: vcenter: incorrect username or password.'
>> 
>> 2. virt-v2v -v -x -ic 'vpx://DOMAIN\user vcenter/Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp
>>    - errors immediately with virt-v2v: error: could not parse '-ic 
>>    vpx://DOMAIN\user vcenter/Datacenter/cluster_name/esx_server?no_verify=1'. 
>>    Original error message was: parse_uri: unable to parse URI
>> 
>> What is the correct syntax for entering the authenticating user as 'DOMAIN\user' for virt-v2v?
> 
> That's a very good question, and I have no idea at all :-(
> 
>> [root virt-v2v ~]# virt-v2v -v -x -ic 'vpx://DOMAIN\user vcenter/Datacenter/cluster_name/esx_server?no_verify=1' vm_name -o local -of raw -os /tmp
>> virt-v2v: error: could not parse '-ic 
>> vpx://DOMAIN\user vcenter/Datacenter/cluster_name/esx_server?no_verify=1'. 
>> Original error message was: parse_uri: unable to parse URI
> 
> How about trying this URL:
> 
>  -ic 'vpx://DOMAIN%5cuser vcenter/Datacenter/cluster_name/esx_server?no_verify=1'
> 
> Note that %5c is the URL escape for backslash.
> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> libguestfs lets you edit virtual machines.  Supports shell scripting,
> bindings from many languages.  http://libguestfs.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]