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

Re: [Xen-users] Compiling lInux2.6.28.5 for hosting VM


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.