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] Installing from source (git, hg) on a fresh debian box

To: xen-users@xxxxxxxxxxxxxxxxxxx, Brandon Lamb <brandonlamb@xxxxxxxxx>
Subject: Re: [Xen-users] Installing from source (git, hg) on a fresh debian box
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Thu, 11 Mar 2010 04:12:55 -0800 (PST)
Cc:
Delivery-date: Thu, 11 Mar 2010 04:14:24 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1268309575; bh=fTmwlxE37RxJbzizpzuchXUWgr1THr0Y1dZa7Lyzjyc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=4qtsi8u7oYHcZC7NlKNuDEPpzxzclPmaMUR2Li4V0Tn63GEcT+ObDM6Rm2DfP2d4/M86KqyoYnO1OuHq/k1BV5U18d12DcjVJ8/5PHg5o1EVCBrec6CDS7/uN/XFXSl0s4wCeiHNAFMduVo02+1B5HI6EnA6notxNpkr8lsEOWA=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=LpZlonh4IEg0KLQgoaqya6v1uw/QayhiE1hvwxRtIWCPwHPMbEN11UGTvAI4aTxesFzg5rcqkVESapHMGeFeoNZAHuRo37Zzr8HCBJ3ClcPPWD7ZSIc/o4xKZVgyuYO/WckYE2k94SnjAPNsVTAk60UABPEovuDK0UcwEfeWe4A=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f25c44611003101654p52c60cf4ja072f236cc9a4e80@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Same procedure on Ubuntu 9.10 server runs smoothly :

http://bderzhavets.wordpress.com/2010/03/08/set-up-xen-3-4-3-dom0-via-xenified-2-6-31-12-kernel-on-top-ubuntu-9-10-server/

Regardless posting is focused on xenified 2.6.31.12 kernel.
Git checkout xen/stable and build 2.6.32.9 pvops ( including running "mkinitramfs")
run with no problem.

Boris.

--- On Wed, 3/10/10, Brandon Lamb <brandonlamb@xxxxxxxxx> wrote:

From: Brandon Lamb <brandonlamb@xxxxxxxxx>
Subject: [Xen-users] Installing from source (git, hg) on a fresh debian box
To: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Wednesday, March 10, 2010, 7:54 PM

Oye 3 days on this now, my head hurts. I have spent what seems like 40
hours in the last 3 or 4 days reading, and I realize xen is in the
middle of this transition of getting into mainline kernel, issues with
dom0 etc etc.

Ok, so i have come across a few howtos/tutorials on installing xen
dom0 kernel, using git to download a patched? kernel tree, and getting
xen source from mercurial. Below is my steps for trying to install
this, can someone tell me if I am missing something, have a step out
of order or whats going on?

1) Clean install of debian squeeze, update apt-sources to include
lenny and sid repos

2) apt-get install build-essential mercurial gawk zlib1g zlib1g-dev
libzzip-dev libcurl4-openssl-dev xorg-dev gettext libncurses5-dev
python2.5-dev texinfo texlive-latex-base texlive-latex-recommended
texlive-fonts-extra texlive-fonts-recommended transfig bridge-utils
uuid-dev easygit gitk bcc vim-full ssh chkconfig ntpdate openntpd
kernel-package module-assistant pkg-config libgnutls-dev libpci-dev
randomize-lines gcc gcc g++ make patch libssl-dev bzip2 gettext python
libjpeg62-dev libx11-dev libgcrypt11-dev bin86 libsdl1.2-dev libc6-dev
xen-linux-system-2.6.26-2-xen-amd64 dstat ifenslave vnc4server ethtool
bison flex

3) git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
linux-2.6-xen
cd linux-2.6-xen
git reset --hard
git checkout -b xen/stable origin/xen/stable
git pull
make menuconfig
make -j4 bzImage
make -j4 modules
make -j4 modules_install
cp -a .config /boot/config-2.6-xen
cp -a System.map /boot/System.map-2.6-xen
cp -a arch/x86/boot/bzImage /boot/vmlinuz-2.6-xen

I set ext2, ext3, ext4 to be included NOT modules.

4) Attempt to create initrd
xen1:/usr/src/deb# mkinitramfs -o /boot/initrd.img-2.6-xen 2.6-xen
W: kernel 2.6-xen too old for initramfs on
W: not generating requested initramfs for kernel 2.6-xen

This creates a 0 byte initrd-2.6-xen which I can delete, run
update-grub2 and if I try to boot that kernel get a kernel panic, vfs
cant mount root fs on unknown-blockdev (or something really close).

I imagine that is because there is no initrd to load drivers for the
hardware/fs or whatnot from?

I dont understand why trying to run mkinitramfs says the kernel is too
old. Is there perhaps something in the .config that I need to change
or AHHHH...

Anyway, thank you for any insight someone may be able to provide. I
keep re-reading the same google results over and over with no help.

_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>