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] Compiling lInux2.6.28.5 for hosting VM

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Compiling lInux2.6.28.5 for hosting VM
From: KARTHIK BALAJI G <findkb@xxxxxxxxx>
Date: Tue, 17 Feb 2009 21:41:35 -0500
Delivery-date: Tue, 17 Feb 2009 18:42:18 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=7VaQZ1pNDhFodj4cNgzf5A3bVsZu9AHow5+y0pOLe1A=; b=HrWeMaDYqRppLvBjRkFh925L0sbl3Du9NQDCd4RZrkTgNuQYC8yrmK+hkTGcphOS0g 4f2LGG4AU7C/aKxbH6WltTsaZt+qf76+gHnKuc/ZoKv+tJfsMyArTIwDdoY6rC7QCuOX arBo/6XlH76t6rdfSw3yHCR/qlPwj8w/u+vSQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LPwgJBsT+vz6JzEYN7XDk7QRo+CJ6fy7WDgu9ZscSJCQznVAsx4KCldF+Jzzpjp3Nu cW/XKwvBvLtUG0O2VEaEpSX0ajDKmfS8HwQCSRkekwTUpmNo1AvNmbRiqC1EJw1mSvcR CfEj4yNaiMeVQoLk27kd4Z/jzA9dtKVHek7Ok=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090218021751.GD29418@xxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <e39b62c10902171746t6d8476e8v40023425cd8899c6@xxxxxxxxxxxxxx> <20090218021751.GD29418@xxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Max,

Thanks for replying. I forgot to mention that I did try that step u suggested. It still hangs at the same place. I think we need to compile a driver for the vanilla kernel (2.6.25.8) for it to recognize xvd* devices. Please correct me if I am wrong.

In that is case why xen related config options I enabled during kernel compilation did not compile any driver for recognizing these devices ?

Thanks,
Karthik.



On Tue, Feb 17, 2009 at 9:17 PM, Maximilian Wilhelm <max@xxxxxxxxxxx> wrote:
Anno domini 2009 KARTHIK BALAJI G scripsit:

Hi!

> I am running xen-3.3.1. I am trying to compile linux kernel 2.6.28.5 such
> that I can boot it as DomU kernel. I enabled all the config options related
> to xen in that kernel. After compiling the kernel and creating the initrd
> image I created my xen conf file that looks like,

> kernel = "/boot/vmlinuz-2.6.28.5"
> ramdisk = "/boot/initrd.img-2.6.28.5"
> builder='linux'
> memory = 256
> name = "guest1"
> vcpus = 2
> vif = [ 'mac=00:16:3e:ef:fe:11, ip="<my-ip>"' ]
> disk = [ 'file:/mnt/domains/vm1/disk.img,sda1,w' ,
> 'file:/mnt/domains/vm1/swap,sda2,w' ]
> root = "/dev/sda1 ro"
             ~~~

> > > on_reboot   = 'restart'
> on_crash    = 'restart'

> When I boot into it hangs at,

> >Done.
> >Begin: Waiting for root file system... ...

> So eventually it could not find the root file system and falls to busybox. I
> did cat /proc/partitions - It listed xvda1 and xvda2 as partitions. I don't
                                     ~~~~~      ~~~~~
> understand which driver is missing in kernel 2.6.28.5 to load xvda1. I did
> some googling and saw that I need to compile unmodified_drivers (present in
> xen-3.3.1 directory) for this linux kernel. So did,
[...]

When using a vanilla kernel all XenVirtualBlock devices will be named
 xvd<letter>
so the declaration of 'sda1' and 'sda2' will be silently ignored.
For convenience you should changed the disk line to

 disk = [ 'file:/mnt/domains/vm1/disk.img,xvda1,w' ,
 'file:/mnt/domains/vm1/swap,xvda2,w' ]

and you have to change the root line to

root = "/dev/xvda1 ro"

HTH
Ciao
Max
--
       Follow the white penguin.

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

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