[Users] qemu: too many ide bus during v2v migration

Hi, we're currently migrating over from esxi to ovirt. V2v is pretty smooth, up until I try to migrate a vm with more than 3 SCSI disks. The disks are exported from esxi as IDE and after the disks have been copied over, the process fails with "qemu: Too many IDE bus" Is there a practical way to fix this? Thanks for your help, Stefan

On Tue, 2013-12-03 at 15:00 +0100, Stefan Wendler wrote:
Hi,
we're currently migrating over from esxi to ovirt. V2v is pretty smooth, up until I try to migrate a vm with more than 3 SCSI disks. The disks are exported from esxi as IDE and after the disks have been copied over, the process fails with "qemu: Too many IDE bus" Is there a practical way to fix this?
Unfortunately this is a legacy limitation of virt-v2v which is very hard to remove. You can try to fix it by manually patching GuestfsHandle.pm in virt-v2v to remove the 'iface' argument to add_drive_opts. Specifically, find the following: $g->add_drive_opts($path, format => $format, iface => $interface, name => $name); and change it to: $g->add_drive_opts($path, format => $format, name => $name); and find the following: $g->add_drive_opts($transfer, format => 'raw', iface => $interface, readonly => 1) if defined($transfer); and change it to: $g->add_drive_opts($transfer, format => 'raw', readonly => 1) if defined($transfer); The effects of this change are not well tested, and will definitely break conversion of older RHEL guests. Guests which natively support virtio should probably be ok, though. Matt

On Tue, Dec 03, 2013 at 03:00:37PM +0100, Stefan Wendler wrote:
Hi,
we're currently migrating over from esxi to ovirt. V2v is pretty smooth, up until I try to migrate a vm with more than 3 SCSI disks. The disks are exported from esxi as IDE and after the disks have been copied over, the process fails with "qemu: Too many IDE bus" Is there a practical way to fix this?
You only need to use virt-v2v on operating system disks. Any data disks can just be 'dd'-ed over. Of course this may not be helpful if you have 3 or more OS disks, but we have fixed this upstream so at least it won't be broken in the next version ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
participants (3)
-
Matthew Booth
-
Richard W.M. Jones
-
Stefan Wendler