help-grub
[Top][All Lists]
Advanced

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

Re: how to multiboot xen with grub2 on Ubuntu


From: Jordan Uggla
Subject: Re: how to multiboot xen with grub2 on Ubuntu
Date: Tue, 8 Mar 2011 13:17:04 -0800

> menuentry "Xen Linux 2.6.32.27" {
>       insmod ntfs
>       set root='(hd0,2)'
>       loopback loop0 /ubuntu/disks/root.disk
>       set root=(loop0)
>       kernel (hd0,2)/boot/xen.gz
>       module (hd0,2)/boot/vmlinuz-2.6.32.27 dummy=dummy
> root=/dev/sda2 loop=/ubuntu/disks/root.disk ro console=tty0
>       module (hd0,2)/boot/initrd.img-2.6.32.27
> }
>
>
> Entry 2 which failed is
>
> menuentry "Xen Linux 2.6.32.27" {
>        insmod multiboot2
>        set root='(hd0,2)'
>        set root=(loop0)
>        kernel (hd0,2)/boot/xen.gz dummy=dummy
>        module (hd0,2)/boot/vmlinuz-2.6.32.27 dummy=dummy
> root=/dev/sda2 loop=/ubuntu/disks/root.disk ro console=tty0
>        module (hd0,2)/boot/initrd.img-2.6.32.27
> }

Compare these with the entry given in the instructions that you linked to:

menuentry "Xen 4 / Ubuntu 10.04 kernel 2.6.32.12" {
  insmod ext2
  set root='(hd1,5)'
  multiboot (hd1,5)/boot/xen.gz dummy=dummy dom0_mem=1024M
  module (hd1,5)/boot/vmlinuz-2.6.32.12 dummy=dummy nopat
root=/dev/sdb5 ro console=tty0
  module (hd1,5)/boot/initrd.img-2.6.32.12
}

Notice there is no "kernel" command in grub2, you need to use "multiboot".

Also, since I assume your /boot/ is within your wubi root.disk rather
than in "(hd1,5)" you should remove (hd1,5) from your file paths to
end up with an entry like:

menuentry "Xen Linux 2.6.32.27" {
       insmod ntfs
       set root='(hd0,2)'
       loopback loop0 /ubuntu/disks/root.disk
       set root=(loop0)
       multiboot /boot/xen.gz
       module    /boot/vmlinuz-2.6.32.27 dummy=dummy root=/dev/sda2
loop=/ubuntu/disks/root.disk ro console=tty0
       module    /boot/initrd.img-2.6.32.27
}

-- 
Jordan Uggla (Jordan_U on irc.freenode.net)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]