[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] New bootloader options after installing Xen, none of which work


  • To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Scott A. Wozny" <sawozny@xxxxxxxxxxx>
  • Date: Fri, 17 Dec 2010 16:07:13 +0000
  • Delivery-date: Fri, 17 Dec 2010 08:08:48 -0800
  • Importance: Normal
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Greetings, Xen gurus!

 

Earlier I had a problem trying to compile Xen 4.0.1 source on Ubuntu 10.10 server amd64 with only the core OS and OpenSSH installed.  After installing the right libraries, I had a git error I couldn't get around during make world.  It was suggested I edit the buildconfigs/src.git-clone file and replace line
(cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \

with:
(cd $(LINUX_SRCDIR).tmp; git checkout -b local/$(XEN_LINUX_GIT_LOCALBRANCH) --track $(XEN_LINUX_GITREV) ); \

 

Well, this allowed compilation to finish, but when I did a sudo update-grub I got the following new bootloader options with the described errors, none of which boot:


- Ubuntu, with Linux 2.6.32.26:


kvm: no hardware support

kvm: no hardware support

Root-nfs: No NFS server available, giving up

VFS: Unable to mount root fs via NFS, trying floppy

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


- Ubuntu, with Linux 2.6.32.26 (recovery mode):


Same as above with added detail.  The most interesting is a line that after the "VFS: Unable to mount root fs via NFS, trying floppy" line, the next line states: "Please append a correct "root=" boot option; here are the available partitions…" and it lists the partitions, but as I didn't add this boot loader entry (somehow the Xen install did it or placed files that some aspect of Grub is trying to identify and use) I don't know how or where to add the root option.


Also, the root= option on these 2 entries are root=/dev/mapper/xen--host-root ro quiet (single for the recovery mode)


- XEN syms-4.0.1:


Loading Linux 2.6.32.26…

error: invalid entry point for ELF64

error: you need to load the multiboot kernel first.


- XEN syms-4.0.1 (recovery mode):


same as above


- XEN 4:


reboot with no messages


- XEN 4 (recovery mode):


reboot with no messages


- XEN 4.0:


reboot with no messages


- XEN 4.0 (recovery mode):


reboot with no messages


- XEN 4.0.1:


reboot with no messages


- XEN 4.0.1 (recovery mode):


reboot with no messages


- XEN xen:


reboot with no messages


- XEN xen (recovery mode):

 

reboot with no messages
------------------------

 

So I can't figure out what to do next.  Is the change I made to src.git-clone what caused this mess?  I thought I'd ask the list to see if anyone had seen this before, but I'm pretty sure I'm going to have to do a much deeper dive into git and make and general kernel compilation and then head into the source and the messages during compilation to figure out how to fix this.  There are a lot of resources out there on the net that provide support and documentation for lots of Linux distributions and how to get things running, but I'm having difficulty finding good knowledge bases on the fundamentals of Linux from the kernel up and I was wondering if anyone had any suggestions for resources they've found helpful. 

 

In case somebody has any insights into this particular problem, I have included the contents of my /boot directory, update-grub output and the resultant grub.cfg file below, but even if somebody recognizes this issue and can help me find the fix I'd really still like any suggestions on learning resources for Linux kernel fundamentals as I'll need to develop a much better understanding for the project I'm working on.

 

Thanks very much in advance for any and all suggestions.

 

Scott

 

------------------------

 


sawozny@xen-host:~$ ls -la /boot
total 55882
drwxr-xr-x  4 root root     1024 2010-12-12 06:44 .
drwxr-xr-x 22 root root     4096 2010-12-12 06:44 ..
-rw-r--r--  1 root root   700570 2010-10-16 21:11 abi-2.6.35-22-server
-rw-r--r--  1 root root   700695 2010-11-24 08:03 abi-2.6.35-23-server
-rw-r--r--  1 root root    68933 2010-12-12 01:43 config-2.6.32.26
-rw-r--r--  1 root root   122712 2010-10-16 21:11 config-2.6.35-22-server
-rw-r--r--  1 root root   122712 2010-11-24 08:03 config-2.6.35-23-server
drwxr-xr-x  3 root root     4096 2010-12-13 18:44 grub
-rw-r--r--  1 root root 11736660 2010-12-11 17:29 initrd.img-2.6.35-22-server
-rw-r--r--  1 root root 11738997 2010-12-12 06:44 initrd.img-2.6.35-23-server
drwxr-xr-x  2 root root    12288 2010-12-11 16:49 lost+found
-rw-r--r--  1 root root   165084 2010-09-24 14:16 memtest86+.bin
-rw-r--r--  1 root root   167264 2010-09-24 14:16 memtest86+_multiboot.bin
-rw-r--r--  1 root root  2307056 2010-12-12 01:43 System.map-2.6.32.26
-rw-r--r--  1 root root  2365429 2010-10-16 21:11 System.map-2.6.35-22-server
-rw-r--r--  1 root root  2365914 2010-11-24 08:03 System.map-2.6.35-23-server
-rw-r--r--  1 root root     1335 2010-10-16 21:14 vmcoreinfo-2.6.35-22-server
-rw-r--r--  1 root root     1335 2010-11-24 08:04 vmcoreinfo-2.6.35-23-server
-rw-r--r--  1 root root  4540544 2010-12-12 01:43 vmlinuz-2.6.32.26
-rw-r--r--  1 root root  4388496 2010-10-16 21:11 vmlinuz-2.6.35-22-server
-rw-r--r--  1 root root  4390128 2010-11-24 08:03 vmlinuz-2.6.35-23-server
-rw-r--r--  1 root root   679131 2010-12-11 17:47 xen-4.0.1.gz
lrwxrwxrwx  1 root root       12 2010-12-12 01:43 xen-4.0.gz -> xen-4.0.1.gz
lrwxrwxrwx  1 root root       12 2010-12-12 01:43 xen-4.gz -> xen-4.0.1.gz
lrwxrwxrwx  1 root root       12 2010-12-12 01:43 xen.gz -> xen-4.0.1.gz
-rw-r--r--  1 root root 10388082 2010-12-11 17:47 xen-syms-4.0.1


sawozny@xen-host:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-23-server
Found initrd image: /boot/initrd.img-2.6.35-23-server
Found linux image: /boot/vmlinuz-2.6.35-22-server
Found initrd image: /boot/initrd.img-2.6.35-22-server
Found linux image: /boot/vmlinuz-2.6.32.26
dpkg: version '/boot/xen.gz' has bad syntax: invalid character in version number
Found linux image: /boot/vmlinuz-2.6.32.26
dpkg: version '/boot/xen.gz' has bad syntax: invalid character in version number
Found linux image: /boot/vmlinuz-2.6.32.26
dpkg: version '/boot/xen.gz' has bad syntax: invalid character in version number
Found linux image: /boot/vmlinuz-2.6.32.26
dpkg: version '/boot/xen.gz' has bad syntax: invalid character in version number
Found linux image: /boot/vmlinuz-2.6.32.26
Found linux image: /boot/vmlinuz-2.6.32.26
Found memtest86+ image: /memtest86+.bin
done
sawozny@xen-host:~$

 

sawozny@xen-host:~$ cat /boot/grub/grub.cfg | more
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env reco
rdfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
}

insmod lvm
insmod part_msdos
insmod ext2
set root='(xen-host-root)'
search --no-floppy --fs-uuid --set 0be9b001-b4f7-45ae-a68e-31d628092ba8
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10

fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-23-server' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        linux   /vmlinuz-2.6.35-23-server root=/dev/mapper/xen--host-root ro   quiet
        initrd  /initrd.img-2.6.35-23-server
}
menuentry 'Ubuntu, with Linux 2.6.35-23-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.35-23-server ...'
        linux   /vmlinuz-2.6.35-23-server root=/dev/mapper/xen--host-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.35-23-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        linux   /vmlinuz-2.6.35-22-server root=/dev/mapper/xen--host-root ro   quiet
        initrd  /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.35-22-server ...'
        linux   /vmlinuz-2.6.35-22-server root=/dev/mapper/xen--host-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.32.26' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        linux   /vmlinuz-2.6.32.26 root=/dev/mapper/xen--host-root ro   quiet
}
menuentry 'Ubuntu, with Linux 2.6.32.26 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        linux   /vmlinuz-2.6.32.26 root=/dev/mapper/xen--host-root ro single
        echo    'Loading initial ramdisk ...'
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN syms-4.0.1' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-syms-4.0.1 placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro  quiet
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN syms-4.0.1 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-syms-4.0.1 placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro single
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN 4' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-4.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro  quiet
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN 4 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-4.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro single
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN 4.0' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-4.0.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro  quiet
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN 4.0 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-4.0.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro single
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN 4.0.1' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-4.0.1.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro  quiet
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN 4.0.1 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen-4.0.1.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro single
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN xen' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro  quiet
}
menuentry 'Ubuntu GNU/Linux, with Linux 2.6.32.26 and XEN xen (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        echo    'Loading Linux 2.6.32.26 ...'
        multiboot       /xen.gz placeholder
        module  /vmlinuz-2.6.32.26 placeholder root=/dev/mapper/xen--host-root ro single
}
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 17263822-fce1-49e2-a048-a29383665cec
        linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
sawozny@xen-host:~$

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.