You are not logged in.

#1 2013-12-13 13:13:32

binaryplease
Member
Registered: 2012-04-11
Posts: 16

Boot Xen with Syslinux

Hi,
I'm having trouble booting the xen-4.3.1 kernel with syslinux. The wiki article is marked as "horribly outdated".


My setup:

- Lenovo Y500 with SLI Graphics
- xen packages build from aur
- newest arch updates

This is my syslinux.cfg

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#   * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples

DEFAULT arch
PROMPT 0        # Set to 1 if you always want to display the boot: prompt 
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl

# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux 
UI menu.c32
#UI vesamenu.c32

# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND splash.png
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std

# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

LABEL arch
	MENU LABEL Arch Linux
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sdb7 rw
	INITRD ../initramfs-linux.img #vfio_iommu_type1.allow_unsafe_interrupts=1 pci-stub.ids=10de:0fd1

LABEL xen
	MENU LABEL Arch Xen
	KERNEL mboot.c32
	APPEND ../xen-4.3.1.gz --- ../vmlinuz-linux console=tty0 root=/dev/sdb7 ro -- ../initramfs-linux.img

LABEL mainline
        MENU LABEL Linux Mainline
        LINUX ../vmlinuz-linux-mainline
        APPEND root=/dev/sdb7 rw
        INITRD ../initramfs-linux-mainline.img


LABEL archfallback
	MENU LABEL Arch Linux Fallback
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sdb7 rw
	INITRD ../initramfs-linux-fallback.img

LABEL windows
        MENU LABEL Windows
        COM32 chain.c32
        APPEND hd1 2

LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32
 
LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32
 
LABEL off
        MENU LABEL Power Off
        COMBOOT poweroff.com



The Xen kernel starts booting and then gives me the error

vfs unable to mount root fs on unknown-block(0 0)

I coudn't find a solution from all the stuff google threw at me.

Can anyone help?

Offline

#2 2013-12-14 20:17:33

Rikki-Tikki-Tavi
Member
Registered: 2013-12-12
Posts: 8

Re: Boot Xen with Syslinux

A dash is missing at

	APPEND ../xen-4.3.1.gz --- ../vmlinuz-linux console=tty0 root=/dev/sdb7 ro -- ../initramfs-linux.img
                                                                                    ^

It should be

	APPEND ../xen-4.3.1.gz --- ../vmlinuz-linux console=tty0 root=/dev/sdb7 ro --- ../initramfs-linux.img

Look here for why:

http://stackoverflow.com/questions/1155 … e-switches

Offline

#3 2013-12-15 14:17:37

Rikki-Tikki-Tavi
Member
Registered: 2013-12-12
Posts: 8

Re: Boot Xen with Syslinux

[never mind, please delete]

Last edited by Rikki-Tikki-Tavi (2013-12-15 14:18:26)

Offline

Board footer

Powered by FluxBB