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

Re: [Libguestfs] Possible bug in preview version of virt-v2v



On Mon, Sep 22, 2014 at 03:02:32PM +0000, Jeff Forbes wrote:
> Hi,
> 
> I have been testing:
> virt-v2v preview packages for RHEL and CentOS 7.1<http://rwmj.wordpress.com/2014/09/17/virt-v2v-preview-packages-for-rhel-and-centos-7-1-are-available/>
> 
> and have been able to almost get it to work. There seems to be a bug where the software tries to mount a disk partition as /sysroot. An attempt is made to make /dev/sda2 as sysroot; however, the root partition is an LVM partition (/dev/mapper/centos-root). An error is given when an attempt is made to cop the virtio drivers to the VM: (a snippet of the verbose debug log)
> 
> 
> cp /sysroot/usr/share/virtio-win/drivers/amd64/Win2012R2/viostor.sys /sysroot/Wi
> ndows/System32/drivers/viostor.sys
> cp: cannot stat '/sysroot/usr/share/virtio-win/drivers/amd64/Win2012R2/viostor.s
> ys': No such file or directory
> guestfsd: error: cp: cannot stat '/sysroot/usr/share/virtio-win/drivers/amd64/Wi
> n2012R2/viostor.sys': No such file or directory
> guestfsd: main_loop: proc 87 (cp) took 0.06 seconds
> libguestfs: trace: cp = -1 (error)
> libguestfs: trace: hivex_close
> guestfsd: main_loop: new request, len 0x28
> hivex: hivex_close: hivex_close
> libguestfs: trace: hivex_close = 0
> virt-v2v: error: libguestfs error: cp: cp: cannot stat
> '/sysroot/usr/share/virtio-win/drivers/amd64/Win2012R2/viostor.sys': No
> such file or directory
> 
> 
> I have attached the entire output of the verbose debugging log.

Oh yes, I love untested code paths :-(

I think the following commit will fix it:

https://github.com/libguestfs/libguestfs/commit/7b428603e3a6dc43c48e276b192fda05a4a50a13

(in virt-v2v >= 1.27.51)

As you may have gathered, the Windows conversion paths are not very
well exercised at the moment.  We're concentrating on Linux
conversions in our testing first.

Thanks, 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


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