PDA

View Full Version : Xen compile kernel


qiu
13th April 2006, 12:12
In the xen for sage howto there is a part three
http://www.howtoforge.com/perfect_setup_xen3_debian_p3

since I may need ip tables and quote is there a simple way to recompile the kernal i have 2.6 sarge installed. The way to do it in how to is ok but I am finding it difficult to follow.

qiu;)

falko
13th April 2006, 13:50
since I may need ip tables and quote is there a simple way to recompile the kernal i have 2.6 sarge installed. The way to do it in how to is ok but I am finding it difficult to follow.

What exactly do you find difficult to follow? You only need to copy & paste from the tutorial.

qiu
13th April 2006, 14:39
well this for example But it may be quite simple once i know how:


In the kernel comfiguration menu that shows up we enable quota, iptables and the dummy network driver as modules. This is where you enable these modules:

File systems --> Quota support
<M> Old quota format support
<M> Quota format v2 support

Device Drivers ---> Networking support ---> <M> Dummy net driver support

Device Drivers ---> Networking support ---> Networking options ---> Network packet filtering (replaces ipchains) ---> IP: Netfilter Configuration ---> <M> IP tables support (required for filtering/masq/NAT)

means: build into the kernel statically.
<M> means: build as a kernel module.


qiu

falko
13th April 2006, 15:07
When you run make menuconfig, a kernel configuration menu shows up.

Device Drivers ---> Networking support ---> <M> Dummy net driver support for example means: go to Device Drivers, then to Networking Support, and then enable Dummy net driver support as a module (M).

qiu
13th April 2006, 19:20
It semed to go ok I followed your suggestions.

just one small snag at the end

update-rc.d xend defaults 20 21
and
update-rc.d xendomains defaults 21 20

update-rc.d: etc/init.d/xen file does not exist
same for xendomains files does not exist.

i create by touch command xend and xendomains just need to know script to put in file then place in /etc/init.d

falko
13th April 2006, 23:42
Then you did something wrong. What's the output of ls -la /etc/init.d?
Please try to follow the tutorial as close as possible and avoid typos, etc.

qiu
14th April 2006, 00:52
nit.d$ ls -la
total 240
drwxr-xr-x 2 root root 4096 2006-04-13 15:31 .
drwxr-xr-x 55 root root 4096 2006-04-13 17:06 ..
-rwxr-xr-x 1 root root 1074 2002-01-18 08:13 atd
-rw-r--r-- 1 root root 2593 2004-09-10 16:00 bootclean.sh
-rwxr-xr-x 1 root root 1529 2005-01-04 22:43 bootlogd
-rwxr-xr-x 1 root root 1371 2004-09-10 16:00 bootmisc.sh
-rwxr-xr-x 1 root root 935 2004-09-10 16:00 checkfs.sh
-rwxr-xr-x 1 root root 7160 2004-09-10 16:00 checkroot.sh
-rwxr-xr-x 1 root root 5366 2005-02-05 09:17 console-screen.sh
-rwxr-xr-x 1 root root 1096 2004-07-28 15:12 cron
-rwxr-xr-x 1 root root 7823 2005-01-09 00:16 discover
-rwxr-xr-x 1 root root 729 2005-03-23 18:04 dns-clean
-rwxr-xr-x 1 root root 3888 2005-05-27 08:59 exim4
-rwxr-xr-x 1 root root 811 2004-09-10 16:00 halt
-rwxr-xr-x 1 root root 165 2004-09-10 16:00 hostname.sh
-rwxr-xr-x 1 root root 3344 2005-03-20 01:51 hotplug
-rwxr-xr-x 1 root root 359 2005-03-20 14:09 hotplug-net
-rwxr-xr-x 1 root root 3499 2005-09-18 08:04 hwclockfirst.sh
-rwxr-xr-x 1 root root 3638 2005-09-18 08:04 hwclock.sh
-rwxr-xr-x 1 root root 2240 2005-05-02 14:57 ifupdown
-rwxr-xr-x 1 root root 802 2005-04-04 14:33 ifupdown-clean
-rwxr-xr-x 1 root root 1764 2004-10-24 17:28 inetd
-rwxr-xr-x 1 root root 658 2005-04-10 23:35 initrd-tools.sh
-rwxr-xr-x 1 root root 2923 2005-02-04 19:30 keymap.sh
-rwxr-xr-x 1 root root 1346 2005-05-25 19:21 klogd
-rwxr-xr-x 1 root root 775 2004-07-05 07:46 lpd
-rwxr-xr-x 1 root root 798 2004-08-18 19:43 makedev
-rwxr-xr-x 1 root root 1320 2005-01-26 20:55 module-init-tools
-rwxr-xr-x 1 root root 864 2004-12-19 10:40 modutils
-rwxr-xr-x 1 root root 1033 2004-09-10 16:00 mountall.sh
-rwxr-xr-x 1 root root 1619 2004-09-10 16:02 mountnfs.sh
-rwxr-xr-x 1 root root 4872 2004-09-10 16:00 mountvirtfs
-rwxr-xr-x 1 root root 2651 2005-03-21 18:49 networking
-rwxr-xr-x 1 root root 1984 2005-01-05 12:38 nfs-common
-rwxr-xr-x 1 root root 2305 2005-03-06 23:29 nviboot
-rwxr-xr-x 1 root root 5579 2005-01-14 18:27 pcmcia
-rwxr-xr-x 1 root root 1076 2005-03-20 08:04 portmap
-rwxr-xr-x 1 root root 1452 2005-02-25 18:45 ppp
-rwxr-xr-x 1 root root 189 2003-08-11 01:59 pppd-dns
-rwxr-xr-x 1 root root 1039 2004-04-13 06:26 procps.sh
-rwxr-xr-x 1 root root 2235 2004-09-10 16:00 rc
-rwxr-xr-x 1 root root 1190 2004-09-10 16:00 rcS
-rw-r--r-- 1 root root 846 2004-09-10 16:00 README
-rwxr-xr-x 1 root root 197 2004-09-10 16:00 reboot
-rwxr-xr-x 1 root root 457 2004-09-10 16:00 rmnologin
-rwxr-xr-x 1 root root 433 2004-11-14 18:26 screen-cleanup
-rwxr-xr-x 1 root root 358 2004-09-10 16:00 sendsigs
-rwxr-xr-x 1 root root 591 2004-09-10 16:00 single
-rwxr-xr-x 1 root root 2111 2004-09-10 16:00 skeleton
-rwxr-xr-x 1 root root 1891 2004-11-28 15:33 ssh
lrwxrwxrwx 1 root root 8 2006-04-09 10:06 stop-bootlogd -> bootlogd
-rwxr-xr-x 1 root root 2077 2005-05-25 19:21 sysklogd
-rwxr-xr-x 1 root root 509 2004-09-10 16:00 umountfs
-rwxr-xr-x 1 root root 1291 2004-09-10 16:00 umountnfs.sh
-rwxr-xr-x 1 root root 1381 2004-09-10 16:00 urandom
-rwxr-xr-x 1 root root 1963 2005-02-11 07:11 xfree86-common

falko
14th April 2006, 01:00
xend and xendomains are missing. Please re-do the steps from http://www.howtoforge.com/perfect_setup_xen3_debian_p3

qiu
14th April 2006, 01:06
the whole page 3 ok
delete the sorce xen 3.0.1 file also and download again?

qiu

ps i think on page 3 apt-get install libcurl3-dev has been entered twice?

falko
14th April 2006, 15:50
the whole page 3 ok
delete the sorce xen 3.0.1 file also and download again?

No, you don't need to download it again.

qiu
14th April 2006, 19:24
reinstalled from page 3 as sugggested same error


update-rc.d xend defaults 20 21
and
update-rc.d xendomains defaults 21 20

update-rc.d: etc/init.d/xen file does not exist
same for xendomains files does not exist.


qiu:)
.in kernel config Y for *
and M for module

the only change i made when I installed sarge 3.1r1 was i had to disable
USB legacy in BIOS so i could use labtop keypad in sarge. you see i have kernel 2.6 on hda1 ubuntu Ubuntu, kernel 2.6.12-10-686and sarge hda2 Debian GNU/Linux, kernel 2.6.8-2-386 thing is I cannot reboot. but can shutdown. Since this may or may not effect xen i have posted my kernel print-out at http://pastebin.ca/49447