WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Install Ubuntu Server 10 as PV Guest

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Install Ubuntu Server 10 as PV Guest
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Hvbkb5objn7NlGj+8E1MWxOYoDq/GUL0lvY7OqpHCoo=; b=jDniog8vnAKmR0A45D0HPQW8Aa/cO6m4C7HpWOrkjP4l/IEALwiQLvPZx8j2hw+gUh ehngykg2ciFCKcK5YEkEz9xvm0UOPFQKDQRd4lja+oBzeBovNW/1ziOTknj+h7OK/Fx0 i+r15IoCDIzatv7Q0apeQGwu2rHOvYY0PkPg0=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimj2v-6E9DfIOmT1MsPPBiNuVXSPm5cQbIWdlRM@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikKH3RquyPLGQ3E7c2RJB7UaKrImP8bjfMo-LWs@xxxxxxxxxxxxxx> <AANLkTikCL9I-JjIxOCpgJ7IKcWFHnUbQKZclJfgeU4v8@xxxxxxxxxxxxxx> <AANLkTinuC7C4oIh_w7E_7eZHAGuzSxQC7hBod1cLCe9F@xxxxxxxxxxxxxx> <AANLkTimj2v-6E9DfIOmT1MsPPBiNuVXSPm5cQbIWdlRM@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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