Re: [Users] struggling with virt-v2v

2013-02-20 Thread Nicolas Ecarnot

Le 19/02/2013 17:31, Jonathan Horne a écrit :

[root@ovirtmgr home]# virt-v2v -i ova -osd 10.3.2.150:/opt/export
--network ovirtmgmt ws08-srv-3.ova

virt-v2v: Failed to connect to qemu:///system: libvirt error code: 38,
message: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No
such file or directory


Hi Jonathan,

According to my very recent experience, your issue seems related to the 
following points I'm reading in the virt-v2v help :



-o method
Specifies the output method. Supported output methods are:

libvirt
Create a libvirt guest. *-os* must specify a libvirt storage
pool for the libvirt output method.

Also see the *-oc* option.

rhev
Create a guest on a RHEV 'Export' storage domain, which can
later be imported into RHEV using the UI. *-os* must specify the
location of a RHEV export storage domain for the RHEV output
method.

If no output type is specified, it defaults to libvirt.

-oc URI
Specifies the libvirt connection to use to create the converted
guest. If omitted, this defaults to qemu:///system when virt-v2v
runs as root, or qemu:///session when virt-v2v runs as a regular
user.


If I understand it well, you don't specify any output method (-o option) 
so it defaults to libvirt output storage.
And you don't specify any libvirt connection, and you're running it as 
root, so it defaults to qemu:///system and fails.


My recent successful migrations with virt-v2v were made without 
specifying -oc option, but with telling -o rhev.


HTH.

--
Nicolas Ecarnot
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] struggling with virt-v2v

2013-02-19 Thread Jonathan Horne
I am still struggling with virt v2v to try to import a .ova file into my ovirt 
domain.

I have a fedora 18 manager and fedora 18 node.  I installed virt-v2v on the 
manager using yum.  Based on what I google, when you issue the command virt-v2v 
-list-profiles you probably should not get:

[root@ovirtmgr home]# virt-v2v --list-profiles
Defined target profiles:

(nothing).

I see several profiles listed in the /etc/virt-v2v.conf file, they don't seem 
to be recognized even if I -f /etc/virt-v2v.conf in my commands as well.   If I 
go ahead and blindly attempt to import it anyway, I get an error like this:

[root@ovirtmgr home]# virt-v2v -i ova -osd 10.3.2.150:/opt/export --network 
ovirtmgmt ws08-srv-3.ova
virt-v2v: Failed to connect to qemu:///system: libvirt error code: 38, message: 
Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or 
directory

there is no libvirt on the manager whatsoever, so im not sure where to go or 
even what direction im facing here.

Can someone straighten me out and get me back on the right path ?

Thanks,
jonathan


This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind SKOPOS to 
any order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users