[Users] [V2V] import errors

Hi, I'm trying to migrate V2V from an ESXi 5 to oVirt 3.1 under CentOS 6.3 with virt-v2v Steps: - Allowed access from ssh on the ESXi box - Created a /root/.netrc file with 600 file permission with content: machine esxi_ip_address login root password root_password - Attached at the oVirt datacenter there's an export domain that is a local nfs share When I execute as root: # [root@vm-server ~]# virt-v2v -ic esx://192.168.250.31/ -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME The following error is displayed. virt-v2v: Failed to connect to esx://192.168.250.31/: libvirt error code: 45, message: authentication failed: Username request failed What I could find is that is a libvirt bug, if I run the same command but as a non-root user, the error is that I need to be root to set -o rhev as a destination. Any idea if there any workaround ? Regards.- -- AGD

Hi Andres, If you ran virt-v2v as root: # ll ~/.netrc -rw-------. 1 root root 293 Aug 16 21:20 /root/.netrc Notes, the file access permission is 600. # cat ~/.netrc machine <add your ESX host IP> login root password <add your ESX host password> And then run the following cmdline: # virt-v2v -ic esx://192.168.250.31/?no_verify=1 -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME I hope it's helpful for you. -- Regards, Alex ----- Original Message ----- From: "Andres Gonzalez" <tuchoz@gmail.com> To: users@ovirt.org Sent: Friday, August 24, 2012 12:57:32 PM Subject: [Users] [V2V] import errors Hi, I'm trying to migrate V2V from an ESXi 5 to oVirt 3.1 under CentOS 6.3 with virt-v2v Steps: - Allowed access from ssh on the ESXi box - Created a /root/.netrc file with 600 file permission with content: machine esxi_ip_address login root password root_password - Attached at the oVirt datacenter there's an export domain that is a local nfs share When I execute as root: # [root@vm-server ~]# virt-v2v -ic esx:// 192.168.250.31/ -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME The following error is displayed. virt-v2v: Failed to connect to esx:// 192.168.250.31/ : libvirt error code: 45, message: authentication failed: Username request failed What I could find is that is a libvirt bug, if I run the same command but as a non-root user, the error is that I need to be root to set -o rhev as a destination. Any idea if there any workaround ? Regards.- -- AGD _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Fri, Aug 24, 2012 at 4:52 AM, Alex Jia <ajia@redhat.com> wrote:
Hi Andres, If you ran virt-v2v as root:
# ll ~/.netrc -rw-------. 1 root root 293 Aug 16 21:20 /root/.netrc
Notes, the file access permission is 600.
# cat ~/.netrc machine <add your ESX host IP> login root password <add your ESX host password>
And then run the following cmdline:
# virt-v2v -ic esx://192.168.250.31/?no_verify=1 -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME
I hope it's helpful for you.
Hi Alex, Seems that works because the process finnish now, but at the end gives the following error: virt-v2v: Installation failed because the following files referenced in the configuration file are required, but missing: /usr/share/virtio-win/drivers/i386/Win2008 I found that on RHEL there's a package (yum install virtio-win) that install those files, but I could find it for CentOS 6.3. Any idea where if there is any repo for that ? Regards.- -- AGD

----- Original Message ----- From: "Andres Gonzalez" <tuchoz@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: users@ovirt.org Sent: Saturday, August 25, 2012 1:37:10 AM Subject: Re: [Users] [V2V] import errors On Fri, Aug 24, 2012 at 4:52 AM, Alex Jia < ajia@redhat.com > wrote: Hi Andres, If you ran virt-v2v as root: # ll ~/.netrc -rw-------. 1 root root 293 Aug 16 21:20 /root/.netrc Notes, the file access permission is 600. # cat ~/.netrc machine <add your ESX host IP> login root password <add your ESX host password> And then run the following cmdline: # virt-v2v -ic esx:// 192.168.250.31/?no_verify=1 -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME I hope it's helpful for you. Hi Alex, Seems that works because the process finnish now, but at the end gives the following error: virt-v2v: Installation failed because the following files referenced in the configuration file are required, but missing: /usr/share/virtio-win/drivers/i386/Win2008 I found that on RHEL there's a package (yum install virtio-win) that install those files, but I could find it for CentOS 6.3. Any idea where if there is any repo for that ? Yeah, you need to install a virtio-win rpm, the following link should be available: http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers Regards, Alex Regards.- -- AGD

On Mon, Aug 27, 2012 at 12:19 AM, Alex Jia <ajia@redhat.com> wrote:
----- Original Message ----- From: "Andres Gonzalez" <tuchoz@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: users@ovirt.org Sent: Saturday, August 25, 2012 1:37:10 AM Subject: Re: [Users] [V2V] import errors
On Fri, Aug 24, 2012 at 4:52 AM, Alex Jia < ajia@redhat.com > wrote:
Hi Andres, If you ran virt-v2v as root:
# ll ~/.netrc -rw-------. 1 root root 293 Aug 16 21:20 /root/.netrc
Notes, the file access permission is 600.
# cat ~/.netrc machine <add your ESX host IP> login root password <add your ESX host password>
And then run the following cmdline:
# virt-v2v -ic esx:// 192.168.250.31/?no_verify=1 -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME
I hope it's helpful for you.
Hi Alex,
Seems that works because the process finnish now, but at the end gives the following error:
virt-v2v: Installation failed because the following files referenced in the configuration file are required, but missing: /usr/share/virtio-win/drivers/i386/Win2008
I found that on RHEL there's a package (yum install virtio-win) that install those files, but I could find it for CentOS 6.3.
Any idea where if there is any repo for that ?
Yeah, you need to install a virtio-win rpm, the following link should be available: http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers
Regards, Alex
Regards.-
May be I looking bad but on that URL there's only an iso file ( virtio-win-0.1-30.iso<http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-30.iso>), and for example doesn't have a Win2008 directory inside. Regards.- -- AGD

-- Regards, Alex ----- Original Message ----- From: "Andres Gonzalez" <tuchoz@gmail.com> To: "Alex Jia" <ajia@redhat.com> Cc: users@ovirt.org Sent: Monday, August 27, 2012 11:32:57 AM Subject: Re: [Users] [V2V] import errors On Mon, Aug 27, 2012 at 12:19 AM, Alex Jia < ajia@redhat.com > wrote: ----- Original Message ----- From: "Andres Gonzalez" < tuchoz@gmail.com > To: "Alex Jia" < ajia@redhat.com > Cc: users@ovirt.org Sent: Saturday, August 25, 2012 1:37:10 AM Subject: Re: [Users] [V2V] import errors On Fri, Aug 24, 2012 at 4:52 AM, Alex Jia < ajia@redhat.com > wrote: Hi Andres, If you ran virt-v2v as root: # ll ~/.netrc -rw-------. 1 root root 293 Aug 16 21:20 /root/.netrc Notes, the file access permission is 600. # cat ~/.netrc machine <add your ESX host IP> login root password <add your ESX host password> And then run the following cmdline: # virt-v2v -ic esx:// 192.168.250.31/?no_verify=1 -o rhev -os 192.168.250.30:/oVirt/export -b ovirtmgmt VM_NAME I hope it's helpful for you. Hi Alex, Seems that works because the process finnish now, but at the end gives the following error: virt-v2v: Installation failed because the following files referenced in the configuration file are required, but missing: /usr/share/virtio-win/drivers/i386/Win2008 I found that on RHEL there's a package (yum install virtio-win) that install those files, but I could find it for CentOS 6.3. Any idea where if there is any repo for that ? Yeah, you need to install a virtio-win rpm, the following link should be available: http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers Regards, Alex Regards.- May be I looking bad but on that URL there's only an iso file ( virtio-win-0.1-30.iso ), and for example doesn't have a Win2008 directory inside. Please see this discussion "http://lists.centos.org/pipermail/centos-virt/2011-July/002493.html". Alex Regards.- -- AGD
participants (2)
-
Alex Jia
-
Andres Gonzalez