From: Wei Liu Subject: [PATCH OSSTEST v3 10/13] TestSupport: don't put kernel= in HVM config when using xl and libvirt Date: Wed, 22 Jul 2015 11:13:32 +0100 Message-ID: <1437560015-4999-11-git-send-email-wei.liu2@citrix.com> References: <1437560015-4999-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZHr3Y-0002cG-6M for xen-devel@lists.xenproject.org; Wed, 22 Jul 2015 10:15:20 +0000 In-Reply-To: <1437560015-4999-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: ian.jackson@eu.citrix.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Setting kernel to hvmloader is ignored in xl but not in libvirt. Libvirt config converter will translate that then pass it to QEMU. QEMU complains there is no kernel called hvmloader and exits. Remove this option for xl and libvirt. Xl is not affected and libvirt will be able to create HVM guest. Xend might still need it. Signed-off-by: Wei Liu --- v3: xend still needs that option --- Osstest/TestSupport.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 66dc218..37dbe55 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1624,8 +1624,11 @@ sub more_prepareguest_hvm ($$$$;@) { } my $disks = join ",\t\t\n", map { "'$_'" } @disks; + my $kernel = $ho->{Toolstack}->{Name} =~ m/xend/ ? + "kernel = 'hvmloader'" : ''; + my $cfg = <