>From d4615e106772deaa635784fc33b26e9a8f3a79c4 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 12 Feb 2010 12:49:11 +0000 Subject: [PATCH] Force appliance to use IDE interface. --- v2v/virt-v2v.pl | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/v2v/virt-v2v.pl b/v2v/virt-v2v.pl index cd23514..9bc65be 100755 --- a/v2v/virt-v2v.pl +++ b/v2v/virt-v2v.pl @@ -330,10 +330,12 @@ exit(0); sub get_guestfs_handle { - my $g = open_guest(\@_, rw => 1); + my $interface = "ide"; + + my $g = open_guest(\@_, rw => 1, interface => $interface); # Add the transfer iso if there is one - $g->add_drive($transferiso) if(defined($transferiso)); + $g->add_drive_with_if($transferiso, $interface) if(defined($transferiso)); # Enable selinux in the guest $g->set_selinux(1); -- 1.6.5.2