CentOS用户应该在virt-v2v中获得/ usr / share / virtio-win / drivers?

我需要将一些虚拟机从VMware ESX迁移到CentOS 6 KVMpipe理程序。 最终,我写了一个RPM规格文件,解决了我的问题在https://github.com/fasrc/virtio-win/blob/master/virtio-win.spec,但我不确定是否有另一个基地CentOS的RPM或EPEL(标准的东西),我应该使用。

最初,当试图迁移Window 2008虚拟机时,我得到了这个“在这个操作系统映像中找不到根设备”的错误。 。 。

[root@kvm01b ~]# virt-v2v -ic 'esx://my-vmware-hypervisor.example.com/' \ -os transferimages --network default my-vm virt-v2v: No root device found in this operating system image. 

。 。 。 但是我解决了这个问题,只需要yum install libguestfs-winsupport一个yum install libguestfs-winsupport因为这个文档说:

如果您尝试在没有安装libguestfs-winsupport软件包的情况下使用NTFS转换虚拟机,则转换将失败。

接下来,我收到了有关Windows 2008缺less驱动程序的错误。 。

 [root@kvm01b ~]# virt-v2v -ic 'esx://my-vmware-hypervisor.example.com/' \ -os transferimages --network default my-vm my-vm_my-vm: 100% [====================================]D virt-v2v: Installation failed because the following files referenced in the configuration file are required, but missing: /usr/share/virtio-win/drivers/amd64/Win2008 

。 。 。 我通过从http://www.linux-kvm.org/page/WindowsGuestDrivers/获得的http://ora.alt-project.org/pub/alt/virtio-win/latest/获取Fedora的iso来解决这个问题。使用这个规格文件Download_Drivers并从它build立一个RPM: https : //github.com/fasrc/virtio-win/blob/master/virtio-win.spec

现在,virt-v2v退出,没有错误:

 [root@kvm01b ~]# virt-v2v -ic 'esx://my-vmware-hypervisor.example.com/' \ -os transferimages --network default my-vm my-vm_my-vm: 100% [====================================]D virt-v2v: my-vm configured with virtio drivers. [root@kvm01b ~]# 

现在,我的问题是, 我写的spec文件中的virtio-win RPM还有一些更基本的基于CentOS或EPEL的RPM,可以解决上面的错误吗?

这里有一些关于我的设置的更多细节:

 [root@kvm01b ~]# cat /etc/redhat-release CentOS release 6.2 (Final) [root@kvm01b ~]# rpm -q virt-v2v virt-v2v-0.8.3-5.el6.x86_64 

另请参见错误605334 – 用于Windows的VirtIO驱动程序不显示特定的操作系统:Windows 7,Windows 2003

Fedora项目的VirtIO驱动程序是任何Linux上任何KVM实现的方式。 你所做的是正确的做法。