WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] PV Drivers in Linux HVM DomU?

To: "Pasi Kärkkäinen" <pasik@xxxxxx>
Subject: Re: [Xen-users] PV Drivers in Linux HVM DomU?
From: "Emre Erenoglu" <erenoglu@xxxxxxxxx>
Date: Thu, 22 Nov 2007 18:48:26 +0100
Cc: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Nov 2007 09:49:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=QQZdYFYU3VhECAWbOVWEUimpmCPe0FxQBn+WfEQPo14=; b=G7Z2bQke28Vqt5FmdmR4ABRqL3NhXiCoWWv1BU40V4KRufJUEwJaRNFzqNj4fdaRiZx/BKvMOgkAKpP7LxaEDOf4a+x6OEP4rMqOPiRfmpwQvOJQCWeD7DIQjhdZTJMjsK6Lo2MkmaBNrKlrW6lzTZNvt6j/aFCmEQFLbMtZdro=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=b7NVXT7SVpM8g1gKp4L8gbx1wHqRenr+UPb9BbkV52Eqak3ka40N1QEM8ESOGg4MMyX8GAUE0wr1XniE0bc9Bmr+fUvQ5CJscE60381rAJHrSGOPf/dXe+G88Efam66wN4HnCbSrUCyEon/X0i7p6pcsXB+d0yJ/6T50q1DtyN8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071122163607.GE17677@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <fe9771a80711220447l11c4e824g27592fa3cc370378@xxxxxxxxxxxxxx> <20071122143518.GC17677@xxxxxxxxxxxxxxx> <fe9771a80711220657n284fd4a4k8a4552d4ac8414e8@xxxxxxxxxxxxxx> <20071122163607.GE17677@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Pasi, thanks again for your response. Answers below:

On Nov 22, 2007 5:36 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
On Thu, Nov 22, 2007 at 03:57:23PM +0100, Emre Erenoglu wrote:
> >
> > > Or, does the recent introduction of VMI into the linux kernel make this
> > > automatic for us? i.e. if I use any recent kernel, such as Ubuntu's
> > > 2.6.22-14-generic, will paravirtualized disk/network drivers be
> > > automatically activated?
> > >
> >
> > VMI is VMware's interface to run paravirtual Linux on VMware. It doesn't
> > work or help at all with Xen.
>
>
> Well maybe I stated wrong, i was mentioning VMI (or whatever function it is)
> as a common way to enable standard kernels to work as Paravirtual when they
> detect the presence of a hypervisor. I think this is now standard for all,
> including VMWare and XEN.

This standard paravirtualization layer/support is called "paravirt ops" in kernel.

"paravirt ops" is then implemented for Xen, VMI, KVM, Lguest etc..

> FYI, it is possible to boot a 2.6.23 vanilla kernel as paravirtual DomU, but
> my question was if the paravirtual drivers were already there if I use HVM
> instead of Paravirtualization. I hope I mentioned it right...
>

No, HVM PV drivers are not included with the vanilla kernel, you need to
obtain and load them separately.

OK

>
> >
> > If you're running paravirtual linux on xen, you already have
> > paravirtualized
> > ("full speed") drivers in use.
>
>
> Yes,  however, my DomU crashes on boot with the PV kernel. I couldn't find
> why.
>

What dom0 distribution are you using?

Are xen/kernel packages provided by the distribution or self compiled?

I'm using Ubuntu 7.10 with 2.6.22-14-xen as Dom0. Packages are provided by the distribution.  

What is your domU distribution? Is the domU PV kernel from the
distribution, or self compiled? 

DomU is Pardus 2007.2. It has default kernel 2.6.18-8, but as I wanted paravirtualization, I was using Ubuntu's 2.6.22-14-xen. The crash started with this release kernel. when Ubuntu was beta, I was able to use 2.6.22-12-xen without problems.
Pardus 2007.2 is able to work with Ubuntu 2.6.22-14-generic kernel (on bare metal) without problems. It used to be working as DomU with 2.6.22-12-xen but not anymore with 2.6.22-14-xen. I filed a bug report 1 month ago, no answer yet.

I switched to VMWare for the moment until I resolve this issue, VMWare disk performance is not good even if I enabled PV support (VMI).

Therefore, my aim now is to use standard Pardus kernel 2.6.18-8, but compile PV drivers for use with Dom0 (Ubuntu 7.10 2.6.22-14-xen, Xen 3.1)

 

PV domU is the most common type of virtual machine on Xen, and it definitely
works fine as long as you're running matching/compatible versions of Xen and
kernels.

> >
> >
> > If you're using HVM domU on Xen, then you need to install Xen PV drivers
> > on
> > domU.
> >
> > -- Pasi
> >
>
> Thanks, just one last question, when I compile and modprobe these PV
> modules, how can I understand that they are actually working?   Do they
> print some message in dmesg?
>

Yes.

Usually you need to edit/recreate your initrd to load these modules during
the domU bootup.

-- Pasi

OK, I'll do that. thanks a lot again.

--
Emre Erenoglu
erenoglu@xxxxxxxxx
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users