[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] Install Ubuntu Server 10 as PV Guest
- To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
- From: KC LO <kclo2000@xxxxxxxxx>
- Date: Sun, 20 Jun 2010 15:59:03 +0800
- Cc: xen-users@xxxxxxxxxxxxxxxxxxx
- Delivery-date: Sun, 20 Jun 2010 01:00:43 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GdwiYYdLqXoPc04p7Jzb+UuNxDoIb0gOW+UG8kKVS0mcjWL7OlG8O+kriRl6Bisq6N SNu8nfINQNjtTfZO0qFKHaoCRnbw7T2gBkML21+dkzI+KxpIb7/4z+D6oWNq37AMCW4e 3T9OAmvPNsshr1hXnJPoVn61vuwszZzOb9sEU=
- List-id: Xen user discussion <xen-users.lists.xensource.com>
Hi,
Thanks!
I have tried to use pygrub to point to the image file to try to start the DomU guest. The following messages appears.
pygrub -i /root/iso/ubuntu.img Traceback (most recent call last): File "/usr/bin/pygrub", line 679, in ? chosencfg = run_grub(file, entry, fs, incfg["args"]) File "/usr/bin/pygrub", line 515, in run_grub
g = Grub(file, fs) File "/usr/bin/pygrub", line 202, in __init__ self.read_config(file, fs) File "/usr/bin/pygrub", line 397, in read_config raise RuntimeError, "couldn't find bootloader config file in the image provided."
RuntimeError: couldn't find bootloader config file in the image provided.
I have used kpartx -av /root/iso/ubuntu.img to mount the boot directory of the first partition
The contents under /boot is
abi-2.6.32-22-generic memtest86+.bin config-2.6.32-22-generic System.map-2.6.32-22-generic grub vmcoreinfo-2.6.32-22-generic initrd.img-2.6.32-22-generic vmlinuz-2.6.32-22-generic
It seems that it don't has the linux-xen kernel for PV client. Is it the reason for it fail to boot?
Do you have any idea?
On 20 June 2010 09:09, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Sat, Jun 19, 2010 at 1:59 AM, KC LO < kclo2000@xxxxxxxxx> wrote: > Thanks! > > > > I have follow the link and download initrd.gz and vmlinuz to create the
> initial ubuntu.cfg and use it to start the installation by xm create -c > ubuntu.cfg. I can complete the installation over Internet. However, after > installation, how can I start the ubuntu DOMU guest? What should I change
> on the ubuntu.cfg? I'd test by running "pygrub -i /path/to/your/domU/disk/image.img" (adjust the disk image path to your setup, obviously). If it doesn't return an error, you can simpley comment out kernel,
ramdisk, and extra line on your original config, and add a line
bootloader="/usr/bin/pygrub"
Some peope has concerns about pygrub's potential security problem since it copies some files from domU to dom0 and run it. So for some
added security measure, once you have pygrub running, you can replace pygrub with pv-grub by commenting pygrub line and replace it with something like this
kernel = "/usr/lib/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0,0)/grub/menu.lst"
IMHO problems with pv-grub is harder to diagnose though, so I strongly suggest you only try pv-grub AFTER you get pygrub working correctly.
-- Fajar
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|