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

[Libguestfs] [v2v PATCH] Force appliance to use IDE interface. (was: Re: [PATCH 0/4] Allow QEMU if=... (block device emulation) to be overridden)



The only changes that should be needed to virt-v2v
are attached (untested).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
>From d4615e106772deaa635784fc33b26e9a8f3a79c4 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones redhat com>
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


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