LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   xen on ubuntu 10.04 - grub booting problem (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/xen-on-ubuntu-10-04-grub-booting-problem-943915/)

essential1 05-08-2012 12:16 PM

xen on ubuntu 10.04 - grub booting problem
 
hi all,

after not being able to solve a problem with xen on centos (which i posted yesterday), i have tried to install xen on ubuntu since there were so many guides and how tos on how to do so.

i followed the guide here on the ubuntu site. everything until attempting to start xen worked fine, steps 1 (compiling and installing xen) and step 2 (downloading and compiling a dom0) passed without any problem. i can confirm that the dom0 kernel works well by itself as it starts up and runs without any problems.

after editing my grub entry to include the downloaded dom0 kernel, and including xen (included below), i get the message:

error: couldn't open file
error: you need to load the multiboot kernel first

my grub entry is the following, the only thing i can think is that some of the entries might need to have options included, but i have tried with some of the ones mentioned such as including a dummy=dummy on the end of the module entries. however i cannot understand what the problem might be.

menuentry "Xen 4.0.1 / Ubuntu" {
insmod ext2
set root='(hd0,1)'
multiboot [(hd0,1)]/boot/xen.gz dummy=dummy
module [(hd0,1)]/boot/vmlinuz-3.1.0-rc9+
module [(hd0,1)]/boot/initrd.img-3.1.0-rc9+
}


i would really appreciate some help with this, i really want to get a xen built from source working but have been running into all sorts of problems.

anon079 05-09-2012 10:07 AM

Might be easier to use a automated tool the first time and then learn from the entry it creates.

1. install os-prober
2. run os-prober as root
3. grub2-mkconfig -o /boot/grub2/grub.cfg (this directory may change depending on distro)


#That will get you as far as adding the entry. If you want to change the default read on.

1. List the entries: sudo grep menuentry boot/grub2/grub.cfg
2. sudo GRUB_DEFAULT=saved
3. sudo grub2-set-default ='submenu>entry'

Fcukinyahoo 05-09-2012 11:31 AM

Let me give you a quality advise my friend. I have worked with virtualization for so long. I have dealt with Xen, OpenVZ, KVM tried almost any distro mostly Ubuntu Centos and Suse. In my case they were all headaches one way or another. However, take a look at Proxmox. It is open source and it is everything that you need and easier than you can possibly imagine. I am not exaggerating. It is the best free thing ever. You will be surprised that it is free. It has a web based GUI, especially with a new update 2.1 it is amazing. You can use KVM or openVZ based virtual machines. The folder structure for the VMs is very clear and easy to work with. I am telling you as fact it is amazing.


All times are GMT -5. The time now is 08:47 PM.