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] Xen 4.0 Custom kernels

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-users] Xen 4.0 Custom kernels
From: Net Warrior <netwarrior863@xxxxxxxxx>
Date: Thu, 13 May 2010 19:40:51 -0300
Cc: Xen Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 13 May 2010 15:42:12 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=K4Rql2AgwswLUIXsL4AYiTOj6gSTW4gphpojW6xFFv4=; b=nbSwRZ+JEIXE+qTpWWhx9fB54gb1s3/iJcJuIAnM4WFNYQCeeHW7Y06z9hhav4Uib7 DsfCXBP4t6iNrG3uyt6BfUbNaPP01UXmLy1NJDSnCa8IrVhkrL69OO4PVEgsHBRBRfTt 0+bki/9M/r2rURlTz0xtg4FLhMzT823LH2sIg=
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 :cc:content-type:content-transfer-encoding; b=KgrdzvmwB6jlrtbP07LJoWuQygBx1XOfdML3tQTJZF4REXVTSeIHRncvTuAtR95pBU 3DxQDblQhrv7cxXXKQhGX3vu1DPR1/qo90ZD70sszy7ni+bXD+tBLp4Z2RhBgZBf52cJ RBuhMMtvBQz43szNEeUlhoVtEIx/Cu4ouWwao=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100513174614.GC17817@xxxxxxxxxxx>
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: <AANLkTikDNh__bm2E83zYLVku80G1VJzhpfCKks2Oh59S@xxxxxxxxxxxxxx> <20100513173320.GA17817@xxxxxxxxxxx> <AANLkTindYi5YPftjIdxGrYJKJG8opdLaEoHMUr0eJZVa@xxxxxxxxxxxxxx> <20100513174614.GC17817@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi there guys

As a test, I started using the same kernel and initramfs like in Dom0
which i know it works, but when starting up DomU I've get.

switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.31.13 #14

I've got the same error while setting up Dom0 and was a problem with
the scsi modules which I included in the kernel and not in the
initramfs, my bad !!

My config file looks this.
#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/vmlinuz-2.6.31.13"

# Optional ramdisk.
ramdisk = "/boot/initrd-2.6.31.13.img"

disk = [ 'phy:VG-NW/root,sda1,w','phy:VG-NW/swap,sda2,w' ]

Also copied the /lib/modules/kernel_version to the *guest* partition.

What am I missing?

Thanks for your time and support
Regards








2010/5/13, Pasi Kärkkäinen <pasik@xxxxxx>:
> On Thu, May 13, 2010 at 02:38:40PM -0300, Net Warrior wrote:
>> Hi Pasi.
>>
>> Did not know I could use the Vanila Kernel for DomU usage, I thought
>> it has to be patched somehow as well.. so good news, I'll try to
>> compile a custom one using the latest stable from kernel.org and leave
>> the Dom0 which is working as it is.
>>
>
> I recommend using the latest stable 2.6.32.x kernel for the domU.
>
> If you're building a 32bit domU kernel remember it needs to be PAE (64G mem
> support),
> otherwise you won't see the pvops Xen domU options at all in the kernel
> configuration.
>
> There are no special requirements for 64bit domU kernel.
>
> -- Pasi
>
>> Thanks for your time and support
>> Regards
>>
>>
>>
>>
>>
>> 2010/5/13, Pasi Kärkkäinen <pasik@xxxxxx>:
>> > On Thu, May 13, 2010 at 12:38:00PM -0300, Net Warrior wrote:
>> >>    Hi there guys.
>> >>
>> >>    I'm using CentOS 5.4, I was able to compile my custom Dom0 kernel
>> >> and
>> >> boot
>> >>    it, now I've got some doubts.
>> >>
>> >>    I'd like to compile a custom DomU image, the problem is that when I
>> >> do,
>> >>    make kernels KERNELS="linux-2.6-xen0 linux-2.6-xenU" it tries to
>> >> download
>> >>    the kernel
>> >>    from the HG repository which seems to have old 2.6.18 kernels, I
>> >> want
>> >> to
>> >>    use the GIT repository which is alrealdy downloaded and is the
>> >> source I
>> >>    used to complile Dom0 using
>> >>    kernel 2.6.33.13.
>> >>
>> >
>> > specifying KERNELS="linux-2.6-xen0 linux-2.6-xenU" will compile
>> > linux-2.6.18-xen,
>> > that's how it should be.
>> >
>> > If you don't specify KERNELS= at all, then it'll build linux-2.6.31.x
>> > kernel.
>> > Or alternatively you can specify KERNELS="linux-2.6-pvops" to get the
>> > same
>> > result.
>> >
>> >>    Question:
>> >>    Which files do I have to modify or how do I have to proceed to
>> >> achieve
>> >>    what I want?
>> >>
>> >
>> > Did you know you can use the *default* (vanilla) kernel.org Linux
>> > kernels as
>> > Xen PV domU?
>> > No patches needed for that, the upstream kernels will work for domU.
>> >
>> >>    Under /usr/src/xen-4.0.0/buildconfigs I can see some files which
>> >> define
>> >>    some stuff depending on what I chose but not sure if it's safe to
>> >> mees
>> >>    with this.
>> >>
>> >>    Thanks for your time and support.
>> >
>> > Hopefully that helps.
>> >
>> > -- Pasi
>> >
>> >
>

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