You are not logged in.

#1 2006-10-25 19:13:22

ondex
Member
Registered: 2006-10-23
Posts: 4

PKGBUILD and package for a Xen version of kernel26

I've created a PKGBUILD to compile a XenLinux 2.6.18.1.

It's almost exactly kernel26 PKGBUILD with one patch from fedora to enable Xen options and an updated config file.

You can find PKGBUILD with patch here :
http://www.ledisez.net/divers/kernel26xen-1.tar.gz (848K)

The binary package for i686 is here :
http://www.ledisez.net/divers/kernel26x … pkg.tar.gz (18M)

This kernel runs fine with Xen 3.0.3 as a dom0 kernel (host). It should run fine as a domU kernel, I have not tested it.

$ uname -a
Linux romain 2.6.18-ARCH-xen #1 SMP Wed Oct 25 20:32:07 CEST 2006 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux

I have not modified config file for x86_64 (config.x86_64) because I have not this type of processor. Feel free to give me the updated file, it will be added to the PKGBUILD archive.

I'm not sure to have time to maintain this PKGBUILD. So if somebody is motivated, post a message here. I don't know how to add a PKGBUILD to Aur ? Is this package a good candidate ?

To boot, add to your /boot/grub/menu.lst :

# (1) Xen + Arch Linux
title  Xen / ArchLinux [/boot/xen-3.0.3-0.gz + /boot/vmlinuz26xen]
root   (hd0,0)
kernel /xen-3.0.3-0.gz dom0_mem=524288
module /vmlinuz26xen root=/dev/sda5 ro vga=794
module /kernel26xen.img

I hope it will save time to you.
(Sorry for my bad and limited English)

Offline

#2 2006-10-26 09:42:49

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: PKGBUILD and package for a Xen version of kernel26

Please post it to AUR! wink


to live is to die

Offline

#3 2006-10-26 11:54:56

cdhotfire
Member
From: Ocala, Florida
Registered: 2006-02-13
Posts: 151

Re: PKGBUILD and package for a Xen version of kernel26

Romashka wrote:

Please post it to AUR! wink

Did you read his post?

He said he doesn't know how to post to AUR, and is not sure if he will have time to maintain it.

ondex, don' submit it to AUR if you will not maintain it, just let someone else submit it if they want to.


[img]http://www.barbarawood.com/guestbook/images/smilies/koolaid.gif[/img]
"Ooooh Yaaaa!"

Offline

#4 2006-10-26 12:02:16

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: PKGBUILD and package for a Xen version of kernel26

cdhotfire wrote:

Did you read his post?

Sorry, I've missed that line.  :oops:


to live is to die

Offline

#5 2006-10-28 12:08:03

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: PKGBUILD and package for a Xen version of kernel26

Nice, I'll install this on my box to get rid of the dev chroots smile

Offline

#6 2006-10-28 13:14:53

xterminus
Member
From: Tacoma, WA, USA, Earth, Sol, M
Registered: 2005-10-30
Posts: 93

Re: PKGBUILD and package for a Xen version of kernel26

JGC wrote:

Nice, I'll install this on my box to get rid of the dev chroots smile

I ran xen on my workstation for about 6 months.  I eventually decided that xen is not worth the trouble if you don't have a compelling reason to virtualize.  I spent an enormous amount of time keeping things stable and working, which would have better spent by simply setting up a few chroots.

I think web hosting shops certainly have a real need for virtualization, but probably not for workstation users... that is unless you have a compelling need for additional complexity and headaches wink

Offline

#7 2006-10-29 13:39:24

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 266

Re: PKGBUILD and package for a Xen version of kernel26

ok, next step...how to install guest os?

Offline

#8 2006-10-29 16:18:46

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: PKGBUILD and package for a Xen version of kernel26

Installing guest OS is simple: make a disk image or take care of a spare partition, use the quickinst tool from the setup CD on it and then configure xen to boot that disk image or partition, using the dom0 kernel as kernel.

Offline

#9 2006-10-29 16:32:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: PKGBUILD and package for a Xen version of kernel26

@jgc you got it working then?


Mr Green

Offline

#10 2006-10-30 00:40:23

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 266

Re: PKGBUILD and package for a Xen version of kernel26

JGC wrote:

Installing guest OS is simple: make a disk image or take care of a spare partition, use the quickinst tool from the setup CD on it and then configure xen to boot that disk image or partition, using the dom0 kernel as kernel.

sorry, can not follow the message, can make some Exp.

Offline

#11 2006-10-30 08:54:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: PKGBUILD and package for a Xen version of kernel26

once, have a look here - xen docs for all occasions. smile

Offline

#12 2006-10-30 13:20:09

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 266

Re: PKGBUILD and package for a Xen version of kernel26

tomk wrote:

once, have a look here - xen docs for all occasions. smile

not much help for wiki tech language for my poor english.
exp. 你看得懂中文字嗎?

Offline

#13 2006-12-01 15:32:31

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: PKGBUILD and package for a Xen version of kernel26

I installed your kernel, but it crashes my Arch domU. My dom0 is openSUSE 10.1 and using SuSE's stock xen kernel boots Arch just fine, though. I can't even kill the domU! "xm destroy arch", "xm shutdown arch" and even "xm list" all fail.

Arch as domU
I used an image from Jailtime.org (CentOS 4.4, although any image will probably do). After I booted the JT domU, I mounted my Arch partition (file) and the Arch install CD in the booted image.
First I extracted the pacman package to the root of the Arch partition:

cp /mnt/loop/arch/pkg/setup/pacman.pkg.tar.gz /mnt/arch
cd /mnt/arch
tar xvzf pacman.pkg.tar.gz

Then I used these commands to extract all packages from base into /mnt/arch. I fucked up somewhere though, because my pacman database wasn't built. 

grep base /mnt/loop/arch/pkg/current.db.pkg.tar.gz > /mnt/arch/basepackages
sed -i 's/base///' /mnt/arch/basepackages
for package in `cat /basepackages`; do /mnt/arch/usr/bin/pacman.static -Afd --root=/mnt/arch --config=/mnt/arch/etc/pacman.conf --dbpath=/var/lib/pacman /mnt/loop/arch/pkg/$package; done

Once that's done, edit /etc/fstab and /etc/rc.conf and finally
umount /mnt/arch and /mnt/loop.

Edit Arch's domU config file and include a working Xen-kernel. Then you can boot into Arch.

I corrected the nonexisting pacman DB by once again installing every base package using the little script, with a few modifications:

for package in `cat /basepackages`; do /usr/bin/pacman -Afd /mnt/loop/arch/pkg/$package; done

A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

Board footer

Powered by FluxBB