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/
Home Products Support Community News


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: Maximilian Wilhelm <max@xxxxxxxxxxx>
Date: Wed, 18 Feb 2009 03:17:51 +0100
Delivery-date: Tue, 17 Feb 2009 18:18:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e39b62c10902171746t6d8476e8v40023425cd8899c6@xxxxxxxxxxxxxx>
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>
Mail-followup-to: xen-users@xxxxxxxxxxxxxxxxxxx
References: <e39b62c10902171746t6d8476e8v40023425cd8899c6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
Anno domini 2009 KARTHIK BALAJI G scripsit:


> I am running xen-3.3.1. I am trying to compile linux kernel 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-"
> ramdisk = "/boot/initrd.img-"
> 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_poweroff = 'destroy'
> 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 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
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"

        Follow the white penguin.

Xen-users mailing list