[Libguestfs] [PATCH 0/1] virt-v2v: Track hd->sd block device remaps

Mike Latimer mlatimer at suse.com
Wed Sep 25 19:40:02 UTC 2013


During the conversion process, hd* block devices under Xen are mapped
to sd* devices for use under guestfs. These sd devices are later
remapped to vd* (or sd/hd) devices, for future use under kvm.

The current code fails to track the original hd* device names. This
causes subsequent remappings of the block devices (in such places as
/etc/fstab, and /boot/grub/menu.lst), to skip the hd* devices, which
leads to a later failure of the guest.

This patch adds a hash to track the hd->sd remap, and later uses that
hash to add hd->vd maps to the table.

Mike Latimer (1):
  Track hd sd block device remaps

 lib/Sys/VirtConvert/Converter/RedHat.pm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

-- 
1.8.1.4




More information about the Libguestfs mailing list