HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   xen not booting (http://www.howtoforge.com/forums/showthread.php?t=3935)

qiu 26th April 2006 18:09

xen not booting
 
thankyou for scripts they worked ok in what all the rc.d files.

when i boot to xen I get

Xen 3.0.1 / XenLinux 2.6.12-xen0
root (hd0,1)

filesystem type is ext2fs partition type 0x83
kernel /boot/xen.gz dom0_mem=65536

error 15 file not found
-----------------------------------------------
here is my menu.lst

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true


## ## End Default Options ##

title Xen 3.0.1 / XenLinux 2.6.12-xen0
root (hd0,1)
kernel /boot/xen.gz dom0_mem=65536
module /boot/vmlinuz-2.6-xen0 root=/dev/hda2 ro console tty0

title Debian GNU/Linux, kernel 2.6.8-3-686
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-3-686 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.8-3-686
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-3-686 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-3-686 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.8-3-686
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-686 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-686
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-686 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-10-686
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-386 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-386 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-9-386 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-9-386 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, memtest86+ (on /dev/hda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot

---------------------------
thanks
qiu:)

falko 26th April 2006 23:03

Which kernel do you boot? The first one?
What are the outputs of
Code:

ls -la /boot
and
Code:

df -h
?

qiu 27th April 2006 10:19

xen 3.0.1 not booting
 
Falko thanks for your post.

ls -la /boot

total 6596
drwxr-xr-x 4 root root 4096 2006-04-24 19:07 .
drwxr-xr-x 22 root root 4096 2006-04-24 19:07 ..
drwxr-xr-x 2 root root 4096 2006-04-26 14:59 boot
-rw-r--r-- 1 root root 55399 2006-02-09 07:38 config-2.6.8-3-686
drwxr-xr-x 2 root root 4096 2006-04-26 16:42 grub
-rw-r--r-- 1 root root 4636672 2006-04-24 19:02 initrd.img-2.6.8-3-686
-rw-r--r-- 1 root root 843201 2006-02-09 08:17 System.map-2.6.8-3-686
-rw-r--r-- 1 root root 1171571 2006-02-09 08:17 vmlinuz-2.6.8-3-686





df -h

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 30G 1.2G 27G 5% /
tmpfs 348M 0 348M 0% /dev/shm


how do i cange the admin to root?

-rwxr-xr-x 1 admin admin 813 2006-03-18 17:28 xend
-rwxr-xr-x 1 admin admin 10788 2006-03-18 17:28 xendomains



qiu:)

falko 27th April 2006 12:31

Quote:

Originally Posted by qiu
ls -la /boot

total 6596
drwxr-xr-x 4 root root 4096 2006-04-24 19:07 .
drwxr-xr-x 22 root root 4096 2006-04-24 19:07 ..
drwxr-xr-x 2 root root 4096 2006-04-26 14:59 boot
-rw-r--r-- 1 root root 55399 2006-02-09 07:38 config-2.6.8-3-686
drwxr-xr-x 2 root root 4096 2006-04-26 16:42 grub
-rw-r--r-- 1 root root 4636672 2006-04-24 19:02 initrd.img-2.6.8-3-686
-rw-r--r-- 1 root root 843201 2006-02-09 08:17 System.map-2.6.8-3-686
-rw-r--r-- 1 root root 1171571 2006-02-09 08:17 vmlinuz-2.6.8-3-686

/boot/xen.gz and /boot/vmlinuz-2.6-xen0 do not exist. That's why it doesn't work.

Quote:

Originally Posted by qiu
how do i cange the admin to root?

-rwxr-xr-x 1 admin admin 813 2006-03-18 17:28 xend
-rwxr-xr-x 1 admin admin 10788 2006-03-18 17:28 xendomains

Run
Code:

chown root:root /etc/init.d/xend*

qiu 27th April 2006 13:05

xen 3.0.1 not booting
 
that is because they are in /boot/boot

liss1@xstation:/mnt/boot/boot$ ls -la
total 13060
drwxr-xr-x 2 root root 4096 2006-04-26 14:59 .
drwxr-xr-x 4 root root 4096 2006-04-24 19:07 ..
-rw-rw-r-- 1 root root 27796 2006-04-26 14:47 config-2.6.12.6-xen0
-rw-rw-r-- 1 root root 13333 2006-04-26 14:59 config-2.6.12.6-xenU
-rw-rw-r-- 1 root root 765246 2006-04-26 14:47 System.map-2.6.12.6-xen0
-rw-rw-r-- 1 root root 451360 2006-04-26 14:59 System.map-2.6.12.6-xenU
-rw-r--r-- 1 root root 5713157 2006-04-26 14:47 vmlinux-syms-2.6.12.6-xen0
-rw-r--r-- 1 root root 2997784 2006-04-26 14:59 vmlinux-syms-2.6.12.6-xenU
-rw-r--r-- 1 root root 2196754 2006-04-26 14:47 vmlinuz-2.6.12.6-xen0
-rw-r--r-- 1 root root 1151935 2006-04-26 14:59 vmlinuz-2.6.12.6-xenU
lrwxrwxrwx 1 root root 21 2006-04-26 14:47 vmlinuz-2.6.12-xen0 -> vmlinuz-2.6.12.6-xen0
lrwxrwxrwx 1 root root 21 2006-04-26 14:59 vmlinuz-2.6.12-xenU -> vmlinuz-2.6.12.6-xenU
lrwxrwxrwx 1 root root 21 2006-04-26 14:47 vmlinuz-2.6-xen0 -> vmlinuz-2.6.12.6-xen0
lrwxrwxrwx 1 root root 21 2006-04-26 14:59 vmlinuz-2.6-xenU -> vmlinuz-2.6.12.6-xenU


i will move then into boot
which looks like

bliss1@xstation:/mnt/boot$ ls -la
total 19644
drwxr-xr-x 3 root root 4096 2006-04-27 12:13 .
drwxr-xr-x 22 root root 4096 2006-04-24 19:07 ..
-rw-rw-r-- 1 root root 27796 2006-04-26 14:47 config-2.6.12.6-xen0
-rw-rw-r-- 1 root root 13333 2006-04-26 14:59 config-2.6.12.6-xenU
-rw-r--r-- 1 root root 55399 2006-02-09 07:38 config-2.6.8-3-686
drwxr-xr-x 2 root root 4096 2006-04-27 12:44 grub
-rw-r--r-- 1 root root 4636672 2006-04-24 19:02 initrd.img-2.6.8-3-686
-rw-rw-r-- 1 root root 765246 2006-04-26 14:47 System.map-2.6.12.6-xen0
-rw-rw-r-- 1 root root 451360 2006-04-26 14:59 System.map-2.6.12.6-xenU
-rw-r--r-- 1 root root 843201 2006-02-09 08:17 System.map-2.6.8-3-686
-rw-r--r-- 1 root root 5713157 2006-04-26 14:47 vmlinux-syms-2.6.12.6-xen0
-rw-r--r-- 1 root root 2997784 2006-04-26 14:59 vmlinux-syms-2.6.12.6-xenU
-rw-r--r-- 1 root root 2196754 2006-04-26 14:47 vmlinuz-2.6.12.6-xen0
-rw-r--r-- 1 root root 1151935 2006-04-26 14:59 vmlinuz-2.6.12.6-xenU
lrwxrwxrwx 1 root root 21 2006-04-27 12:12 vmlinuz-2.6.12-xen0 -> vmlinuz-2.6.12.6-xen0
lrwxrwxrwx 1 root root 21 2006-04-27 12:12 vmlinuz-2.6.12-xenU -> vmlinuz-2.6.12.6-xenU
-rw-r--r-- 1 root root 1171571 2006-02-09 08:17 vmlinuz-2.6.8-3-686
lrwxrwxrwx 1 root root 21 2006-04-27 12:12 vmlinuz-2.6-xen0 -> vmlinuz-2.6.12.6-xen0
lrwxrwxrwx 1 root root 21 2006-04-27 12:12 vmlinuz-2.6-xenU -> vmlinuz-2.6.12.6-xenU

but still geting same eror message


Xen 3.0.1 / XenLinux 2.6.12-xen0
root (hd0,1)

filesystem type is ext2fs partition type 0x83
kernel /boot/xen.gz dom0_mem=65536

error 15 file not found


here menu.lst

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## ## End Default Options ##

title Xen 3.0.1 / XenLinux 2.6.12-xen0
root (hd0,1)
kernel /boot/xen.gz dom0_mem=65536
moudle /boot/vmlinuz-2.6-xen0 root=/dev/hda2 ro console tty0

title Debian GNU/Linux, kernel 2.6.8-3-686
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-3-686 root=/dev/hda2 ro
initrd /boot/initrd.img-2.6.8-3-686
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-3-686 (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.8-3-686 root=/dev/hda2 ro single
initrd /boot/initrd.img-2.6.8-3-686
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-686 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-686
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-686 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-10-686
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-386 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-10-386 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-9-386 (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, kernel 2.6.12-9-386 (recovery mode) (on /dev/hda1)
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda1.
title Ubuntu, memtest86+ (on /dev/hda1)
root (hd0,0)
kernel /boot/memtest86+.bin
savedefault
boot



qiu:)

falko 27th April 2006 16:42

But xen.gz doesn't exist in /boot and /boot/boot.

qiu 27th April 2006 18:22

xen 3.0.1 not booting
 
Falko thanks for your post

the only xen.gz was in the xen directory?
so i made a copied it to boot

bliss1@xstation:/mnt/usr/src/xen-3.0.1/xen$ ls -la
total 1228
drwxr-xr-x 8 bliss1 src 4096 2006-04-26 14:03 .
drwxr-xr-x 14 bliss1 src 4096 2006-04-26 14:22 ..
drwxr-xr-x 2 bliss1 src 4096 2006-04-13 23:31 acm
drwxr-xr-x 4 bliss1 src 4096 2006-04-13 23:31 arch
drwxr-xr-x 2 bliss1 src 4096 2006-04-26 14:03 common
-rw-r--r-- 1 bliss1 src 18974 2006-01-31 16:09 COPYING
drwxr-xr-x 4 bliss1 src 4096 2006-04-13 23:31 drivers
drwxr-xr-x 8 bliss1 src 4096 2006-04-26 14:02 include
-rw-r--r-- 1 bliss1 src 5142 2006-01-31 16:09 Makefile
-rw-r--r-- 1 bliss1 src 1966 2006-01-31 16:09 Rules.mk
drwxr-xr-x 3 bliss1 src 4096 2006-04-26 14:02 tools
-rwxr-xr-x 1 root root 443136 2006-04-26 14:03 xen
-rw-r--r-- 1 root root 210331 2006-04-26 14:03 xen.gz
-rwxr-xr-x 1 root root 521692 2006-04-26 14:03 xen-syms

Xen did boot up but only a few lines


Xen version 3.0.1 (root@localhost) (gcc version 3.3.5 ) Debian 1:3.3.5-
wed apr 25 14:02:38 BST 2006
latest changeset Tue Jan 31 11:04 2006 BST 8738eff96462fde8

(Xen) FATAL ERROR dem0 kernel not specified check bootloader config

qiu:)
Ps:---------------------------------------------------------------------------------------
falko, if this is a case of the file xen.gz missing because make world command
then please would you consider posting the file. thankyou

falko 28th April 2006 14:26

Quote:

Originally Posted by qiu
Ps:---------------------------------------------------------------------------------------
falko, if this is a case of the file xen.gz missing because make world command
then please would you consider posting the file. thankyou

I don't think it's that easy. I think your whole Xen setup is messed up because you said you cannot run make world and compile new kernels.

qiu 28th April 2006 14:35

xen 3.0.1 not booting
 
make world ran fine.
just cannot find xen.gz in boot and the one in xen folder did not work
so i thought a simple request for you to post it might br possible?

qiu

falko 29th April 2006 14:26

Quote:

Originally Posted by qiu
so i thought a simple request for you to post it might br possible?

qiu

I'm 100% sure this won't fix your problem. Anyway, I'm not in my office right now and don't have access to my Xen system...


All times are GMT +2. The time now is 13:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.